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