OSDN Git Service

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