OSDN Git Service

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