OSDN Git Service

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