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