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