PR binutils/11017
[binutils.git] / ld / ChangeLog
blobb7d65f52623928d18a3566042e73dcf64445f48a
1 2009-11-30  Joseph Myers  <joseph@codesourcery.com>
3         * configure: Regenerate.
5 2009-11-30  Alan Modra  <amodra@bigpond.net.au>
7         PR ld/11006
8         * lexsup.c (parse_args): Allow nested --start-group, --end-group.
10 2009-11-27  Tristan Gingold  <gingold@adacore.com>
12         * pe-dll.c (pe_implied_import_dll): Return early if there is no
13         export entries.
15 2009-11-26  Nick Clifton  <nickc@redhat.com>
17         PR ld/10956
18         * ld.h (struct args_type): Rename 'relax' field to
19         'disable_target_specific_optimizations' and turn it into a
20         tri-state variable.
21         (RELAXATION_DISABLED_BY_DEFAULT): New macro.
22         (RELAXATION_DISABLED_BY_USER): New macro.
23         (RELAXATION_ENABLED): New macro.
24         (DISABLE_RELAXATION): New macro.
25         (ENABLE_RELAXATION): New macro.
26         * lexsup (enum option_values): Add OPTION_NO_RELAX.
27         (struct ld_options): Add --no-relax.
28         (parse_args): Handle OPTION_NO_RELAX.  Use DISABLE_RELAXATION and
29         ENABLE_RELAXATION macros.
30         * ldlang.c (lang_relax_sections): Use RELAXATION_ENABLED macro.
31         (lang_process): Likewise.
32         * ldmain.c (main): Initialise
33         disable_target_specific_optimizations field.
34         (multiple_definition): Use RELAXATION_ENABLED macro.
35         * ld.texinfo: Document new command line option.
36         * emultempl/alphaelf.em: Remove --no-relax option.
37         (before_allocation): Test RELAXATION_DISABLED_BY_USER macro.
38         Use ENABLE_RELAXATION macro.
39         * emultempl/avrelf.em: (after_allocation): Test RELAXATION_ENABLED
40         macro.
41         * emultempl/cr16elf.em: Remove --no-relax option.
42         (before_allocation): Test RELAXATION_DISABLED_BY_USER macro.
43         Use ENABLE_RELAXATION macro.
44         * emultempl/crxelf.em: Remove --no-relax option.
45         (before_allocation): Test RELAXATION_DISABLED_BY_USER macro.
46         Use ENABLE_RELAXATION macro.
47         * emultempl/mmix-elfnmmo.em: (before_allocation): Use
48         ENABLE_RELAXATION macro.
49         * emultempl/needrelax.em: (before_allocation): Use
50         ENABLE_RELAXATION macro.
51         * emultempl/ppc32elf.em: (before_allocation): Test
52         RELAXATION_DISABLED_BY_DEFAULT macro. Use
53         ENABLE_RELAXATION macro.
54         * emultempl/sh64elf.em: (before_allocation): Test
55         RELAXATION_ENABLED macro. Use DISABLE_RELAXATION macro.
56         * emultempl/xtensaelf.em: Remove --no-relax option.
57         (before_allocation): Test RELAXATION_ENABLED macro.
58         Use ENABLE_RELAXATION macro.
59         
60 2009-11-25  Kai Tietz  <kai.tietz@onevision.com>
62         * scripttempl/pe.sc: (.note.GNU-stack): Mark as discardable.
63         (.gnu.lto_*): Likewise.
64         * scripttempl/pep.sc: (.note.GNU-stack): Mark as discardable.
65         (.gnu.lto_*): Likewise.
67 2009-11-23  Paul Brook  <paul@codesourcery.com>
69         * ldexp.c: Copy symbol type for simple assignments.
71 2009-11-20  Thomas Schwinge  <thomas@codesourcery.com>
73         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS)
74         <__exidx_start, __exidx_end>: Use PROVIDE_HIDDEN.
75         * emulparams/armelf_linux_eabi.sh (OTHER_READONLY_SECTIONS)
76         <__exidx_start, __exidx_end>: Likewise.
77         * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS)
78         <.ARM.exidx$$Base, __exidx_start, __exidx_end, .ARM.exidx$$Limit>:
79         Likewise.
81 2009-11-19  Matthias Klose  <doko@ubuntu.com>
83         PR ld/9863
84         * emulparams/armelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
85         with __data_start.
87 2009-11-19  Ben Elliston  <bje@au.ibm.com>
89         * ldlex.l: Enable nounput flex option.
91 2009-11-15  Kai Tietz  <kai.tietz@onevision.com>
93         * pe-dll.c (pe_undef_alias_cdecl_match): New function.
94         (pe_find_cdecl_alias_match): New function.
95         (pe_process_import_defs): Add matching for import symbols
96         declared as cdecl for fastcall/stdcall.
97         * emultempl/pe.em (pe_undef_cdecl_match): Treat fastcall
98         symbols, too.
99         (pe_fixup_stdcalls): Likewise.
100         (gld_XXX_after_open): Redo scanning for imported
101         fastcall/stdcall symbols as cdecl one.
102         * emultempl/pep.em (pep_undef_cdecl_match): Treat fastcall
103         symbols, too.
104         (pep_fixup_stdcalls): Likewise.
105         (gld_XXX_after_open): Redo scanning for imported
106         fastcall/stdcall symbols as cdecl one.
108 2009-11-11  Nick Clifton  <nickc@redhat.com>
110         * po/id.po: Updated Indonesian translation.
112 2009-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
114         * configure.in: Call ACX_LARGEFILE.  Stop calling AC_SYS_LARGEFILE.
115         * aclocal.m4: Regenerate.
116         * configure: Regenerate.
118 2009-11-10  Nick Clifton  <nickc@redhat.com>
120         PR ld/10864
121         * ld.texinfo (Entry Point): Mention that the default entry symbol
122         is not 'start' on some targets.
124 2009-11-06  H.J. Lu  <hongjiu.lu@intel.com>
126         PR ld/10912
127         * ldmain.c (add_DT_NEEDED_for_dynamic): Default to TRUE.
129 2009-11-06  Kai Tietz  <kai.tietz@onevision.com>
131         * pe.em (DEFAULT_PSEUDO_RELOC_VERSION): New macro.
132         (gld_XXX_before_parse): Set pseudo-relocation default
133         version to DEFAULT_PSEUDO_RELOC_VERSION.
134         (gldXXX_handle_option): Likewise.
137 2009-11-05  Nick Clifton  <nickc@redhat.com>
139         * lexsup.c: Rename --add-needed to --copy-dt-needed-entries.
140         * ldlang.h (struct lang_input_statement_struct): Rename add_needed
141         to add_DT_NEEDED_for_dynamic.  Rename as_needed to
142         add_DT_NEEDED_for_regular.
143         * ldlang.c: Likewise.
144         * ldlang.h: Likewise.
145         * ldlang.c: Use the new variable names.
146         * ldgram.y: Likewise.
147         * emultempl/elf32.em: Likewise.
148         * ld.texinfo: Document the renamed option.  Also mention its
149         affect on the resolution of dynamic symbols.
150         * NEWS: Mention the changed option name.
152 2009-11-04  Kai Tietz  <kai.tietz@onevision.com>
154         * emulparams/arm_epoc_pe.sh: Remove ENTRY.
155         * emulparams/arm_wince_pe.sh: Likewise.
156         * emulparams/i386pe.sh: Likewise.
157         * emulparams/i386pe_posix.sh: Likewise.
158         * emulparams/mcorepe.sh: Likewise.
159         * emulparams/mipspe.sh: Likewise.
160         * emulparams/ppcpe.sh: Likewise.
161         * emulparams/armpe.sh: Likewise.
162         * emulparams/i386pep.sh: Likewise.
163         * emulparams/shpe.sh: Likewise.
164         Additionally cleaned up double-defined
165         variables SUBSYSTEM and INITIAL_SYMBOL_CHAR.
166         * emultempl/pe.em: Remove use of ENTRY.
167         (pe_subsystem): New local variable.
168         (gld_XXX_before_parse): Don't set default
169         entry point here.
170         (set_entry_point): New function to set entry
171         point.
172         (set_pe_subsystem): Remove code for entry point.
173         (gld_XXX_after_parse): Use set_entry_point here.
174         * emultempl/pep.em: Likewise.
176 2009-10-29  Nathan Sidwell  <nathan@codesourcery.com>
178         * emulparams/vxworks.sh (OTHER_READONLY_SECTIONS): Move into ...
179         (OTHER_READWRITE_SECTIONS): ... here.
181 2009-10-28  Kai Tietz  <kai.tietz@onevision.com>
183         * emultempl/pep.em (U): Define underscore macro.
184         (init): Use for __ImageBase U macro.
186 2009-10-23  Kai Tietz  <kai.tietz@onevision.com>
188         * deffile.h (def_file_export): New member its_name.
189         (def_file_import): Likewise.
190         (def_file_add_export): Add argument its_name.
191         (def_file_add_import): Likewise.
192         * deffilep.y (def_exports): Add argument its_name.
193         (def_import): Likewise.
194         (EQUAL): Add new token for '=='.
195         (opt_equalequal_name): New rule.
196         (expline): Add rule opt_equalequal_name.
197         (impline): Likewise.
198         (def_file_free): Free for exports and imports
199         the optional member its_name.
200         (def_lex): Add scan of '==' as EQUAL.
201         * pe-dll.c (pe_export_sort): Sort for its_name too.
202         (process_def_file_and_drectve): Adjust calls to
203         def_file_add_export.
204         (generate_edata): Take its_name in account.
205         (make_one): Likewise.
206         (pe_process_import_defs): Likewise.
207         (pe_dll_generate_def_file): Add print of new '==' option.
208         * ld.texinfo: Extend documentation about .def file syntax.
209         * NEWS: Mention new feature.
211 2009-10-23  Kai Tietz  <kai.tietz@onevision.com>
213         * deffilep.y (def_lex): Allow '<' and '>' characters in identifier
214         strings.
216 2009-10-23  Ryan Mansfield  <rmansfield@qnx.com>
218         PR ld/10489
219         * emultempl/elf32.em (gld${EMULATION_NAME}_search_needed): Handle
220         drive specifiers for DOS based filesystems in rpath-link strings.
222 2009-10-19  Nick Clifton  <nickc@redhat.com>
224         * Makefile.am: Remove spurious sanitization marker.
225         * Makefile.in: Regenerate.
227 2009-10-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
229         * emultempl/pe.em (OPTION_EXCLUDE_ALL_SYMBOLS): New macro.
230         (gld${EMULATION_NAME}_add_options): Add new --exclude-all-symbols option
231         to exclude all symbols from automatic export.
232         (gld_${EMULATION_NAME}_list_options): Describe it.
233         (gld${EMULATION_NAME}_handle_option): Handle it.
234         * emultempl/pep.em: Likewise to all the above.
235         * pe-dll.c (pe_dll_exclude_all_symbols): New variable.
236         (process_def_file_and_drectve): Use it.
237         * pe-dll.h (pe_dll_exclude_all_symbols): Declare.
238         * pep-dll.c (pep_dll_exclude_all_symbols): Define pep_ alias.
239         * pep-dll.h (pe_dll_exclude_all_symbols): Declare.
240         * NEWS: Mention the new feature.
241         * ld.texinfo: Document the new command line switch.
243 2009-10-14  Andreas Schwab  <schwab@linux-m68k.org>
245         * ldlex.l (yy_input): Remove second argument and return the value
246         instead.
247         (YY_INPUT): Adjust.
249 2009-10-14  Alan Modra  <amodra@bigpond.net.au>
251         * emultempl/netbsd.em (gldnetbsd_before_parse): Typo fix.
253 2009-10-14  Ryan Mansfield  <rmansfield@qnx.com>
255         * ldlang.c (load_symbols): Set whole_archive from entry when
256         parsing a linker script.
258 2009-10-10  Alan Modra  <amodra@bigpond.net.au>
260         * scripttempl/elf32cr16.sc: Revert 2009-09-28 changes.
261         * scripttempl/elf32cr16c.sc: Likewise.
262         * scripttempl/elf32crx.sc: Likewise.
263         * scripttempl/tic54xcoff.sc: Likewise.
264         * scripttempl/aix.sc: Likewise.
265         * scripttempl/avr.sc: Likewise.
266         * scripttempl/elf32msp430.sc: Likewise.
267         * scripttempl/elf32msp430_3.sc: Likewise.
268         * scripttempl/elf32sh-symbian.sc: Likewise.
269         * scripttempl/elf_chaos.sc: Likewise.
270         * scripttempl/elfi370.sc: Likewise.
271         * scripttempl/nw.sc: Likewise.
272         * scripttempl/psos.sc: Likewise.
273         * scripttempl/armbpabi.sc: Likewise.
274         * scripttempl/elf.sc: Likewise.
275         * scripttempl/elf64hppa.sc: Likewise.
276         * scripttempl/elfd10v.sc: Likewise.
277         * scripttempl/elfd30v.sc: Likewise.
278         * scripttempl/elfm68hc11.sc: Likewise.
279         * scripttempl/elfm68hc12.sc: Likewise.
280         * scripttempl/elfmicroblaze.sc: Likewise.
281         * scripttempl/elfxtensa.sc: Likewise.
282         * scripttempl/iq2000.sc: Likewise.
283         * scripttempl/mep.sc: Likewise.
284         * scripttempl/xstormy16.sc: Likewise.
286 2009-10-09  Alan Modra  <amodra@bigpond.net.au>
288         PR ld/10749
289         * ldlang.c (lang_size_sections_1): Zero section vmas only for COFF.
291 2009-10-08  Alan Modra  <amodra@bigpond.net.au>
293         PR ld/10744
294         * ldlang.c (lang_new_phdr): Allow FILEHDR/PHDRS on more than the
295         first PT_LOAD header.
296         * ld.texinfo: Update.
298 2009-10-06  Nathan Sidwell  <nathan@codesourcery.com>
300         * ldlang.c (lang_new_phdr): Check PHDRS and FILEHDR in loadable
301         segments do not appear after a different loadable segment.
302         * ld.texinfo (PHDRS): Document order of processing segments.
303         Document where PHDRS and FILEHDR may appear.
305 2009-10-03  Alan Modra  <amodra@bigpond.net.au>
307         * emultempl/ppc32elf.em (emit_stub_syms): Init to -1.
308         (ppc_after_open): Set emit_stubs_syms by default when shared.
309         (OPTION_NO_STUBSYMS): Define.
310         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
311         PARSE_AND_LIST_ARGS_CASES): Handle --no-emit-stub-syms.
312         * emultempl/ppc64elf.em (emit_stub_syms): Init to -1.
313         (gld${EMULATION_NAME}_finish): Set emit_stubs_syms by default.
314         (OPTION_NO_STUBSYMS): Define.
315         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
316         PARSE_AND_LIST_ARGS_CASES): Handle --no-emit-stub-syms.
318 2009-09-29  Joel Sherrill <joel.sherrill@oarcorp.com>
320         * emulparams/m68kelf.sh (NOP): Use 0x4e71 (nop) rather than 0x4e75
321         (rts).
323 2009-09-29  DJ Delorie  <dj@redhat.com>
325         * Makefile.am: Add rules to build RX emulation.
326         * configure.tgt: Likewise.
327         * NEWS: Mention support for RX architecture.
328         * Makefile.in: Regenerate.
329         * emulparams/elf32rx.sh: New file.
330         * emultempl/rxelf.em: New file.
332 2009-09-29  Alan Modra  <amodra@bigpond.net.au>
334         * ldlang.c (lang_size_sections_1): Allow scripts to specify a
335         non-zero vma even when relocatable.
337 2009-09-28  Alan Modra  <amodra@bigpond.net.au>
339         * scripttempl/elf32cr16.sc: Emit empty script for ld -r and ld -Ur.
340         * scripttempl/elf32cr16c.sc: Likewise.
341         * scripttempl/elf32crx.sc: Likewise.
342         * scripttempl/tic54xcoff.sc: Likewise.
343         * scripttempl/aix.sc: Delete ${RELOCATING-0}.
344         * scripttempl/avr.sc: Likewise.
345         * scripttempl/elf32msp430.sc: Likewise.
346         * scripttempl/elf32msp430_3.sc: Likewise.
347         * scripttempl/elf32sh-symbian.sc: Likewise.
348         * scripttempl/elf_chaos.sc: Likewise.
349         * scripttempl/elfi370.sc: Likewise.
350         * scripttempl/nw.sc: Likewise.
351         * scripttempl/psos.sc: Likewise.
352         * scripttempl/armbpabi.sc: Delete ${RELOCATING-0} and ${CONSTRUCTING-0}.
353         * scripttempl/elf.sc: Likewise.
354         * scripttempl/elf64hppa.sc: Likewise.
355         * scripttempl/elfd10v.sc: Likewise.
356         * scripttempl/elfd30v.sc: Likewise.
357         * scripttempl/elfm68hc11.sc: Likewise.
358         * scripttempl/elfm68hc12.sc: Likewise.
359         * scripttempl/elfmicroblaze.sc: Likewise.
360         * scripttempl/elfxtensa.sc: Likewise.
361         * scripttempl/iq2000.sc: Likewise.
362         * scripttempl/mep.sc: Likewise.
363         * scripttempl/xstormy16.sc: Likewise.
365 2009-09-27  Christopher Faylor  <me+cygwin@cgf.cx>
367         PR ld/10634
368         * ldlang.c (lang_size_sections_1): Always force output vma to zero for
369         relocatable sections.
370         (lang_size_sections_1): Revert previous COFF-only accommodation for
371         relocatable sections.
373 2009-09-25  Martin Thuresson  <martint@google.com>
375         Update sources to make arm targets compile cleanly with
376         -Wc++-compat:
377         * emultempl/armelf.em: Add casts.
379 2009-09-23  Matt Rice  <ratmice@gmail.com>
381         * emultempl/elf32.em (gld${EMULATION_NAME}_add_options): Add --audit,
382         --depaudit, and -P options.
383         (gld${EULATION_NAME}_handle_options): Ditto.
384         (gld${EULATION_NAME}_list_options): Ditto.
385         (gld${EMULATION_NAME}_append_to_separated_string): New function for
386         handling rpath-like colon separated strings.
387         (gld${EMULATION_NAME}_before_allocation): Pass the audit and depaudit
388         libs to bfd.  Propagate DT_AUDIT from needed libs to depaudit.
389         * ld.texinfo: Document new options.
391 2009-09-23  Nick Clifton  <nickc@redhat.com>
393         * po/vi.po: Updated Vietnamese translation.
395 2009-09-22  Alan Modra  <amodra@bigpond.net.au>
397         * scripttempl/a29k.sc: Delete.
398         * scripttempl/ebmon29k.sc: Delete.
399         * scripttempl/m68klynx.sc: Delete.
400         * scripttempl/sa29200.sc: Delete.
401         * scripttempl/sparclynx.sc: Delete.
403 2009-09-21  Alan Modra  <amodra@bigpond.net.au>
405         * emultempl/ppc32elf.em (no_tls_get_addr_opt): New var.
406         (ppc_before_allocation): Pass to ppc_elf_tls_setup.
407         (OPTION_NO_TLS_GET_ADDR_OPT): Define.  Redefine other options in
408         terms of previous option.
409         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add
410         --no-tls-get-addr-optimize.
411         (PARSE_AND_LIST_ARGS_CASES): Handle it.
412         * emultempl/ppc64elf.em (no_tls_get_addr_opt): New var.
413         (ppc_before_allocation): Pass to ppc64_elf_tls_setup.
414         (OPTION_NO_TLS_GET_ADDR_OPT): Define.
415         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add
416         --no-tls-get-addr-optimize.
417         (PARSE_AND_LIST_ARGS_CASES): Handle it.
419 2009-09-18  Nick Clifton  <nickc@redhat.com>
421         * po/es.po: Updated Spanish translation.
423 2009-09-13  Alan Modra  <amodra@bigpond.net.au>
425         PR ld/6766
426         * lexsup.c (parse_args <-e>): Revert 2009-03-18 change.
427         * ldemul.c (after_parse_default): Add entry symbol as undef.
428         * emultempl/alphaelf.em (alpha_after_parse): Call after_parse_default.
429         * emultempl/cr16elf.em (cr16elf_after_parse): Likewise.
430         * emultempl/crxelf.em (crxelf_after_parse): Likewise.
431         * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
432         * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Likewise.
433         * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Call
434         after_parse_default and delete now duplicate code.
435         * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
436         * scripttempl/elf32cr16.sc: No need to make entry extern.
437         * scripttempl/elf32cr16c.sc: Likewise.
438         * scripttempl/elf32crx.sc: Likewise.
439         * scripttempl/elf32xc16xs.sc: Only provide ENTRY on final link.
441 2009-09-11  Nick Clifton  <nickc@redhat.com>
443         * po/ld.pot: Updated by the Translation project.
444         * po/fi.po: Updated Finnish translation.
446 2009-09-11  Martin Thuresson  <martint@google.com>
448         Updated sources to compile cleanly with -Wc++-compat:
449         * ld.h (enum endian_enum,enum symbolic_enum,enum
450         dynamic_list_enum): Move to top level.
451         * ldcref.c: Add casts.
452         * ldctor.c: Add casts.
453         * ldexp.c
454         * ldexp.h (enum node_tree_enum,enum phase_enum): Move to top level.
455         * ldlang.c: Add casts. (lang_insert_orphan): Use enum name instead
456         of integer.
457         * ldlang.h (enum statement_enum): Move to top level.
458         * ldmain.c: Add casts.
459         * ldwrite.c: Add casts.
460         * lexsup.c: Add casts. (enum control_enum): Move to top level.
461         * mri.c: Add casts. (mri_draw_tree): Use enum name instead of
462         integer.
464 2009-09-09  Alan Modra  <amodra@bigpond.net.au>
466         * scripttempl/aix.sc: Only provide ENTRY on final link.
467         * scripttempl/alpha.sc: Likewise.
468         * scripttempl/armcoff.sc: Likewise.
469         * scripttempl/crisaout.sc: Likewise.
470         * scripttempl/delta68.sc: Likewise.
471         * scripttempl/ebmon29k.sc: Likewise.
472         * scripttempl/elf32xc16x.sc: Likewise.
473         * scripttempl/elf32xc16xl.sc: Likewise.
474         * scripttempl/elfmicroblaze.sc: Likewise.
475         * scripttempl/epocpe.sc: Likewise.
476         * scripttempl/h8300.sc: Likewise.
477         * scripttempl/h8300h.sc: Likewise.
478         * scripttempl/h8300hn.sc: Likewise.
479         * scripttempl/h8300s.sc: Likewise.
480         * scripttempl/h8300sn.sc: Likewise.
481         * scripttempl/h8300sx.sc: Likewise.
482         * scripttempl/h8300sxn.sc: Likewise.
483         * scripttempl/hppaelf.sc: Likewise.
484         * scripttempl/i386beos.sc: Likewise.
485         * scripttempl/i386coff.sc: Likewise.
486         * scripttempl/i386go32.sc: Likewise.
487         * scripttempl/m68kaux.sc: Likewise.
488         * scripttempl/m68klynx.sc: Likewise.
489         * scripttempl/m88kbcs.sc: Likewise.
490         * scripttempl/maxqcoff.sc: Likewise.
491         * scripttempl/mcorepe.sc: Likewise.
492         * scripttempl/mips.sc: Likewise.
493         * scripttempl/ppcpe.sc: Likewise.
494         * scripttempl/sa29200.sc: Likewise.
495         * scripttempl/sparccoff.sc: Likewise.
496         * scripttempl/sparclynx.sc: Likewise.
497         * scripttempl/tic4xcoff.sc: Likewise.
498         * scripttempl/tic54xcoff.sc: Likewise.
499         * scripttempl/tic80coff.sc: Likewise.
500         * scripttempl/z8000.sc: Likewise.
502 2009-09-07  Tristan Gingold  <gingold@adacore.com>
504         * po/ld.pot: Regenerate.
506 2009-09-05  Martin Thuresson  <martin@mtme.org>
508         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols,
509         gld${EMULATION_NAME}_try_needed): Rename variable class to
510         link_class.
512 2009-09-04  Tristan Gingold  <gingold@adacore.com>
514         * NEWS: Add marker for 2.20.
516 2009-09-04  Alan Modra  <amodra@bigpond.net.au>
518         * scripttempl/elf.sc (.text): Add cold text sections.
520 2009-09-04  Jie Zhang  <jie.zhang@analog.com>
522         * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Add .l2.text
523         and .l2.data.
525 2009-09-03  Dave Korn  <dave.korn.cygwin@gmail.com>
527         * scripttempl/pe.sc (.text): Add "*(.text.*)" in order to catch
528         new GCC hot/cold/unlikely partitions.
529         * scripttempl/pep.sc: Likewise.
530         * scripttempl/epocpe.sc: Likewise.
531         * scripttempl/mcorepe.sc: Likewise.
532         * scripttempl/ppcpe.sc: Likewise.
534 2009-09-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
536         * Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
537         source file name for generated files which may be in $(srcdir).
538         * Makefile.in: Regenerate.
540 2009-09-01  H.J. Lu  <hongjiu.lu@intel.com>
542         * ldver.c (ldversion): Change to "Copyright 2009".
544 2009-09-01  Jie Zhang  <jie.zhang@analog.com>
546         * scripttempl/elf.sc: Add ${USER_LABEL_PREFIX} to _start, etext,
547         _stack and __bss_start.
548         * emulparams/bfin.sh (ENTRY): Remove.
550 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
552         PR ld/10569
553         * ldexp.c (fold_name <MAXPAGESIZE>): Return config.maxpagesize.
554         (fold_name <COMMONPAGESIZE>): Similarly.
555         * ldlang.c (output_target): Make global.
556         * ldlang.h (output_target): Declare.
557         * ldmain.c (main): Set config.maxpagesize from bfd_emul_get_maxpagesize.
558         Similarly for config.commonpagesize.
559         * ldemul.c (set_output_arch_default): Call bfd_emul_set_maxpagesize
560         and bfd_emul_set_commonpagesize.
561         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Don't call
562         bfd_emul_set_maxpagesize or bfd_emul_set_commonpagesize here.
564 2009-08-29  Martin Thuresson  <martin@mtme.org>
566         * ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop)
567         (exp_trinop, exp_unop, exp_nameop, exp_assop): Rename variable new
568         to new_e.
569         * ldfile.c (ldfile_add_library_path): Rename variable new to
570         new_dirs. (ldfile_add_arch): Rename variable new to new_arch.
571         * ldlang.c (new_statement, lang_final, lang_add_wild)
572         (lang_target, lang_add_fill, lang_add_data, lang_add_assignment)
573         (lang_add_insert): Rename variable new to new_stmt. (new_afile):
574         Added missing cast. (lang_memory_region_lookup): Rename variable
575         new to new_region. (init_os): Rename variable new to
576         new_userdata. (lang_add_section): Rename variable new to
577         new_section. (ldlang_add_undef): Rename variable new to
578         new_undef. (realsymbol): Rename variable new to new_name.
580 2009-08-26  Nick Clifton  <nickc@redhat.com>
582         PR ld/10555
583         * emultempl/elf32.em (_after_open): Do not create a
584         .note.gnu-build-id section if there are no input files.
586 2009-08-24  Nick Clifton  <nickc@redhat.com>
588         * scripttempl/elfxtensa.sc (DISCARDED): Discard sections with
589         .gnu.lto_ prefix.
590         * scripttempl/armbpabi.sc: Likewise.
591         * scripttempl/elf32sh-symbian.sc: Likewise.
592         * scripttempl/elf64hppa.sc: Likewise.
593         * scripttempl/mep.sc: Likewise.
595 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
597         * Makefile.am (ldmain.o, ldfile.o): Fix typos in non-fastdep
598         rules.
599         (eelf32_spu.o): Add dependency tracking.
600         * Makefile.in: Regenerate.
602         * Makefile.am (am__skiplex, am__skipyacc): New.
603         * Makefile.in: Regenerate.
605 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
607         * Makefile.am (bin_PROGRAMS): Renamed from ...
608         (noinst_PROGRAMS): ... this.
609         (transform): Override, including the renaming of ld-new to ld.
610         (install-exec-local): Installation of ld in $(bindir) not needed
611         here any more.
612         (AM_CPPFLAGS): Renamed from ...
613         (INCLUDES): ... this.
614         (MAINTAINERCLEANFILES): Add ld.1.
615         * Makefile.in: Regenerate.
617         * Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus.  Add
618         no-texinfo.tex, no-dist, foreign.
619         (TEXINFO_TEX): New variable.
620         (install-data-local): Removed, not needed any more.
621         (all): Dependencies upon info and ld.1 not needed any more.
622         (MKDEP, DEP, DEP1, dep.sed, dep, dep-in, dep-am): Removed.
623         (mkdep generated section): Removed.
624         (ldgram.o, ldlex.o, deffilep.o, ldmain.o, ldfile.o): Rewrite to
625         use automake dependency tracking mechanism.
626         (EXTRA_ld_new_SOURCES): Add pep-dll.c, pe-dll.c, and
627         $(ALL_EMULATIONS:.o=.c) $(ALL_64_EMULATIONS:.o=.c) so their
628         dependencies are tracked too.
629         (BUILT_SOURCES): New, list $(GENERATED_HFILES) to ensure they
630         are built early.
631         * configure.in: Use AM_MAINTAINER_MODE.
632         * aclocal.m4, configure, Makefile.in: Regenerate.
634         * Makefile.am (pdf__strip_dir, install-pdf, install-pdf-am)
635         (install-pdf-recursive, html__strip_dir, install-html)
636         (install-html-am, install-html-recursive): Remove.
637         * Makefile.in: Regenerate.
639         * Makefile.in: Regenerate.
640         * aclocal.m4: Likewise.
641         * config.in: Likewise.
642         * configure: Likewise.
644 2009-08-21  Richard Guenther  <rguenther@suse.de>
646         * scripttempl/elf.sc: Discard sections with .gnu.lto_ prefix.
648 2009-08-12  Tristan Gingold  <gingold@adacore.com>
650         * ld.h (fat_user_section_struct): Add map_symbol_def_count field.
651         * ldlang.c (hash_entry_addr_cmp): New function.
652         (print_all_symbols): Sort the symbols by address before printing them.
654 2009-08-10  Alan Modra  <amodra@bigpond.net.au>
656         PR 10474
657         * ldemul.c (after_allocation_default): Run lang_relax_sections.
658         * ldlang.h (lang_relax_sections): Declare.
659         * ldlang.c (relax_sections): Delete.
660         (lang_relax_sections): New function.
661         (lang_process): Don't relax directly from here.
662         * emultempl/alphaelf.em (alpha_finish): Call finish_default.
663         * emultempl/armelf.em (arm_elf_after_allocation): Delete.  Move body..
664         (gld${EMULATION_NAME}_finish): ..to here.  Move existing code..
665         (gld${EMULATION_NAME}_after_allocation): ..to here.  New function.
666         (LDEMUL_AFTER_ALLOCATION): Update.
667         * emultempl/avrelf.em (avr_elf_finish, LDEMUL_FINISH): Delete.
668         (avr_elf_after_allocation): New function.
669         (LDEMUL_AFTER_ALLOCATION): Define.
670         * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Call
671         lang_relax_sections.
672         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Delete.  Move..
673         (gld${EMULATION_NAME}_after_allocation): ..code to here.  New function.
674         (LDEMUL_AFTER_ALLOCATION, LDEMUL_FINISH): Update.
675         * emultempl/genelf.em (gld${EMULATION_NAME}_finish): Delete.  Move..
676         (gld${EMULATION_NAME}_after_allocation): ..code to here.  New function.
677         (LDEMUL_FINISH): Delete.
678         (LDEMUL_AFTER_ALLOCATION): Define.
679         * emultempl/hppaelf.em (gld${EMULATION_NAME}_finish): Delete.  Move..
680         (gld${EMULATION_NAME}_after_allocation): ..to here.  New function.
681         (LDEMUL_FINISH): Delete.
682         (LDEMUL_AFTER_ALLOCATION): Define.
683         * emultempl/m68hc1xelf.em (m68hc11elf_finish): Delete.  Move..
684         (m68hc11elf_after_allocation): ..to here.  New function.
685         (LDEMUL_FINISH): Delete.
686         (LDEMUL_AFTER_ALLOCATION): Define.
687         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
688         gld${EMULATION_NAME}_after_allocation.
689         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Call
690         gld${EMULATION_NAME}_after_allocation.
691         * emultempl/mmo.em (mmo_finish): Delete.  Move body..
692         (gld${EMULATION_NAME}_after_allocation): ..to here.  New function.
693         (LDEMUL_FINISH): Define.
694         * emultempl/ppc64elf.em (ppc_layout_sections_again): Set elf_gp.
695         (gld${EMULATION_NAME}_finish): Move code sizing sections..
696         (gld${EMULATION_NAME}_after_allocation): ..to here.
697         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
698         Call gld${EMULATION_NAME}_after_allocation.
699         * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Delete
700         bfd_elf_discard_info and map_segments call.
702 2009-08-06  Michael Eager <eager@eagercon.com>
704         * Makefile.am: Add eelf32mb_linux.o, eelf32microblaze.o to
705         ALL_EMULATIONS, targets.
706         * Makefile.in: Regenerate.
707         * configure.tgt: Add microblaze*-linux*, microblaze* targets.
708         * emulparams/elf32mb_linux.sh: New.
709         * emulparams/elf32microblaze.sh. New.
710         * scripttempl/elfmicroblaze.sc: New.
712 2009-08-05  Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
714         * emulparams/elf32_spu.sh (OTHER_READONLY_SECTIONS): Add .fixup
715         section and __fixup_start symbol.
716         * emultempl/spuelf.em (params): Initialize emit_fixups member.
717         (spu_before_allocation): Call spu_elf_size_sections.
718         (OPTION_SPU_EMIT_FIXUPS): Define.
719         (PARSE_AND_LIST_LONGOPTS): Add --emit-fixups.
720         (PARSE_AND_LIST_ARGS_CASES): Handle --emit-fixups.
721         * ld.texinfo (--emit-fixups): Document.
723 2009-08-04  Alan Modra  <amodra@bigpond.net.au>
725         PR 10474
726         * emultempl/ppc32elf.em (ppc_before_allocation): Test rawsize,
727         not size, after lang_reset_memory_regions.
729 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
731         * emulparams/elf32ppc.sh (PLT): Don't include ".iplt".
732         * emulparams/elf_i386.sh (IREL_IN_PLT): Define.
733         * emulparams/elf_x86_64.sh (IREL_IN_PLT): Define.
734         * scripttempl/elf.sc: Create separate .iplt and .rela.iplt sections
735         when !IREL_IN_PLT.
737 2009-07-29  Hans-Peter Nilsson  <hp@bitrange.com>
739         * scripttempl/mmo.sc: For relocateable links, set $OUTPUT_FORMAT to
740         the new $RELOCATEABLE_OUTPUT_FORMAT, if set.
741         (OUTPUT_FORMAT): Use the variable $OUTPUT_FORMAT.
742         (ENTRY): Don't emit for relocateable links.
743         (/DISCARD/): Don't discard .gnu.warning.* for relocateable links.
744         * emulparams/mmo.sh (RELOCATEABLE_OUTPUT_FORMAT): Set, to
745         elf64-mmix.
746         * emulparams/elf64mmix.sh (OTHER_TEXT_SECTIONS): Empty, don't
747         provide "Main" or set "_start.", for relocateable links.
749 2009-07-27  Nick Clifton  <nickc@redhat.com>
751         * (po/fi.po): Updated Finnish translation.
753 2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>
755         * configure.tgt (targ64_extra_emuls): Add elf_l1om if elf_x86_64
756         is supported.  Add elf_l1om_fbsd if elf_x86_64_fbsd is supported.
757         (targ_extra_emuls): Likewise.
759         * Makefile.am (ALL_64_EMULATIONS): Add eelf_l1om.o and
760         eelf_l1om_fbsd.o
761         (eelf_l1om.c): New.
762         (eelf_l1om_fbsd.c): Likewise.
763         * Makefile.in: Regenerated.
765         * emulparams/elf_l1om.sh: New.
766         * emulparams/elf_l1om_fbsd.sh: Likewise.
768 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
770         * NEWS: Mention the linker's support for symbols with a binding of
771         STB_GNU_UNIQUE.
773 2009-07-22  H.J. Lu  <hongjiu.lu@intel.com>
775         PR ld/10429
776         * ldlang.c (insert_os_after): Tie assignments to non-alloc
777         output sections if there is no-input section.
779 2009-07-11  Alan Modra  <amodra@bigpond.net.au>
781         * ldlang.c (insert_os_after): Don't tie assignments to non-alloc
782         output sections.
784 2009-07-10  Alan Modra  <amodra@bigpond.net.au>
786         * emultempl/ppc32elf.em (ppc_before_allocation): Turn on
787         linker relaxation if it might be necessary.
789 2009-07-10  Alan Modra  <amodra@bigpond.net.au>
791         * emulparams/elf32ppc.sh (GOTPLT, PLT): Handle .iplt.
793 2009-07-06  Matthias Klose <doko@ubuntu.com>
795         * ld.texinfo: Fix typo.
797 2009-07-03  Tristan Gingold  <gingold@adacore.com>
799         * scripttempl/pep.sc: Put .eh_frame in its own section.
800         * scripttempl/pe.sc: Ditto.
802 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
804         * scripttempl/pe.sc (.debug_pubtypes): Added section rule.
805         * scripttempl/pep.sc: Likewise.
807 2009-06-25  Tristan Gingold  <gingold@adacore.com>
809         * ldlang.c (print_input_section): Add is_discarded parameter.  Adjust
810         prototype.
811         (lang_map): Print the size of discarded sections.
812         (print_statement): Adjust call to print_input_section.
814 2009-06-18  Dave Korn  <dave.korn.cygwin@gmail.com>
816         Merge cegcc and mingw32ce target name changes from CeGCC project:
818         2008-09-24  Pedro Alves  <pedroalves@users.sourceforge.net>
820         * configure.tgt (arm*-*-cegcc*): Set LIB_PATH to
821         ${tooldir}/lib/w32api.
823         2007-12-25  Pedro Alves  <pedro_alves@portugalmail.pt>
825         * configure.tgt: Add arm*-*-cegcc* target.
827         2007-12-17  Pedro Alves  <pedro_alves@portugalmail.pt>
829         * configure.tgt: Add arm-*-mingw32ce* target.
831 2009-06-10  Philip Blundell  <philb@gnu.org>
833         * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Avoid crash
834         if section has no ELF data.
836 2009-06-06  H.J. Lu  <hongjiu.lu@intel.com>
838         * scripttempl/elf.sc: Add .rel.ifunc and .rela.ifunc.
840 2009-06-05  H.J. Lu  <hongjiu.lu@intel.com>
842         * scripttempl/elf.sc: Remove .rel.ifunc.dyn and .rela.ifunc.dyn.
844 2009-06-04  Alan Modra  <amodra@bigpond.net.au>
846         * dep-in.sed: Don't use \n in replacement part of s command.
847         * Makefile.am (DEP1): LC_ALL for uniq.
848         * Makefile.in: Regenerate.
850 2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>
852         * scripttempl/elf.sc (PLT): Add "*(.iplt)".
853         (GOT): Add "*(.igot.plt)a" and "*(.igot)".
854         (GOTPLT): Add "*(.igot)".
855         (__rel_iplt_start): New.
856         (__rel_iplt_end): Likewise.
857         (__rela_iplt_start): Likewise.
858         (__rela_iplt_end): Likewise.
860 2009-05-27  Dave Korn  <dave.korn.cygwin@gmail.com>
862         * deffilep.y (%union):  Add new string-type semantic value 'digits'.
863         (%token):  Remove NUMBER as token, add DIGITS.
864         (%type):  Add NUMBER as type.  Add new id types anylang_id, opt_id.
865         (ALIGNCOMM):  Parse an anylang_id instead of a plain ID.
866         (anylang_id):  New production.
867         (opt_digits):  Likewise.
868         (opt_id):  Likewise.
869         (NUMBER):  Likewise.
870         (def_lex):  Return strings of digits in raw string form as DIGITS
871         token, instead of converting to numeric integer type.
873 2009-05-26  Nathan Sidwell  <nathan@codesourcery.com>
875         * ldmain.c (main): Don't reject --relax -r.
876         * ld.texinfo (PowerPC ELF32): Document behaviour of relaxing
877         partial links.
879 2009-05-26  Nick Clifton  <nickc@redhat.com>
881         * po/id.po: Updated Indonesian translation.
882         * po/ld.pot: Updated template file.
884 2009-05-26  Alan Modra  <amodra@bigpond.net.au>
886         * dep-in.sed: Output one filename per line with all lines having
887         continuation backslash.  Prefix first line with "A", following
888         lines with "B".
889         * Makefile.am (DEP): Don't use dep.sed here.
890         (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
891         sort and uniq.
892         * Makefile.in: Regenerate.
894 2009-05-26  Alan Modra  <amodra@bigpond.net.au>
896         * ldlang.c (lang_check_section_addresses): Ignore non-alloc sections.
898 2009-05-22  Julian Brown  <julian@codesourcery.com>
900         * emultempl/armelf.em (fix_cortex_a8): New.
901         (arm_elf_before_allocation): Call bfd_elf32_arm_set_cortex_a8_fix.
902         (arm_elf_create_output_section_statements): Add fix_cortex_a8 to
903         bfd_elf32_arm_set_target_relocs.
904         (OPTION_FIX_CORTEX_A8, OPTION_NO_FIX_CORTEX_A8): New.
905         (PARSE_AND_LIST_LONGOPTS): Add [no-]fix-cortex-a8 options.
906         (PARSE_AND_LIST_OPTIONS): Add [no-]fix-cortex-a8 options.
907         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_[NO_]FIX_CORTEX_A8.
908         * ld.texinfo (--[no-]fix-cortex-a8): Briefly document new options.
910 2009-05-22  Nathan Sidwell  <nathan@codesourcery.com>
912         * ldlang.c (lang_check_section_addresses): Ignore non-loadable
913         sections when checking for overlap.  Clarify error message
914         concerns load address.
916 2009-05-22  Alan Modra  <amodra@bigpond.net.au>
918         * Makefile.am: Run "make dep-am".
919         * Makefile.in: Regenerate.
921 2009-05-19  Dave Korn  <dave.korn.cygwin@gmail.com>
923         * NEWS:  Mention new feature.
924         * deffile.h (def_file_aligncomm):  Add new struct definition.
925         (def_file):  Add new def_file_aligncomm member.
926         * deffilep.y (%token):  Add new ALIGNCOMM token.
927         (command):  Add production rule for ALIGNCOMM.
928         (def_file_free):  Free any chained def_file_aligncomm structs.
929         (diropts[]):  Add entry for '-aligncomm' .drectve command.
930         (def_aligncomm):  New grammar function.
931         * ld.texinfo:  Document new feature.
932         * pe-dll.c (process_def_file):  Rename from this ...
933         (process_def_file_and_drectve):  ... to this, updating all callers,
934         and process any aligncomms chained to the def file after scanning
935         all .drectve sections.
936         (generate_edata):  Updated to match.
937         (pe_dll_build_sections):  Likewise.
939 2009-05-17  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
941         * pe-dll.c (process_def_file): Do not create empty export table.
943 2009-05-15  Alan Modra  <amodra@bigpond.net.au>
945         * ldlang.c (lang_output_section_statement_lookup): Add function
946         comment.  Make "name" non-const.  Ensure duplicate entries use
947         the same string, allowing simple comparison in hash bucket loop.
948         Tweak constraint check.
949         (next_matching_output_section_statement): New function.
950         * ldlang.h (lang_output_section_statement_lookup): Update.
951         (next_matching_output_section_statement): Declare.
952         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
953         combine orphan sections when input sections flags differ in
954         alloc or load.
955         * emultempl/pe.em: Formatting throughout.
956         (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
957         * emultempl/pep.em: Formatting throughout.
958         (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
960 2009-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
962         * emultempl/spuelf.em (PARSE_AND_LIST_ARGS_CASES): Always use
963         compact stubs with software i-cache.
965 2009-05-14  Alan Modra  <amodra@bigpond.net.au>
967         * emultempl/spuelf.em (spu_before_allocation): Call
968         spu_elf_place_overlay_data.
970 2009-05-14  Alan Modra  <amodra@bigpond.net.au>
972         * ldlang.c (lang_insert_orphan): Add __start_<section> symbol
973         assignment inside output section statement.  Ensure only one
974         set of symbols per output section.
975         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-
976         dollar sections before dollar sections.  Correct add_child
977         list insertion.
978         * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
980 2009-05-05  Paul Brook  <paul@codesourcery.com>
982         * emultempl/armelf.em (compare_output_sec_vma): New function.
983         (gld${EMULATION_NAME}_finish): Add exidx munging code.
985 2009-05-05  Anatoly Sokolov  <aesok@post.ru>
987         * scripttempl/avr.sc (MEMORY): Use DATA_ORIGIN.
988         * emulparams/avr1.sh (DATA_ORIGIN): Add.
989         * emulparams/avr2.sh (DATA_ORIGIN): Add.
990         * emulparams/avr25.sh (DATA_ORIGIN): Add.
991         * emulparams/avr3.sh (DATA_ORIGIN): Add.
992         * emulparams/avr31.sh (DATA_ORIGIN): Add.
993         * emulparams/avr35.sh (DATA_ORIGIN): Add.
994         * emulparams/avr4.sh (DATA_ORIGIN): Add.
995         * emulparams/avr5.sh (DATA_ORIGIN): Add.
996         * emulparams/avr51.sh (DATA_ORIGIN): Add.
997         (DATA_LENGTH): Update.
998         * emulparams/avr6.sh (DATA_ORIGIN): Add.
999         (DATA_LENGTH): Update.
1001 2009-05-04  Dave Korn  <dave.korn.cygwin@gmail.com>
1003         * NEWS:  Mention new feature.
1004         * ld.texinfo (--version-script):  Document extent of PE support.
1005         (WIN32):  Mention --version-script.  Extend auto-export description.
1006         * pe-dll.c (process_def_file):  Use version script info to filter
1007         symbols from auto-export.
1008         * testsuite/ld-pe/vers-script-1.d:  New file.
1009         * testsuite/ld-pe/vers-script-2.d:  New file.
1010         * testsuite/ld-pe/vers-script-3.d:  New file.
1011         * testsuite/ld-pe/vers-script-4.d:  New file.
1012         * testsuite/ld-pe/vers-script-1.ver:  New file.
1013         * testsuite/ld-pe/vers-script-2.ver:  New file.
1014         * testsuite/ld-pe/vers-script-3.ver:  New file.
1015         * testsuite/ld-pe/vers-script-4.ver:  New file.
1016         * testsuite/ld-pe/vers-script-dll.c:  New file.
1017         * testsuite/ld-pe/vers-script.exp:  New test script.
1019 2009-05-01  Nathan Sidwell  <nathan@codesourcery.com>
1021         * emulparams/vxworks.sh (TEXT_START_ADDR): Override.
1023 2009-04-30  Nick Clifton  <nickc@redhat.com>
1025         * NEWS: Mention support for IFUNC symbols.
1027 2009-04-29  Anthony Green  <green@moxielogic.com>
1029         * emulparams/elf32moxie.sh (STACK_ADDR): Move default stack
1030         position out to accommodate larger programs.
1032 2009-04-29  Chris Demetriou  <cgd@google.com>
1034         * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC.
1035         (ld_options): Likewise.
1036         (parse_args): Likewise.
1037         * ld.texinfo: Document --no-export-dynamic.
1038         * NEWS: Mention --no-export-dynamic.
1040 2009-04-29  Alan Modra  <amodra@bigpond.net.au>
1042         * deffilep.y (STACKSIZE_K): Rename from STACKSIZE.
1044 2009-04-25  Alan Modra  <amodra@bigpond.net.au>
1046         PR 10061
1047         * genscripts.sh: Don't pass $EMULATION_NAME as $CUSTOMIZER_SCRIPT
1048         param.
1050 2009-04-21  Daniel Jacobowitz  <dan@codesourcery.com>
1052         * emultempl/armelf.em (bfd_for_interwork, arm_elf_after_open)
1053         (arm_elf_set_bfd_for_interworking): Delete.
1054         (arm_elf_before_allocation): Do not set the interworking BFD.
1055         Move allocation inside not-dynamic block.
1056         (arm_elf_create_output_section_statements): Create glue sections
1057         and set the interworking BFD here.
1058         (LDEMUL_AFTER_OPEN): Delete.
1060 2009-04-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
1062         * ldlang.c (lang_one_common): Use bfd_define_common_symbol.
1064 2009-04-15  Anthony Green  <green@moxielogic.com>
1066         * configure.tgt: Add moxie support.
1067         * Makefile.am: Add moxie files.
1068         * Makefile.in: Rebuilt.
1069         * emulparams/elf32moxie.sh: New file.
1070         * scripttempl/moxie.sc: New file.
1072 2009-04-15  Kazu Hirata  <kazu@codesourcery.com>
1074         * ldlang.c: Do not include limits.h.
1076 2009-04-14  Alan Modra  <amodra@bigpond.net.au>
1078         PR ld/10047
1079         * ldfile.c (find_scripts_dir): Use make_relative_prefix to find
1080         ldscripts in build tree.  Don't repeat search for ../lib/ldscripts.
1082 2009-04-13  H.J. Lu  <hongjiu.lu@intel.com>
1084         * ldfile.c (ldfile_find_command_file): Revert the last change.
1086 2009-04-11  H.J. Lu  <hongjiu.lu@intel.com>
1088         PR ld/10047
1089         * ldfile.c (ldfile_find_command_file): First try raw name.
1091 2009-04-09  Nick Clifton  <nickc@redhat.com>
1093         PR 9824
1094         * ld.texinfo (Output Section Constraint): New node.  Documents the
1095         ONLY_IF_RO and ONLY_IF_RW constraints.
1096         (Symbolic Constants): New node.  Documents the CONSTANT operator.
1098 2009-04-09  Thilo Fischer <thilo.fischer@uni-muenster.de>
1100         * emultempl/spuelf.em (embedded_spu_file): Use pex_one in place
1101         of fork/execvp.
1103 2009-04-08  H.J. Lu  <hongjiu.lu@intel.com>
1105         * lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM.
1106         (ld_options): Likewise.
1107         (parse_args): Likewise.
1109         * ld.texinfo: Document --warn-alternate-em.
1111         * NEWS: Mention --warn-alternate-em.
1113 2009-04-07  DJ Delorie  <dj@redhat.com>
1115         * emulparams/elf32mep.sh: Change default endian to little.
1117 2009-04-07  Nick Clifton  <nickc@redhat.com>
1119         * ld.texinfo (Output Section Address): Note that specifying an
1120         address for an output section will only change the location
1121         counter if the output section is used.
1123 2009-04-06  Kazu Hirata  <kazu@codesourcery.com>
1125         * ldfile.c (ldfile_find_command_file): Initialize result.
1127 2009-04-06  Kazu Hirata  <kazu@codesourcery.com>
1129         * ld.texinfo (-L): Mention that -L options do not affect how ld
1130         searches for a linker script unless -T option is specified.
1131         * ldfile.c (ldfile_find_command_file): Append the path obtained
1132         from the program name to the search path instead of
1133         prepending. Add a new parameter "default_only". Restrict the
1134         search to the default script location if the new parameter is
1135         true.
1136         (ldfile_open_command_file_1): New.
1137         (ldfile_open_command_file): Call ldfile_open_command_file_1.
1138         (ldfile_open_default_command_file): New.
1140 2009-04-03  Nathan Sidwell  <nathan@codesourcery.com>
1142         * ldlang.c (lang_leave_output_section_statement): Set lma_region
1143         if it is not overridden and section is for the same vma region as
1144         the previous section.
1146 2009-04-02  Dave Korn  <dave.korn.cygwin@gmail.com>
1148         PR ld/6744
1149         * ld.texinfo (--export-dynamic):  Mention --export-all-symbols.
1150         * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse):  Issue
1151         warning if --export-dynamic was passed on command-line.
1152         * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse):  Likewise.
1154 2009-04-01  Richard Sandiford  <r.sandiford@uk.ibm.com>
1156         * emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
1157         function.
1158         (ld_${EMULATION_NAME}_emulation): Use it.
1160 2009-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1162         PR ld/9970
1163         * ldlang.c (lang_end): Warn missing entry symbol for -pie.
1165 2009-03-19  Alan Modra  <amodra@bigpond.net.au>
1167         * emultempl/spuelf.em (spu_before_allocation): Report errors from
1168         spu_elf_find_overlays.
1170 2009-03-18  H.J. Lu  <hongjiu.lu@intel.com>
1172         PR ld/6766
1173         * lexsup.c (parse_args): Call ldlang_add_undef for -e.
1175 2009-03-18  Alan Modra  <amodra@bigpond.net.au>
1177         * ld.h: Remove alloca handling.
1179 2009-03-17  Alan Modra  <amodra@bigpond.net.au>
1181         * emultempl/spu_icache.S: Add new entry to dummy handler.
1182         * emultempl/spu_icache.o_c: Regenerate.
1183         * emultempl/spuelf.em (params): Init new field.
1184         (no_overlays): New static var.
1185         (spu_before_allocation): Use it.
1186         (OPTION_SPU_COMPACT_STUBS): Define.
1187         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs.
1188         (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs.  Adjust no-overlays
1189         handling.
1191 2009-03-17  Alan Modra  <amodra@bigpond.net.au>
1193         * configure.host (HOSTING_LIBS): Two dollars on shell variable
1194         expansion to suit make.
1196 2009-03-17  Alan Modra  <amodra@bigpond.net.au>
1198         * configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
1199         * Makefile.am (check-DEJAGNU): Set DO_COMPARE.
1200         * aclocal.m4: Regenerate.
1201         * configure: Regenerate.
1202         * Makefile.in: Regenerate.
1204 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
1206         * emultempl/aix.em (auto_export_flags): New variable.
1207         (explicit_auto_export_flags): Likewise.
1208         (OPTION_EXPALL, OPTION_EXPFULL): New enum values.
1209         (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
1210         (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
1211         -bnoexpall and -bnoexpfull.
1212         (gld${EMULATION_NAME}_handle_option): Handle them.
1213         (gld${EMULATION_NAME}_before_allocation): Update the call to
1214         bfd_size_dynamic_sections.
1216 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
1218         * emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
1219         -berok and -bernotok control link_info.unresolved_syms_in_objects
1220         and link_info.unresolved_syms_in_shared_libs instead of
1221         force_make_executable.
1223 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
1225         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
1226         config.dynamic_link to TRUE.
1228 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
1230         * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark
1231         .text, .data and .bss output sections as SEC_KEEP.
1233 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
1235         * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
1237 2009-03-14  Dave Korn  <dave.korn.cygwin@gmail.com>
1238             Danny Smith  <dannysmith@users.sourceforge.net>
1240         * emultmpl/pe.em (pe_dll_characteristics): New variable.
1241         (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
1242         OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
1243         OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
1244         New macros for options to set DllCharacteristics flag bits.
1245         (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
1246         nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
1247         (init): Add DllCharacteristics field.
1248         (gld_${EMULATION_NAME}_list_options): List new options.
1249         (gld${EMULATION_NAME}_handle_option): Handle new options.
1250         * emultmpl/pep.em (pe_dll_characteristics): New variable.
1251         (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
1252         OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
1253         OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
1254         New macros for options to set DllCharacteristics flags.
1255         (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
1256         nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
1257         (init): Add DllCharacteristics field.
1258         (gld_${EMULATION_NAME}_list_options): List new options.
1259         (gld${EMULATION_NAME}_handle_option): Handle new options.
1260         * ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
1261         no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
1263 2009-03-06  Nick Clifton  <nickc@redhat.com>
1265         * po/es.po: Updated Spanish translation.
1267 2009-03-03  Dave Korn  <dave.korn.cygwin@gmail.com>
1269         * emultempl/pe.em (debug_section_p):  New bfd_map_over_sections hook.
1270         (gld_${EMULATION_NAME}_after_open):  Use it to iterate all sections
1271         of all input BFDs, looking for debug info.  Enable long section names
1272         if any found.
1273         * emultempl/pe.em (debug_section_p):  Likewise.
1274         (gld_${EMULATION_NAME}_after_open):  Likewise.
1275         * NEWS:  Retrospectively adjust news announcement.
1276         * ld.texinfo:  Update documentation to mention new behaviour.
1278 2009-03-03  Alan Modra  <amodra@bigpond.net.au>
1280         * Makefile.am: Run "make dep-am".
1281         * Makefile.in: Regenerate.
1283 2009-03-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1285         * ldgram.y: Add support for REGION_ALIAS operator.
1286         * ldlang.c: Likewise.
1287         * ldlang.h: Likewise.
1288         * ldlex.l: Likewise.
1289         * NEWS: Mention the new feature.
1290         * ld.texinfo: Document the new feature.
1292 2009-03-02  Qinwei  <qinwei@sunnorth.com.cn>
1294         * Makefile.am: Replace score elf emulation with score3 and score7
1295         emulations.
1296         * Makefile.in: Regenerate,
1297         * NEWS: Mention support for Score7 architecture.
1298         * configure.tgt: Add score7 emulation to score-elf target.
1299         * emulparams/scoreelf.sh: Add score7 support.
1300         * emultempl/scoreelf.em: Likewise.
1302 2009-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1304         * configure.tgt: Only use elf64hppa target emulation for hpux.
1305         * emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
1306         (SCRIPT_NAME): Use new script elf64hppa.
1307         (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
1308         TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
1309         OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
1310         DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
1311         TEXT_DYNAMIC): Define.
1312         * emulparams/hppa64linux.sh: Adjust comments.
1313         * scripttempl/elf64hppa.sc: New file.
1315 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1317         * configure: Regenerate.
1319 2009-02-27  Dave Korn  <dave.korn.cygwin@gmail.com>
1321         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):  Set
1322         default state of auto-import flag based on $target.
1324 2009-02-24  Joseph Myers  <joseph@codesourcery.com>
1326         * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
1327         * emultempl/armelf.em (hook_in_stub): Insert after the input section.
1328         (elf32_arm_add_stub_section): Update comment.
1329         (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
1331 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
1333         * ld.texinfo (Options): Correct typos in example.  Recommend
1334         using joined forms of syntax for passing options with arguments
1335         from a driver.
1336         (-a): Use consistent syntax for documenting option arguments.
1337         Clean up indexing and markup.
1338         (-A/--architecture): Likewise.
1339         (-f/--auxiliary): Likewise.
1340         (-F/--filter): Likewise.
1341         (-fini): Likewise.
1342         (-G/--gpsize): Likewise.
1343         (-h/-soname):Likewise.
1344         (-init): Likewise.
1345         (-l/--library): Likewise.
1346         (-L/--library-path): Likewise.
1347         (-m): Likewise.
1348         (--defsym): Likewise.
1349         (-I/--dynamic-linker): Likewise.
1350         (-Map): Likewise.
1351         (--oformat): Likewise.
1352         (--retain-symbols-file): Likewise.
1353         (-rpath): Likewise.
1354         (-rpath-link): Likewise.
1355         (--sort-common): Likewise.
1356         (--sort-section): Likewise.
1357         (--split-by-file): Likewise.
1358         (--split-by-reloc): Likewise.
1359         (--sysroot): Likewise.
1360         (--section-start): Likewise.
1361         (-Tbss, -Tdata, -Ttext): Likewise.
1362         (-Ttext-segment): Likewise.
1363         (--version-script): Likewise.
1364         (--wrap): Likewise.
1366 2009-02-18  Dave Korn  <dave.korn.cygwin@gmail.com>
1368         * ld.texinfo:  Update to mention long section name options.
1369         * NEWS:  Mention new behaviour and command-line options.
1370         * pe-dll.c (pe_use_coff_long_section_names):  New global variable.
1371         (pe_output_file_set_long_section_names):  New function.
1372         (pe_dll_build_sections):  Call it on output BFDs.
1373         (pe_exe_build_sections):  Likewise.
1374         (pe_dll_fill_sections):  Likewise.
1375         (pe_exe_fill_sections):  Likewise.
1376         * pe-dll.h (pe_use_coff_long_section_names):  Declare extern.
1377         (pe_output_file_set_long_section_names):  Add prototype.
1378         * pep-dll.c (pe_use_coff_long_section_names):  Define pep_ alias.
1379         (pe_output_file_set_long_section_names):  Likewise.
1380         * pep-dll.h (pep_use_coff_long_section_names):  Declare extern.
1381         (pep_output_file_set_long_section_names):  Add prototype.
1382         * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES):  New getopt value macro.
1383         (OPTION_DISABLE_LONG_SECTION_NAMES):  Likewise.
1384         (gld${EMULATION_NAME}_add_options):  Add new options to xtra_long[].
1385         (gld_${EMULATION_NAME}_list_options):  Describe them.
1386         (gld${EMULATION_NAME}_handle_option):  Set or clear global
1387         pe_use_coff_long_section_names flag when options recognised.
1388         (gld_${EMULATION_NAME}_after_open):  En/disable long section names
1389         for main output bfd by calling pe_output_file_set_long_section_names.
1390         * pep.em (enum options):  Extend enum with new getopt option values.
1391         (gld${EMULATION_NAME}_add_options):  Add new options to xtra_long[].
1392         (gld_${EMULATION_NAME}_list_options):  Describe them.
1393         (gld${EMULATION_NAME}_handle_option):  Set or clear global
1394         pe_use_coff_long_section_names flag when options recognised.
1395         (gld_${EMULATION_NAME}_after_open):  En/disable long section names
1396         for main output bfd by calling pep_output_file_set_long_section_names.
1398 2009-02-16  Dave Korn  <dave.korn.cygwin@gmail.com>
1400         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):  Don't emit
1401         inadvertent .reloc sections caused by refactoring accident.
1403 2009-02-16  Alan Modra  <amodra@bigpond.net.au>
1405         * ldlang.c (process_insert_statements): ASSERT that output section
1406         statements are in order.
1408 2009-02-16  Alan Modra  <amodra@bigpond.net.au>
1410         * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
1411         (stat_save, stat_save_ptr): New variables.
1412         (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
1413         (load_symbols): Likewise.  Delete dead "bad_load" code.
1414         (open_input_bfds): Warn on script containing output sections.
1415         (lang_enter_output_section_statement): Use push_stat_ptr.
1416         (lang_enter_group): Likewise.
1417         (lang_leave_output_section_statement): Use pop_stat_ptr.
1418         (lang_leave_group): Likewise.
1419         * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
1420         * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
1421         * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
1422         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
1423         * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
1424         * emultempl/spuelf.em (spu_place_special_section): Likewise.
1425         * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
1427 2009-02-09  Nathan Sidwell  <nathan@codesourcery.com>
1429         Missing piece of 2009-01-26 commit
1430         * ldlang.c (lang_process): Don't consider relocatable flag when
1431         checking for overlap.
1433 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
1435         * emulparams/m68kelf.sh: Add newline at end of file.
1437 2009-02-04  Nick Clifton  <nickc@redhat.com>
1439         PR 9805
1440         * ld.texinfo (--allow-shlib-undefined): Correct description of
1441         default settings and tidy up the rest of the entry.
1443 2009-02-04  Alan Modra  <amodra@bigpond.net.au>
1445         * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
1446         during relocatable link.
1448 2009-02-03  Nick Clifton  <nickc@redhat.com>
1450         PR 9797
1451         * ld.texinfo (Constants): Document the base-encoding suffixes
1452         supported in linker scripts.
1454 2009-02-03  Alan Modra  <amodra@bigpond.net.au>
1456         * NEWS: Mention --as-needed change.
1458 2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>
1460         * configure.in: AC_SUBST pdfdir.
1461         * Makefile.am: Add install-pdf, install-pdf-am,
1462         and install-pdf-recursive targets. Define pdf__strip_dir.
1463         * po/Make-in: Add install-pdf target.
1464         * configure: Regenerate.
1465         * Makefile.in: Regenerate.
1467 2009-01-31  Alan Modra  <amodra@bigpond.net.au>
1469         * ld.texinfo (--as-needed): Update.
1471 2009-01-29  Andrew Jenner  <andrew@codesourcery.com>
1473         * emultempl/armelf.em: Correct formatting of help text for
1474         --no-enum-size-warning option.
1476 2009-01-26  Nathan Sidwell  <nathan@codesourcery.com>
1478         * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
1479         * ld.h (args_type): Make check_section_addresses a char.
1480         * ldmain.c (main): Default check_section_addresses to -1. Check it
1481         for relocatable links.
1482         * ld.texinfo (--check-sections): Update documentation.
1484 2009-01-26  Kai Tietz  <kai.tietz@onevision.com>
1486         * pe-dll.c (tmp_seq2): New static variable.
1487         (make_singleton_name_imp): New.
1488         (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
1489         avoid duplicate import table generation for same symbol.
1490         (pe_create_runtime_relocator_reference): Make reference for
1491         64-bit 8 bytes.
1493 2009-01-21  Alan Modra  <amodra@bigpond.net.au>
1495         * emultempl/spuelf.em (params): Init new field.
1496         (OPTION_SPU_NON_IA_TEXT): Define.
1497         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
1498         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
1500 2009-01-16  H.J. Lu  <hongjiu.lu@intel.com>
1502         * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
1503         (ld_options): Add -Ttext-segment.
1504         (parse_args): Handle OPTION_TTEXT_SEGMENT.
1506         * ld.texinfo: Document -Ttext-segment.
1508         * NEWS: Mention -Ttext-segment.
1510         * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
1511         (SHLIB_TEXT_START_ADDR): Likewise.
1513 2009-01-13  Alan Modra  <amodra@bigpond.net.au>
1515         * emultempl/spu_icache.o_c: Regenerate.
1517 2009-01-12  Alan Modra  <amodra@bigpond.net.au>
1519         * emultempl/spuelf.em (params): Init new fields.
1520         (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
1521         (spu_place_special_section): Adjust placement for soft-icache.  Pad
1522         soft-icache section to a fixed size.  Clear addr_tree.
1523         (spu_elf_load_ovl_mgr): Support soft-icache.  Map overlay manager
1524         sections a little more intelligently.
1525         (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
1526         (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
1527         (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
1528         (OPTION_SPU_LRLIVE): Define.
1529         (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
1530         (PARSE_AND_LIST_OPTIONS): Likewise.
1531         (PARSE_AND_LIST_ARGS_CASES): Handle them.
1532         * emultempl/spu_icache.S: Dummy file.
1533         * emultempl/spu_icache.o_c: Regenerate.
1534         * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
1535         (spu_icache.o_c): Add rule to build.
1536         (CLEANFILES): Zap temp files.
1537         (EXTRA_DIST): Add spu_icache.o_c.
1538         * Makefile.in: Regenerate.
1540 2009-01-08  Kai Tietz  <kai.tietz@onevision.com>
1542         * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
1543         (gld..._add_options): Add new option
1544         --use-nul-prefixed-import-tables.
1545         (gld..._handle_option): Likewise.
1546         * pep.em: Same as for pe.em.
1547         * ld.texinfo: Add new option documentation for
1548         --use-nul-prefixed-import-tables.
1549         * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
1550         (make_head): Make prefix leading zero prefix element for
1551         idata$4 and idata$5 dependent to new flag.
1552         (make_import_fixup_entry): Remove idata4/5 prefix.
1553         * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
1554         * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
1555         * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
1556         * NEWS: Add new option.
1558 2009-01-05  Kai Tietz  <kai.tietz@onevision.com>
1560         * emultempl/pe.em: Prefix dollar characters to be outputed in
1561         generated C file.
1562         * emultempl/pep.em: Likewise.
1564 2009-01-03  Dave Korn  <dave.korn.cygwin@gmail.com>
1566         * NEWS:  Mention new feature --exclude-modules-for-implib.
1567         * ld.texinfo:  Document new --exclude-modules-for-implib option.
1568         * pe-dll.c (exclude_list_struct):  Change type member from int to
1569         new enumeration exclude_type.
1570         (pe_dll_add_excludes):  Accept exclude_type instead of int param.
1571         (auto_export):  Replace magic constants by exclude_type values and
1572         handle new choice EXCLUDEFORIMPLIB.
1573         (pe_dll_generate_implib):  Accept a pointer to the link_info and
1574         iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
1575         fresh BFDs for any found and link into import lib archive chain.
1576         * pe-dll.h (exclude_type):  Add new enumerated type to replace magic
1577         constants previously used for exclude_list_struct type member.
1578         (pe_dll_add_excludes, pe_dll_generate_implib):  Update prototypes.
1579         * pep-dll.h (exclude_type, pe_dll_add_excludes,
1580         pe_dll_generate_implib):  Likewise to all the above.
1581         * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB):  Define new
1582         getopts long option code for new --exclude-modules-for-implib option.
1583         (gld${EMULATION_NAME}_add_options):  Add new entry to xtra_long[].
1584         (gld_${EMULATION_NAME}_list_options):  List usage for it.
1585         (gld${EMULATION_NAME}_handle_option):  Use exclude_type enumerated
1586         values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
1587         (gld_${EMULATION_NAME}_finish):  Pass pointer to link_info when
1588         calling pe_dll_generate_implib.
1589         * emultempl/pep.em (options):  Define new enumerated value for getopts
1590         long option code for new --exclude-modules-for-implib option.
1591         (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
1592         gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
1593         Again, likewise to all the above.
1595 2009-01-03  Dave Korn  <dave.korn.cygwin@gmail.com>
1597         * pe-dll.c (autofilter_liblist):  Add entry for shared libgcc.
1598         (libnamencmp):  New function.
1599         (auto_export):  Use it in place of strncmp when filtering libraries.
1601 For older changes see ChangeLog-2008
1603 Local Variables:
1604 mode: change-log
1605 left-margin: 8
1606 fill-column: 74
1607 version-control: never
1608 End: