2267e8c8cb414599e7e6a02205edd8b590e65430
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2009-09-22 Alan Modra <amodra@bigpond.net.au>
2
3 * scripttempl/a29k.sc: Delete.
4 * scripttempl/ebmon29k.sc: Delete.
5 * scripttempl/m68klynx.sc: Delete.
6 * scripttempl/sa29200.sc: Delete.
7 * scripttempl/sparclynx.sc: Delete.
8
9 2009-09-21 Alan Modra <amodra@bigpond.net.au>
10
11 * emultempl/ppc32elf.em (no_tls_get_addr_opt): New var.
12 (ppc_before_allocation): Pass to ppc_elf_tls_setup.
13 (OPTION_NO_TLS_GET_ADDR_OPT): Define. Redefine other options in
14 terms of previous option.
15 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add
16 --no-tls-get-addr-optimize.
17 (PARSE_AND_LIST_ARGS_CASES): Handle it.
18 * emultempl/ppc64elf.em (no_tls_get_addr_opt): New var.
19 (ppc_before_allocation): Pass to ppc64_elf_tls_setup.
20 (OPTION_NO_TLS_GET_ADDR_OPT): Define.
21 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add
22 --no-tls-get-addr-optimize.
23 (PARSE_AND_LIST_ARGS_CASES): Handle it.
24
25 2009-09-18 Nick Clifton <nickc@redhat.com>
26
27 * po/es.po: Updated Spanish translation.
28
29 2009-09-13 Alan Modra <amodra@bigpond.net.au>
30
31 PR ld/6766
32 * lexsup.c (parse_args <-e>): Revert 2009-03-18 change.
33 * ldemul.c (after_parse_default): Add entry symbol as undef.
34 * emultempl/alphaelf.em (alpha_after_parse): Call after_parse_default.
35 * emultempl/cr16elf.em (cr16elf_after_parse): Likewise.
36 * emultempl/crxelf.em (crxelf_after_parse): Likewise.
37 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
38 * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Likewise.
39 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Call
40 after_parse_default and delete now duplicate code.
41 * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
42 * scripttempl/elf32cr16.sc: No need to make entry extern.
43 * scripttempl/elf32cr16c.sc: Likewise.
44 * scripttempl/elf32crx.sc: Likewise.
45 * scripttempl/elf32xc16xs.sc: Only provide ENTRY on final link.
46
47 2009-09-11 Nick Clifton <nickc@redhat.com>
48
49 * po/ld.pot: Updated by the Translation project.
50 * po/fi.po: Updated Finnish translation.
51
52 2009-09-11 Martin Thuresson <martint@google.com>
53
54 Updated sources to compile cleanly with -Wc++-compat:
55 * ld.h (enum endian_enum,enum symbolic_enum,enum
56 dynamic_list_enum): Move to top level.
57 * ldcref.c: Add casts.
58 * ldctor.c: Add casts.
59 * ldexp.c
60 * ldexp.h (enum node_tree_enum,enum phase_enum): Move to top level.
61 * ldlang.c: Add casts. (lang_insert_orphan): Use enum name instead
62 of integer.
63 * ldlang.h (enum statement_enum): Move to top level.
64 * ldmain.c: Add casts.
65 * ldwrite.c: Add casts.
66 * lexsup.c: Add casts. (enum control_enum): Move to top level.
67 * mri.c: Add casts. (mri_draw_tree): Use enum name instead of
68 integer.
69
70 2009-09-09 Alan Modra <amodra@bigpond.net.au>
71
72 * scripttempl/aix.sc: Only provide ENTRY on final link.
73 * scripttempl/alpha.sc: Likewise.
74 * scripttempl/armcoff.sc: Likewise.
75 * scripttempl/crisaout.sc: Likewise.
76 * scripttempl/delta68.sc: Likewise.
77 * scripttempl/ebmon29k.sc: Likewise.
78 * scripttempl/elf32xc16x.sc: Likewise.
79 * scripttempl/elf32xc16xl.sc: Likewise.
80 * scripttempl/elfmicroblaze.sc: Likewise.
81 * scripttempl/epocpe.sc: Likewise.
82 * scripttempl/h8300.sc: Likewise.
83 * scripttempl/h8300h.sc: Likewise.
84 * scripttempl/h8300hn.sc: Likewise.
85 * scripttempl/h8300s.sc: Likewise.
86 * scripttempl/h8300sn.sc: Likewise.
87 * scripttempl/h8300sx.sc: Likewise.
88 * scripttempl/h8300sxn.sc: Likewise.
89 * scripttempl/hppaelf.sc: Likewise.
90 * scripttempl/i386beos.sc: Likewise.
91 * scripttempl/i386coff.sc: Likewise.
92 * scripttempl/i386go32.sc: Likewise.
93 * scripttempl/m68kaux.sc: Likewise.
94 * scripttempl/m68klynx.sc: Likewise.
95 * scripttempl/m88kbcs.sc: Likewise.
96 * scripttempl/maxqcoff.sc: Likewise.
97 * scripttempl/mcorepe.sc: Likewise.
98 * scripttempl/mips.sc: Likewise.
99 * scripttempl/ppcpe.sc: Likewise.
100 * scripttempl/sa29200.sc: Likewise.
101 * scripttempl/sparccoff.sc: Likewise.
102 * scripttempl/sparclynx.sc: Likewise.
103 * scripttempl/tic4xcoff.sc: Likewise.
104 * scripttempl/tic54xcoff.sc: Likewise.
105 * scripttempl/tic80coff.sc: Likewise.
106 * scripttempl/z8000.sc: Likewise.
107
108 2009-09-07 Tristan Gingold <gingold@adacore.com>
109
110 * po/ld.pot: Regenerate.
111
112 2009-09-05 Martin Thuresson <martin@mtme.org>
113
114 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols,
115 gld${EMULATION_NAME}_try_needed): Rename variable class to
116 link_class.
117
118 2009-09-04 Tristan Gingold <gingold@adacore.com>
119
120 * NEWS: Add marker for 2.20.
121
122 2009-09-04 Alan Modra <amodra@bigpond.net.au>
123
124 * scripttempl/elf.sc (.text): Add cold text sections.
125
126 2009-09-04 Jie Zhang <jie.zhang@analog.com>
127
128 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Add .l2.text
129 and .l2.data.
130
131 2009-09-03 Dave Korn <dave.korn.cygwin@gmail.com>
132
133 * scripttempl/pe.sc (.text): Add "*(.text.*)" in order to catch
134 new GCC hot/cold/unlikely partitions.
135 * scripttempl/pep.sc: Likewise.
136 * scripttempl/epocpe.sc: Likewise.
137 * scripttempl/mcorepe.sc: Likewise.
138 * scripttempl/ppcpe.sc: Likewise.
139
140 2009-09-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
141
142 * Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
143 source file name for generated files which may be in $(srcdir).
144 * Makefile.in: Regenerate.
145
146 2009-09-01 H.J. Lu <hongjiu.lu@intel.com>
147
148 * ldver.c (ldversion): Change to "Copyright 2009".
149
150 2009-09-01 Jie Zhang <jie.zhang@analog.com>
151
152 * scripttempl/elf.sc: Add ${USER_LABEL_PREFIX} to _start, etext,
153 _stack and __bss_start.
154 * emulparams/bfin.sh (ENTRY): Remove.
155
156 2009-08-30 Alan Modra <amodra@bigpond.net.au>
157
158 PR ld/10569
159 * ldexp.c (fold_name <MAXPAGESIZE>): Return config.maxpagesize.
160 (fold_name <COMMONPAGESIZE>): Similarly.
161 * ldlang.c (output_target): Make global.
162 * ldlang.h (output_target): Declare.
163 * ldmain.c (main): Set config.maxpagesize from bfd_emul_get_maxpagesize.
164 Similarly for config.commonpagesize.
165 * ldemul.c (set_output_arch_default): Call bfd_emul_set_maxpagesize
166 and bfd_emul_set_commonpagesize.
167 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Don't call
168 bfd_emul_set_maxpagesize or bfd_emul_set_commonpagesize here.
169
170 2009-08-29 Martin Thuresson <martin@mtme.org>
171
172 * ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop)
173 (exp_trinop, exp_unop, exp_nameop, exp_assop): Rename variable new
174 to new_e.
175 * ldfile.c (ldfile_add_library_path): Rename variable new to
176 new_dirs. (ldfile_add_arch): Rename variable new to new_arch.
177 * ldlang.c (new_statement, lang_final, lang_add_wild)
178 (lang_target, lang_add_fill, lang_add_data, lang_add_assignment)
179 (lang_add_insert): Rename variable new to new_stmt. (new_afile):
180 Added missing cast. (lang_memory_region_lookup): Rename variable
181 new to new_region. (init_os): Rename variable new to
182 new_userdata. (lang_add_section): Rename variable new to
183 new_section. (ldlang_add_undef): Rename variable new to
184 new_undef. (realsymbol): Rename variable new to new_name.
185
186 2009-08-26 Nick Clifton <nickc@redhat.com>
187
188 PR ld/10555
189 * emultempl/elf32.em (_after_open): Do not create a
190 .note.gnu-build-id section if there are no input files.
191
192 2009-08-24 Nick Clifton <nickc@redhat.com>
193
194 * scripttempl/elfxtensa.sc (DISCARDED): Discard sections with
195 .gnu.lto_ prefix.
196 * scripttempl/armbpabi.sc: Likewise.
197 * scripttempl/elf32sh-symbian.sc: Likewise.
198 * scripttempl/elf64hppa.sc: Likewise.
199 * scripttempl/mep.sc: Likewise.
200
201 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
202
203 * Makefile.am (ldmain.o, ldfile.o): Fix typos in non-fastdep
204 rules.
205 (eelf32_spu.o): Add dependency tracking.
206 * Makefile.in: Regenerate.
207
208 * Makefile.am (am__skiplex, am__skipyacc): New.
209 * Makefile.in: Regenerate.
210
211 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
212
213 * Makefile.am (bin_PROGRAMS): Renamed from ...
214 (noinst_PROGRAMS): ... this.
215 (transform): Override, including the renaming of ld-new to ld.
216 (install-exec-local): Installation of ld in $(bindir) not needed
217 here any more.
218 (AM_CPPFLAGS): Renamed from ...
219 (INCLUDES): ... this.
220 (MAINTAINERCLEANFILES): Add ld.1.
221 * Makefile.in: Regenerate.
222
223 * Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus. Add
224 no-texinfo.tex, no-dist, foreign.
225 (TEXINFO_TEX): New variable.
226 (install-data-local): Removed, not needed any more.
227 (all): Dependencies upon info and ld.1 not needed any more.
228 (MKDEP, DEP, DEP1, dep.sed, dep, dep-in, dep-am): Removed.
229 (mkdep generated section): Removed.
230 (ldgram.o, ldlex.o, deffilep.o, ldmain.o, ldfile.o): Rewrite to
231 use automake dependency tracking mechanism.
232 (EXTRA_ld_new_SOURCES): Add pep-dll.c, pe-dll.c, and
233 $(ALL_EMULATIONS:.o=.c) $(ALL_64_EMULATIONS:.o=.c) so their
234 dependencies are tracked too.
235 (BUILT_SOURCES): New, list $(GENERATED_HFILES) to ensure they
236 are built early.
237 * configure.in: Use AM_MAINTAINER_MODE.
238 * aclocal.m4, configure, Makefile.in: Regenerate.
239
240 * Makefile.am (pdf__strip_dir, install-pdf, install-pdf-am)
241 (install-pdf-recursive, html__strip_dir, install-html)
242 (install-html-am, install-html-recursive): Remove.
243 * Makefile.in: Regenerate.
244
245 * Makefile.in: Regenerate.
246 * aclocal.m4: Likewise.
247 * config.in: Likewise.
248 * configure: Likewise.
249
250 2009-08-21 Richard Guenther <rguenther@suse.de>
251
252 * scripttempl/elf.sc: Discard sections with .gnu.lto_ prefix.
253
254 2009-08-12 Tristan Gingold <gingold@adacore.com>
255
256 * ld.h (fat_user_section_struct): Add map_symbol_def_count field.
257 * ldlang.c (hash_entry_addr_cmp): New function.
258 (print_all_symbols): Sort the symbols by address before printing them.
259
260 2009-08-10 Alan Modra <amodra@bigpond.net.au>
261
262 PR 10474
263 * ldemul.c (after_allocation_default): Run lang_relax_sections.
264 * ldlang.h (lang_relax_sections): Declare.
265 * ldlang.c (relax_sections): Delete.
266 (lang_relax_sections): New function.
267 (lang_process): Don't relax directly from here.
268 * emultempl/alphaelf.em (alpha_finish): Call finish_default.
269 * emultempl/armelf.em (arm_elf_after_allocation): Delete. Move body..
270 (gld${EMULATION_NAME}_finish): ..to here. Move existing code..
271 (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
272 (LDEMUL_AFTER_ALLOCATION): Update.
273 * emultempl/avrelf.em (avr_elf_finish, LDEMUL_FINISH): Delete.
274 (avr_elf_after_allocation): New function.
275 (LDEMUL_AFTER_ALLOCATION): Define.
276 * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Call
277 lang_relax_sections.
278 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Delete. Move..
279 (gld${EMULATION_NAME}_after_allocation): ..code to here. New function.
280 (LDEMUL_AFTER_ALLOCATION, LDEMUL_FINISH): Update.
281 * emultempl/genelf.em (gld${EMULATION_NAME}_finish): Delete. Move..
282 (gld${EMULATION_NAME}_after_allocation): ..code to here. New function.
283 (LDEMUL_FINISH): Delete.
284 (LDEMUL_AFTER_ALLOCATION): Define.
285 * emultempl/hppaelf.em (gld${EMULATION_NAME}_finish): Delete. Move..
286 (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
287 (LDEMUL_FINISH): Delete.
288 (LDEMUL_AFTER_ALLOCATION): Define.
289 * emultempl/m68hc1xelf.em (m68hc11elf_finish): Delete. Move..
290 (m68hc11elf_after_allocation): ..to here. New function.
291 (LDEMUL_FINISH): Delete.
292 (LDEMUL_AFTER_ALLOCATION): Define.
293 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
294 gld${EMULATION_NAME}_after_allocation.
295 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Call
296 gld${EMULATION_NAME}_after_allocation.
297 * emultempl/mmo.em (mmo_finish): Delete. Move body..
298 (gld${EMULATION_NAME}_after_allocation): ..to here. New function.
299 (LDEMUL_FINISH): Define.
300 * emultempl/ppc64elf.em (ppc_layout_sections_again): Set elf_gp.
301 (gld${EMULATION_NAME}_finish): Move code sizing sections..
302 (gld${EMULATION_NAME}_after_allocation): ..to here.
303 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
304 Call gld${EMULATION_NAME}_after_allocation.
305 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Delete
306 bfd_elf_discard_info and map_segments call.
307
308 2009-08-06 Michael Eager <eager@eagercon.com>
309
310 * Makefile.am: Add eelf32mb_linux.o, eelf32microblaze.o to
311 ALL_EMULATIONS, targets.
312 * Makefile.in: Regenerate.
313 * configure.tgt: Add microblaze*-linux*, microblaze* targets.
314 * emulparams/elf32mb_linux.sh: New.
315 * emulparams/elf32microblaze.sh. New.
316 * scripttempl/elfmicroblaze.sc: New.
317
318 2009-08-05 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
319
320 * emulparams/elf32_spu.sh (OTHER_READONLY_SECTIONS): Add .fixup
321 section and __fixup_start symbol.
322 * emultempl/spuelf.em (params): Initialize emit_fixups member.
323 (spu_before_allocation): Call spu_elf_size_sections.
324 (OPTION_SPU_EMIT_FIXUPS): Define.
325 (PARSE_AND_LIST_LONGOPTS): Add --emit-fixups.
326 (PARSE_AND_LIST_ARGS_CASES): Handle --emit-fixups.
327 * ld.texinfo (--emit-fixups): Document.
328
329 2009-08-04 Alan Modra <amodra@bigpond.net.au>
330
331 PR 10474
332 * emultempl/ppc32elf.em (ppc_before_allocation): Test rawsize,
333 not size, after lang_reset_memory_regions.
334
335 2009-07-30 Alan Modra <amodra@bigpond.net.au>
336
337 * emulparams/elf32ppc.sh (PLT): Don't include ".iplt".
338 * emulparams/elf_i386.sh (IREL_IN_PLT): Define.
339 * emulparams/elf_x86_64.sh (IREL_IN_PLT): Define.
340 * scripttempl/elf.sc: Create separate .iplt and .rela.iplt sections
341 when !IREL_IN_PLT.
342
343 2009-07-29 Hans-Peter Nilsson <hp@bitrange.com>
344
345 * scripttempl/mmo.sc: For relocateable links, set $OUTPUT_FORMAT to
346 the new $RELOCATEABLE_OUTPUT_FORMAT, if set.
347 (OUTPUT_FORMAT): Use the variable $OUTPUT_FORMAT.
348 (ENTRY): Don't emit for relocateable links.
349 (/DISCARD/): Don't discard .gnu.warning.* for relocateable links.
350 * emulparams/mmo.sh (RELOCATEABLE_OUTPUT_FORMAT): Set, to
351 elf64-mmix.
352 * emulparams/elf64mmix.sh (OTHER_TEXT_SECTIONS): Empty, don't
353 provide "Main" or set "_start.", for relocateable links.
354
355 2009-07-27 Nick Clifton <nickc@redhat.com>
356
357 * (po/fi.po): Updated Finnish translation.
358
359 2009-07-25 H.J. Lu <hongjiu.lu@intel.com>
360
361 * configure.tgt (targ64_extra_emuls): Add elf_l1om if elf_x86_64
362 is supported. Add elf_l1om_fbsd if elf_x86_64_fbsd is supported.
363 (targ_extra_emuls): Likewise.
364
365 * Makefile.am (ALL_64_EMULATIONS): Add eelf_l1om.o and
366 eelf_l1om_fbsd.o
367 (eelf_l1om.c): New.
368 (eelf_l1om_fbsd.c): Likewise.
369 * Makefile.in: Regenerated.
370
371 * emulparams/elf_l1om.sh: New.
372 * emulparams/elf_l1om_fbsd.sh: Likewise.
373
374 2009-07-23 Ulrich Drepper <drepper@redhat.com>
375
376 * NEWS: Mention the linker's support for symbols with a binding of
377 STB_GNU_UNIQUE.
378
379 2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
380
381 PR ld/10429
382 * ldlang.c (insert_os_after): Tie assignments to non-alloc
383 output sections if there is no-input section.
384
385 2009-07-11 Alan Modra <amodra@bigpond.net.au>
386
387 * ldlang.c (insert_os_after): Don't tie assignments to non-alloc
388 output sections.
389
390 2009-07-10 Alan Modra <amodra@bigpond.net.au>
391
392 * emultempl/ppc32elf.em (ppc_before_allocation): Turn on
393 linker relaxation if it might be necessary.
394
395 2009-07-10 Alan Modra <amodra@bigpond.net.au>
396
397 * emulparams/elf32ppc.sh (GOTPLT, PLT): Handle .iplt.
398
399 2009-07-06 Matthias Klose <doko@ubuntu.com>
400
401 * ld.texinfo: Fix typo.
402
403 2009-07-03 Tristan Gingold <gingold@adacore.com>
404
405 * scripttempl/pep.sc: Put .eh_frame in its own section.
406 * scripttempl/pe.sc: Ditto.
407
408 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
409
410 * scripttempl/pe.sc (.debug_pubtypes): Added section rule.
411 * scripttempl/pep.sc: Likewise.
412
413 2009-06-25 Tristan Gingold <gingold@adacore.com>
414
415 * ldlang.c (print_input_section): Add is_discarded parameter. Adjust
416 prototype.
417 (lang_map): Print the size of discarded sections.
418 (print_statement): Adjust call to print_input_section.
419
420 2009-06-18 Dave Korn <dave.korn.cygwin@gmail.com>
421
422 Merge cegcc and mingw32ce target name changes from CeGCC project:
423
424 2008-09-24 Pedro Alves <pedroalves@users.sourceforge.net>
425
426 * configure.tgt (arm*-*-cegcc*): Set LIB_PATH to
427 ${tooldir}/lib/w32api.
428
429 2007-12-25 Pedro Alves <pedro_alves@portugalmail.pt>
430
431 * configure.tgt: Add arm*-*-cegcc* target.
432
433 2007-12-17 Pedro Alves <pedro_alves@portugalmail.pt>
434
435 * configure.tgt: Add arm-*-mingw32ce* target.
436
437 2009-06-10 Philip Blundell <philb@gnu.org>
438
439 * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Avoid crash
440 if section has no ELF data.
441
442 2009-06-06 H.J. Lu <hongjiu.lu@intel.com>
443
444 * scripttempl/elf.sc: Add .rel.ifunc and .rela.ifunc.
445
446 2009-06-05 H.J. Lu <hongjiu.lu@intel.com>
447
448 * scripttempl/elf.sc: Remove .rel.ifunc.dyn and .rela.ifunc.dyn.
449
450 2009-06-04 Alan Modra <amodra@bigpond.net.au>
451
452 * dep-in.sed: Don't use \n in replacement part of s command.
453 * Makefile.am (DEP1): LC_ALL for uniq.
454 * Makefile.in: Regenerate.
455
456 2009-06-01 H.J. Lu <hongjiu.lu@intel.com>
457
458 * scripttempl/elf.sc (PLT): Add "*(.iplt)".
459 (GOT): Add "*(.igot.plt)a" and "*(.igot)".
460 (GOTPLT): Add "*(.igot)".
461 (__rel_iplt_start): New.
462 (__rel_iplt_end): Likewise.
463 (__rela_iplt_start): Likewise.
464 (__rela_iplt_end): Likewise.
465
466 2009-05-27 Dave Korn <dave.korn.cygwin@gmail.com>
467
468 * deffilep.y (%union): Add new string-type semantic value 'digits'.
469 (%token): Remove NUMBER as token, add DIGITS.
470 (%type): Add NUMBER as type. Add new id types anylang_id, opt_id.
471 (ALIGNCOMM): Parse an anylang_id instead of a plain ID.
472 (anylang_id): New production.
473 (opt_digits): Likewise.
474 (opt_id): Likewise.
475 (NUMBER): Likewise.
476 (def_lex): Return strings of digits in raw string form as DIGITS
477 token, instead of converting to numeric integer type.
478
479 2009-05-26 Nathan Sidwell <nathan@codesourcery.com>
480
481 * ldmain.c (main): Don't reject --relax -r.
482 * ld.texinfo (PowerPC ELF32): Document behaviour of relaxing
483 partial links.
484
485 2009-05-26 Nick Clifton <nickc@redhat.com>
486
487 * po/id.po: Updated Indonesian translation.
488 * po/ld.pot: Updated template file.
489
490 2009-05-26 Alan Modra <amodra@bigpond.net.au>
491
492 * dep-in.sed: Output one filename per line with all lines having
493 continuation backslash. Prefix first line with "A", following
494 lines with "B".
495 * Makefile.am (DEP): Don't use dep.sed here.
496 (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
497 sort and uniq.
498 * Makefile.in: Regenerate.
499
500 2009-05-26 Alan Modra <amodra@bigpond.net.au>
501
502 * ldlang.c (lang_check_section_addresses): Ignore non-alloc sections.
503
504 2009-05-22 Julian Brown <julian@codesourcery.com>
505
506 * emultempl/armelf.em (fix_cortex_a8): New.
507 (arm_elf_before_allocation): Call bfd_elf32_arm_set_cortex_a8_fix.
508 (arm_elf_create_output_section_statements): Add fix_cortex_a8 to
509 bfd_elf32_arm_set_target_relocs.
510 (OPTION_FIX_CORTEX_A8, OPTION_NO_FIX_CORTEX_A8): New.
511 (PARSE_AND_LIST_LONGOPTS): Add [no-]fix-cortex-a8 options.
512 (PARSE_AND_LIST_OPTIONS): Add [no-]fix-cortex-a8 options.
513 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_[NO_]FIX_CORTEX_A8.
514 * ld.texinfo (--[no-]fix-cortex-a8): Briefly document new options.
515
516 2009-05-22 Nathan Sidwell <nathan@codesourcery.com>
517
518 * ldlang.c (lang_check_section_addresses): Ignore non-loadable
519 sections when checking for overlap. Clarify error message
520 concerns load address.
521
522 2009-05-22 Alan Modra <amodra@bigpond.net.au>
523
524 * Makefile.am: Run "make dep-am".
525 * Makefile.in: Regenerate.
526
527 2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com>
528
529 * NEWS: Mention new feature.
530 * deffile.h (def_file_aligncomm): Add new struct definition.
531 (def_file): Add new def_file_aligncomm member.
532 * deffilep.y (%token): Add new ALIGNCOMM token.
533 (command): Add production rule for ALIGNCOMM.
534 (def_file_free): Free any chained def_file_aligncomm structs.
535 (diropts[]): Add entry for '-aligncomm' .drectve command.
536 (def_aligncomm): New grammar function.
537 * ld.texinfo: Document new feature.
538 * pe-dll.c (process_def_file): Rename from this ...
539 (process_def_file_and_drectve): ... to this, updating all callers,
540 and process any aligncomms chained to the def file after scanning
541 all .drectve sections.
542 (generate_edata): Updated to match.
543 (pe_dll_build_sections): Likewise.
544
545 2009-05-17 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
546
547 * pe-dll.c (process_def_file): Do not create empty export table.
548
549 2009-05-15 Alan Modra <amodra@bigpond.net.au>
550
551 * ldlang.c (lang_output_section_statement_lookup): Add function
552 comment. Make "name" non-const. Ensure duplicate entries use
553 the same string, allowing simple comparison in hash bucket loop.
554 Tweak constraint check.
555 (next_matching_output_section_statement): New function.
556 * ldlang.h (lang_output_section_statement_lookup): Update.
557 (next_matching_output_section_statement): Declare.
558 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
559 combine orphan sections when input sections flags differ in
560 alloc or load.
561 * emultempl/pe.em: Formatting throughout.
562 (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
563 * emultempl/pep.em: Formatting throughout.
564 (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
565
566 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
567
568 * emultempl/spuelf.em (PARSE_AND_LIST_ARGS_CASES): Always use
569 compact stubs with software i-cache.
570
571 2009-05-14 Alan Modra <amodra@bigpond.net.au>
572
573 * emultempl/spuelf.em (spu_before_allocation): Call
574 spu_elf_place_overlay_data.
575
576 2009-05-14 Alan Modra <amodra@bigpond.net.au>
577
578 * ldlang.c (lang_insert_orphan): Add __start_<section> symbol
579 assignment inside output section statement. Ensure only one
580 set of symbols per output section.
581 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-
582 dollar sections before dollar sections. Correct add_child
583 list insertion.
584 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
585
586 2009-05-05 Paul Brook <paul@codesourcery.com>
587
588 * emultempl/armelf.em (compare_output_sec_vma): New function.
589 (gld${EMULATION_NAME}_finish): Add exidx munging code.
590
591 2009-05-05 Anatoly Sokolov <aesok@post.ru>
592
593 * scripttempl/avr.sc (MEMORY): Use DATA_ORIGIN.
594 * emulparams/avr1.sh (DATA_ORIGIN): Add.
595 * emulparams/avr2.sh (DATA_ORIGIN): Add.
596 * emulparams/avr25.sh (DATA_ORIGIN): Add.
597 * emulparams/avr3.sh (DATA_ORIGIN): Add.
598 * emulparams/avr31.sh (DATA_ORIGIN): Add.
599 * emulparams/avr35.sh (DATA_ORIGIN): Add.
600 * emulparams/avr4.sh (DATA_ORIGIN): Add.
601 * emulparams/avr5.sh (DATA_ORIGIN): Add.
602 * emulparams/avr51.sh (DATA_ORIGIN): Add.
603 (DATA_LENGTH): Update.
604 * emulparams/avr6.sh (DATA_ORIGIN): Add.
605 (DATA_LENGTH): Update.
606
607 2009-05-04 Dave Korn <dave.korn.cygwin@gmail.com>
608
609 * NEWS: Mention new feature.
610 * ld.texinfo (--version-script): Document extent of PE support.
611 (WIN32): Mention --version-script. Extend auto-export description.
612 * pe-dll.c (process_def_file): Use version script info to filter
613 symbols from auto-export.
614 * testsuite/ld-pe/vers-script-1.d: New file.
615 * testsuite/ld-pe/vers-script-2.d: New file.
616 * testsuite/ld-pe/vers-script-3.d: New file.
617 * testsuite/ld-pe/vers-script-4.d: New file.
618 * testsuite/ld-pe/vers-script-1.ver: New file.
619 * testsuite/ld-pe/vers-script-2.ver: New file.
620 * testsuite/ld-pe/vers-script-3.ver: New file.
621 * testsuite/ld-pe/vers-script-4.ver: New file.
622 * testsuite/ld-pe/vers-script-dll.c: New file.
623 * testsuite/ld-pe/vers-script.exp: New test script.
624
625 2009-05-01 Nathan Sidwell <nathan@codesourcery.com>
626
627 * emulparams/vxworks.sh (TEXT_START_ADDR): Override.
628
629 2009-04-30 Nick Clifton <nickc@redhat.com>
630
631 * NEWS: Mention support for IFUNC symbols.
632
633 2009-04-29 Anthony Green <green@moxielogic.com>
634
635 * emulparams/elf32moxie.sh (STACK_ADDR): Move default stack
636 position out to accommodate larger programs.
637
638 2009-04-29 Chris Demetriou <cgd@google.com>
639
640 * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC.
641 (ld_options): Likewise.
642 (parse_args): Likewise.
643 * ld.texinfo: Document --no-export-dynamic.
644 * NEWS: Mention --no-export-dynamic.
645
646 2009-04-29 Alan Modra <amodra@bigpond.net.au>
647
648 * deffilep.y (STACKSIZE_K): Rename from STACKSIZE.
649
650 2009-04-25 Alan Modra <amodra@bigpond.net.au>
651
652 PR 10061
653 * genscripts.sh: Don't pass $EMULATION_NAME as $CUSTOMIZER_SCRIPT
654 param.
655
656 2009-04-21 Daniel Jacobowitz <dan@codesourcery.com>
657
658 * emultempl/armelf.em (bfd_for_interwork, arm_elf_after_open)
659 (arm_elf_set_bfd_for_interworking): Delete.
660 (arm_elf_before_allocation): Do not set the interworking BFD.
661 Move allocation inside not-dynamic block.
662 (arm_elf_create_output_section_statements): Create glue sections
663 and set the interworking BFD here.
664 (LDEMUL_AFTER_OPEN): Delete.
665
666 2009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com>
667
668 * ldlang.c (lang_one_common): Use bfd_define_common_symbol.
669
670 2009-04-15 Anthony Green <green@moxielogic.com>
671
672 * configure.tgt: Add moxie support.
673 * Makefile.am: Add moxie files.
674 * Makefile.in: Rebuilt.
675 * emulparams/elf32moxie.sh: New file.
676 * scripttempl/moxie.sc: New file.
677
678 2009-04-15 Kazu Hirata <kazu@codesourcery.com>
679
680 * ldlang.c: Do not include limits.h.
681
682 2009-04-14 Alan Modra <amodra@bigpond.net.au>
683
684 PR ld/10047
685 * ldfile.c (find_scripts_dir): Use make_relative_prefix to find
686 ldscripts in build tree. Don't repeat search for ../lib/ldscripts.
687
688 2009-04-13 H.J. Lu <hongjiu.lu@intel.com>
689
690 * ldfile.c (ldfile_find_command_file): Revert the last change.
691
692 2009-04-11 H.J. Lu <hongjiu.lu@intel.com>
693
694 PR ld/10047
695 * ldfile.c (ldfile_find_command_file): First try raw name.
696
697 2009-04-09 Nick Clifton <nickc@redhat.com>
698
699 PR 9824
700 * ld.texinfo (Output Section Constraint): New node. Documents the
701 ONLY_IF_RO and ONLY_IF_RW constraints.
702 (Symbolic Constants): New node. Documents the CONSTANT operator.
703
704 2009-04-09 Thilo Fischer <thilo.fischer@uni-muenster.de>
705
706 * emultempl/spuelf.em (embedded_spu_file): Use pex_one in place
707 of fork/execvp.
708
709 2009-04-08 H.J. Lu <hongjiu.lu@intel.com>
710
711 * lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM.
712 (ld_options): Likewise.
713 (parse_args): Likewise.
714
715 * ld.texinfo: Document --warn-alternate-em.
716
717 * NEWS: Mention --warn-alternate-em.
718
719 2009-04-07 DJ Delorie <dj@redhat.com>
720
721 * emulparams/elf32mep.sh: Change default endian to little.
722
723 2009-04-07 Nick Clifton <nickc@redhat.com>
724
725 * ld.texinfo (Output Section Address): Note that specifying an
726 address for an output section will only change the location
727 counter if the output section is used.
728
729 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
730
731 * ldfile.c (ldfile_find_command_file): Initialize result.
732
733 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
734
735 * ld.texinfo (-L): Mention that -L options do not affect how ld
736 searches for a linker script unless -T option is specified.
737 * ldfile.c (ldfile_find_command_file): Append the path obtained
738 from the program name to the search path instead of
739 prepending. Add a new parameter "default_only". Restrict the
740 search to the default script location if the new parameter is
741 true.
742 (ldfile_open_command_file_1): New.
743 (ldfile_open_command_file): Call ldfile_open_command_file_1.
744 (ldfile_open_default_command_file): New.
745
746 2009-04-03 Nathan Sidwell <nathan@codesourcery.com>
747
748 * ldlang.c (lang_leave_output_section_statement): Set lma_region
749 if it is not overridden and section is for the same vma region as
750 the previous section.
751
752 2009-04-02 Dave Korn <dave.korn.cygwin@gmail.com>
753
754 PR ld/6744
755 * ld.texinfo (--export-dynamic): Mention --export-all-symbols.
756 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Issue
757 warning if --export-dynamic was passed on command-line.
758 * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
759
760 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
761
762 * emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
763 function.
764 (ld_${EMULATION_NAME}_emulation): Use it.
765
766 2009-03-20 H.J. Lu <hongjiu.lu@intel.com>
767
768 PR ld/9970
769 * ldlang.c (lang_end): Warn missing entry symbol for -pie.
770
771 2009-03-19 Alan Modra <amodra@bigpond.net.au>
772
773 * emultempl/spuelf.em (spu_before_allocation): Report errors from
774 spu_elf_find_overlays.
775
776 2009-03-18 H.J. Lu <hongjiu.lu@intel.com>
777
778 PR ld/6766
779 * lexsup.c (parse_args): Call ldlang_add_undef for -e.
780
781 2009-03-18 Alan Modra <amodra@bigpond.net.au>
782
783 * ld.h: Remove alloca handling.
784
785 2009-03-17 Alan Modra <amodra@bigpond.net.au>
786
787 * emultempl/spu_icache.S: Add new entry to dummy handler.
788 * emultempl/spu_icache.o_c: Regenerate.
789 * emultempl/spuelf.em (params): Init new field.
790 (no_overlays): New static var.
791 (spu_before_allocation): Use it.
792 (OPTION_SPU_COMPACT_STUBS): Define.
793 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs.
794 (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs. Adjust no-overlays
795 handling.
796
797 2009-03-17 Alan Modra <amodra@bigpond.net.au>
798
799 * configure.host (HOSTING_LIBS): Two dollars on shell variable
800 expansion to suit make.
801
802 2009-03-17 Alan Modra <amodra@bigpond.net.au>
803
804 * configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
805 * Makefile.am (check-DEJAGNU): Set DO_COMPARE.
806 * aclocal.m4: Regenerate.
807 * configure: Regenerate.
808 * Makefile.in: Regenerate.
809
810 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
811
812 * emultempl/aix.em (auto_export_flags): New variable.
813 (explicit_auto_export_flags): Likewise.
814 (OPTION_EXPALL, OPTION_EXPFULL): New enum values.
815 (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
816 (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
817 -bnoexpall and -bnoexpfull.
818 (gld${EMULATION_NAME}_handle_option): Handle them.
819 (gld${EMULATION_NAME}_before_allocation): Update the call to
820 bfd_size_dynamic_sections.
821
822 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
823
824 * emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
825 -berok and -bernotok control link_info.unresolved_syms_in_objects
826 and link_info.unresolved_syms_in_shared_libs instead of
827 force_make_executable.
828
829 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
830
831 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
832 config.dynamic_link to TRUE.
833
834 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
835
836 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark
837 .text, .data and .bss output sections as SEC_KEEP.
838
839 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
840
841 * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
842
843 2009-03-14 Dave Korn <dave.korn.cygwin@gmail.com>
844 Danny Smith <dannysmith@users.sourceforge.net>
845
846 * emultmpl/pe.em (pe_dll_characteristics): New variable.
847 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
848 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
849 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
850 New macros for options to set DllCharacteristics flag bits.
851 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
852 nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
853 (init): Add DllCharacteristics field.
854 (gld_${EMULATION_NAME}_list_options): List new options.
855 (gld${EMULATION_NAME}_handle_option): Handle new options.
856 * emultmpl/pep.em (pe_dll_characteristics): New variable.
857 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
858 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
859 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
860 New macros for options to set DllCharacteristics flags.
861 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
862 nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
863 (init): Add DllCharacteristics field.
864 (gld_${EMULATION_NAME}_list_options): List new options.
865 (gld${EMULATION_NAME}_handle_option): Handle new options.
866 * ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
867 no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
868
869 2009-03-06 Nick Clifton <nickc@redhat.com>
870
871 * po/es.po: Updated Spanish translation.
872
873 2009-03-03 Dave Korn <dave.korn.cygwin@gmail.com>
874
875 * emultempl/pe.em (debug_section_p): New bfd_map_over_sections hook.
876 (gld_${EMULATION_NAME}_after_open): Use it to iterate all sections
877 of all input BFDs, looking for debug info. Enable long section names
878 if any found.
879 * emultempl/pe.em (debug_section_p): Likewise.
880 (gld_${EMULATION_NAME}_after_open): Likewise.
881 * NEWS: Retrospectively adjust news announcement.
882 * ld.texinfo: Update documentation to mention new behaviour.
883
884 2009-03-03 Alan Modra <amodra@bigpond.net.au>
885
886 * Makefile.am: Run "make dep-am".
887 * Makefile.in: Regenerate.
888
889 2009-03-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
890
891 * ldgram.y: Add support for REGION_ALIAS operator.
892 * ldlang.c: Likewise.
893 * ldlang.h: Likewise.
894 * ldlex.l: Likewise.
895 * NEWS: Mention the new feature.
896 * ld.texinfo: Document the new feature.
897
898 2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
899
900 * Makefile.am: Replace score elf emulation with score3 and score7
901 emulations.
902 * Makefile.in: Regenerate,
903 * NEWS: Mention support for Score7 architecture.
904 * configure.tgt: Add score7 emulation to score-elf target.
905 * emulparams/scoreelf.sh: Add score7 support.
906 * emultempl/scoreelf.em: Likewise.
907
908 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
909
910 * configure.tgt: Only use elf64hppa target emulation for hpux.
911 * emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
912 (SCRIPT_NAME): Use new script elf64hppa.
913 (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
914 TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
915 OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
916 DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
917 TEXT_DYNAMIC): Define.
918 * emulparams/hppa64linux.sh: Adjust comments.
919 * scripttempl/elf64hppa.sc: New file.
920
921 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
922
923 * configure: Regenerate.
924
925 2009-02-27 Dave Korn <dave.korn.cygwin@gmail.com>
926
927 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
928 default state of auto-import flag based on $target.
929
930 2009-02-24 Joseph Myers <joseph@codesourcery.com>
931
932 * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
933 * emultempl/armelf.em (hook_in_stub): Insert after the input section.
934 (elf32_arm_add_stub_section): Update comment.
935 (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
936
937 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
938
939 * ld.texinfo (Options): Correct typos in example. Recommend
940 using joined forms of syntax for passing options with arguments
941 from a driver.
942 (-a): Use consistent syntax for documenting option arguments.
943 Clean up indexing and markup.
944 (-A/--architecture): Likewise.
945 (-f/--auxiliary): Likewise.
946 (-F/--filter): Likewise.
947 (-fini): Likewise.
948 (-G/--gpsize): Likewise.
949 (-h/-soname):Likewise.
950 (-init): Likewise.
951 (-l/--library): Likewise.
952 (-L/--library-path): Likewise.
953 (-m): Likewise.
954 (--defsym): Likewise.
955 (-I/--dynamic-linker): Likewise.
956 (-Map): Likewise.
957 (--oformat): Likewise.
958 (--retain-symbols-file): Likewise.
959 (-rpath): Likewise.
960 (-rpath-link): Likewise.
961 (--sort-common): Likewise.
962 (--sort-section): Likewise.
963 (--split-by-file): Likewise.
964 (--split-by-reloc): Likewise.
965 (--sysroot): Likewise.
966 (--section-start): Likewise.
967 (-Tbss, -Tdata, -Ttext): Likewise.
968 (-Ttext-segment): Likewise.
969 (--version-script): Likewise.
970 (--wrap): Likewise.
971
972 2009-02-18 Dave Korn <dave.korn.cygwin@gmail.com>
973
974 * ld.texinfo: Update to mention long section name options.
975 * NEWS: Mention new behaviour and command-line options.
976 * pe-dll.c (pe_use_coff_long_section_names): New global variable.
977 (pe_output_file_set_long_section_names): New function.
978 (pe_dll_build_sections): Call it on output BFDs.
979 (pe_exe_build_sections): Likewise.
980 (pe_dll_fill_sections): Likewise.
981 (pe_exe_fill_sections): Likewise.
982 * pe-dll.h (pe_use_coff_long_section_names): Declare extern.
983 (pe_output_file_set_long_section_names): Add prototype.
984 * pep-dll.c (pe_use_coff_long_section_names): Define pep_ alias.
985 (pe_output_file_set_long_section_names): Likewise.
986 * pep-dll.h (pep_use_coff_long_section_names): Declare extern.
987 (pep_output_file_set_long_section_names): Add prototype.
988 * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES): New getopt value macro.
989 (OPTION_DISABLE_LONG_SECTION_NAMES): Likewise.
990 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
991 (gld_${EMULATION_NAME}_list_options): Describe them.
992 (gld${EMULATION_NAME}_handle_option): Set or clear global
993 pe_use_coff_long_section_names flag when options recognised.
994 (gld_${EMULATION_NAME}_after_open): En/disable long section names
995 for main output bfd by calling pe_output_file_set_long_section_names.
996 * pep.em (enum options): Extend enum with new getopt option values.
997 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
998 (gld_${EMULATION_NAME}_list_options): Describe them.
999 (gld${EMULATION_NAME}_handle_option): Set or clear global
1000 pe_use_coff_long_section_names flag when options recognised.
1001 (gld_${EMULATION_NAME}_after_open): En/disable long section names
1002 for main output bfd by calling pep_output_file_set_long_section_names.
1003
1004 2009-02-16 Dave Korn <dave.korn.cygwin@gmail.com>
1005
1006 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit
1007 inadvertent .reloc sections caused by refactoring accident.
1008
1009 2009-02-16 Alan Modra <amodra@bigpond.net.au>
1010
1011 * ldlang.c (process_insert_statements): ASSERT that output section
1012 statements are in order.
1013
1014 2009-02-16 Alan Modra <amodra@bigpond.net.au>
1015
1016 * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
1017 (stat_save, stat_save_ptr): New variables.
1018 (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
1019 (load_symbols): Likewise. Delete dead "bad_load" code.
1020 (open_input_bfds): Warn on script containing output sections.
1021 (lang_enter_output_section_statement): Use push_stat_ptr.
1022 (lang_enter_group): Likewise.
1023 (lang_leave_output_section_statement): Use pop_stat_ptr.
1024 (lang_leave_group): Likewise.
1025 * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
1026 * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
1027 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
1028 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
1029 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
1030 * emultempl/spuelf.em (spu_place_special_section): Likewise.
1031 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
1032
1033 2009-02-09 Nathan Sidwell <nathan@codesourcery.com>
1034
1035 Missing piece of 2009-01-26 commit
1036 * ldlang.c (lang_process): Don't consider relocatable flag when
1037 checking for overlap.
1038
1039 2009-02-05 Joseph Myers <joseph@codesourcery.com>
1040
1041 * emulparams/m68kelf.sh: Add newline at end of file.
1042
1043 2009-02-04 Nick Clifton <nickc@redhat.com>
1044
1045 PR 9805
1046 * ld.texinfo (--allow-shlib-undefined): Correct description of
1047 default settings and tidy up the rest of the entry.
1048
1049 2009-02-04 Alan Modra <amodra@bigpond.net.au>
1050
1051 * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
1052 during relocatable link.
1053
1054 2009-02-03 Nick Clifton <nickc@redhat.com>
1055
1056 PR 9797
1057 * ld.texinfo (Constants): Document the base-encoding suffixes
1058 supported in linker scripts.
1059
1060 2009-02-03 Alan Modra <amodra@bigpond.net.au>
1061
1062 * NEWS: Mention --as-needed change.
1063
1064 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
1065
1066 * configure.in: AC_SUBST pdfdir.
1067 * Makefile.am: Add install-pdf, install-pdf-am,
1068 and install-pdf-recursive targets. Define pdf__strip_dir.
1069 * po/Make-in: Add install-pdf target.
1070 * configure: Regenerate.
1071 * Makefile.in: Regenerate.
1072
1073 2009-01-31 Alan Modra <amodra@bigpond.net.au>
1074
1075 * ld.texinfo (--as-needed): Update.
1076
1077 2009-01-29 Andrew Jenner <andrew@codesourcery.com>
1078
1079 * emultempl/armelf.em: Correct formatting of help text for
1080 --no-enum-size-warning option.
1081
1082 2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
1083
1084 * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
1085 * ld.h (args_type): Make check_section_addresses a char.
1086 * ldmain.c (main): Default check_section_addresses to -1. Check it
1087 for relocatable links.
1088 * ld.texinfo (--check-sections): Update documentation.
1089
1090 2009-01-26 Kai Tietz <kai.tietz@onevision.com>
1091
1092 * pe-dll.c (tmp_seq2): New static variable.
1093 (make_singleton_name_imp): New.
1094 (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
1095 avoid duplicate import table generation for same symbol.
1096 (pe_create_runtime_relocator_reference): Make reference for
1097 64-bit 8 bytes.
1098
1099 2009-01-21 Alan Modra <amodra@bigpond.net.au>
1100
1101 * emultempl/spuelf.em (params): Init new field.
1102 (OPTION_SPU_NON_IA_TEXT): Define.
1103 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
1104 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
1105
1106 2009-01-16 H.J. Lu <hongjiu.lu@intel.com>
1107
1108 * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
1109 (ld_options): Add -Ttext-segment.
1110 (parse_args): Handle OPTION_TTEXT_SEGMENT.
1111
1112 * ld.texinfo: Document -Ttext-segment.
1113
1114 * NEWS: Mention -Ttext-segment.
1115
1116 * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
1117 (SHLIB_TEXT_START_ADDR): Likewise.
1118
1119 2009-01-13 Alan Modra <amodra@bigpond.net.au>
1120
1121 * emultempl/spu_icache.o_c: Regenerate.
1122
1123 2009-01-12 Alan Modra <amodra@bigpond.net.au>
1124
1125 * emultempl/spuelf.em (params): Init new fields.
1126 (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
1127 (spu_place_special_section): Adjust placement for soft-icache. Pad
1128 soft-icache section to a fixed size. Clear addr_tree.
1129 (spu_elf_load_ovl_mgr): Support soft-icache. Map overlay manager
1130 sections a little more intelligently.
1131 (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
1132 (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
1133 (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
1134 (OPTION_SPU_LRLIVE): Define.
1135 (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
1136 (PARSE_AND_LIST_OPTIONS): Likewise.
1137 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1138 * emultempl/spu_icache.S: Dummy file.
1139 * emultempl/spu_icache.o_c: Regenerate.
1140 * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
1141 (spu_icache.o_c): Add rule to build.
1142 (CLEANFILES): Zap temp files.
1143 (EXTRA_DIST): Add spu_icache.o_c.
1144 * Makefile.in: Regenerate.
1145
1146 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
1147
1148 * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
1149 (gld..._add_options): Add new option
1150 --use-nul-prefixed-import-tables.
1151 (gld..._handle_option): Likewise.
1152 * pep.em: Same as for pe.em.
1153 * ld.texinfo: Add new option documentation for
1154 --use-nul-prefixed-import-tables.
1155 * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
1156 (make_head): Make prefix leading zero prefix element for
1157 idata$4 and idata$5 dependent to new flag.
1158 (make_import_fixup_entry): Remove idata4/5 prefix.
1159 * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
1160 * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
1161 * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
1162 * NEWS: Add new option.
1163
1164 2009-01-05 Kai Tietz <kai.tietz@onevision.com>
1165
1166 * emultempl/pe.em: Prefix dollar characters to be outputed in
1167 generated C file.
1168 * emultempl/pep.em: Likewise.
1169
1170 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
1171
1172 * NEWS: Mention new feature --exclude-modules-for-implib.
1173 * ld.texinfo: Document new --exclude-modules-for-implib option.
1174 * pe-dll.c (exclude_list_struct): Change type member from int to
1175 new enumeration exclude_type.
1176 (pe_dll_add_excludes): Accept exclude_type instead of int param.
1177 (auto_export): Replace magic constants by exclude_type values and
1178 handle new choice EXCLUDEFORIMPLIB.
1179 (pe_dll_generate_implib): Accept a pointer to the link_info and
1180 iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
1181 fresh BFDs for any found and link into import lib archive chain.
1182 * pe-dll.h (exclude_type): Add new enumerated type to replace magic
1183 constants previously used for exclude_list_struct type member.
1184 (pe_dll_add_excludes, pe_dll_generate_implib): Update prototypes.
1185 * pep-dll.h (exclude_type, pe_dll_add_excludes,
1186 pe_dll_generate_implib): Likewise to all the above.
1187 * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB): Define new
1188 getopts long option code for new --exclude-modules-for-implib option.
1189 (gld${EMULATION_NAME}_add_options): Add new entry to xtra_long[].
1190 (gld_${EMULATION_NAME}_list_options): List usage for it.
1191 (gld${EMULATION_NAME}_handle_option): Use exclude_type enumerated
1192 values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
1193 (gld_${EMULATION_NAME}_finish): Pass pointer to link_info when
1194 calling pe_dll_generate_implib.
1195 * emultempl/pep.em (options): Define new enumerated value for getopts
1196 long option code for new --exclude-modules-for-implib option.
1197 (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
1198 gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
1199 Again, likewise to all the above.
1200
1201 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
1202
1203 * pe-dll.c (autofilter_liblist): Add entry for shared libgcc.
1204 (libnamencmp): New function.
1205 (auto_export): Use it in place of strncmp when filtering libraries.
1206
1207 For older changes see ChangeLog-2008
1208 \f
1209 Local Variables:
1210 mode: change-log
1211 left-margin: 8
1212 fill-column: 74
1213 version-control: never
1214 End:
This page took 0.052207 seconds and 3 git commands to generate.