PR ld/10569
[external/binutils.git] / ld / ChangeLog
1 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
2
3         PR ld/10569
4         * ldexp.c (fold_name <MAXPAGESIZE>): Return config.maxpagesize.
5         (fold_name <COMMONPAGESIZE>): Similarly.
6         * ldlang.c (output_target): Make global.
7         * ldlang.h (output_target): Declare.
8         * ldmain.c (main): Set config.maxpagesize from bfd_emul_get_maxpagesize.
9         Similarly for config.commonpagesize.
10         * ldemul.c (set_output_arch_default): Call bfd_emul_set_maxpagesize
11         and bfd_emul_set_commonpagesize.
12         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Don't call
13         bfd_emul_set_maxpagesize or bfd_emul_set_commonpagesize here.
14
15 2009-08-29  Martin Thuresson  <martin@mtme.org>
16
17         * ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop)
18         (exp_trinop, exp_unop, exp_nameop, exp_assop): Rename variable new
19         to new_e.
20         * ldfile.c (ldfile_add_library_path): Rename variable new to
21         new_dirs. (ldfile_add_arch): Rename variable new to new_arch.
22         * ldlang.c (new_statement, lang_final, lang_add_wild)
23         (lang_target, lang_add_fill, lang_add_data, lang_add_assignment)
24         (lang_add_insert): Rename variable new to new_stmt. (new_afile):
25         Added missing cast. (lang_memory_region_lookup): Rename variable
26         new to new_region. (init_os): Rename variable new to
27         new_userdata. (lang_add_section): Rename variable new to
28         new_section. (ldlang_add_undef): Rename variable new to
29         new_undef. (realsymbol): Rename variable new to new_name.
30
31 2009-08-26  Nick Clifton  <nickc@redhat.com>
32
33         PR ld/10555
34         * emultempl/elf32.em (_after_open): Do not create a
35         .note.gnu-build-id section if there are no input files.
36
37 2009-08-24  Nick Clifton  <nickc@redhat.com>
38
39         * scripttempl/elfxtensa.sc (DISCARDED): Discard sections with
40         .gnu.lto_ prefix.
41         * scripttempl/armbpabi.sc: Likewise.
42         * scripttempl/elf32sh-symbian.sc: Likewise.
43         * scripttempl/elf64hppa.sc: Likewise.
44         * scripttempl/mep.sc: Likewise.
45
46 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47
48         * Makefile.am (ldmain.o, ldfile.o): Fix typos in non-fastdep
49         rules.
50         (eelf32_spu.o): Add dependency tracking.
51         * Makefile.in: Regenerate.
52
53         * Makefile.am (am__skiplex, am__skipyacc): New.
54         * Makefile.in: Regenerate.
55
56 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57
58         * Makefile.am (bin_PROGRAMS): Renamed from ...
59         (noinst_PROGRAMS): ... this.
60         (transform): Override, including the renaming of ld-new to ld.
61         (install-exec-local): Installation of ld in $(bindir) not needed
62         here any more.
63         (AM_CPPFLAGS): Renamed from ...
64         (INCLUDES): ... this.
65         (MAINTAINERCLEANFILES): Add ld.1.
66         * Makefile.in: Regenerate.
67
68         * Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus.  Add
69         no-texinfo.tex, no-dist, foreign.
70         (TEXINFO_TEX): New variable.
71         (install-data-local): Removed, not needed any more.
72         (all): Dependencies upon info and ld.1 not needed any more.
73         (MKDEP, DEP, DEP1, dep.sed, dep, dep-in, dep-am): Removed.
74         (mkdep generated section): Removed.
75         (ldgram.o, ldlex.o, deffilep.o, ldmain.o, ldfile.o): Rewrite to
76         use automake dependency tracking mechanism.
77         (EXTRA_ld_new_SOURCES): Add pep-dll.c, pe-dll.c, and
78         $(ALL_EMULATIONS:.o=.c) $(ALL_64_EMULATIONS:.o=.c) so their
79         dependencies are tracked too.
80         (BUILT_SOURCES): New, list $(GENERATED_HFILES) to ensure they
81         are built early.
82         * configure.in: Use AM_MAINTAINER_MODE.
83         * aclocal.m4, configure, Makefile.in: Regenerate.
84
85         * Makefile.am (pdf__strip_dir, install-pdf, install-pdf-am)
86         (install-pdf-recursive, html__strip_dir, install-html)
87         (install-html-am, install-html-recursive): Remove.
88         * Makefile.in: Regenerate.
89
90         * Makefile.in: Regenerate.
91         * aclocal.m4: Likewise.
92         * config.in: Likewise.
93         * configure: Likewise.
94
95 2009-08-21  Richard Guenther  <rguenther@suse.de>
96
97         * scripttempl/elf.sc: Discard sections with .gnu.lto_ prefix.
98
99 2009-08-12  Tristan Gingold  <gingold@adacore.com>
100
101         * ld.h (fat_user_section_struct): Add map_symbol_def_count field.
102         * ldlang.c (hash_entry_addr_cmp): New function.
103         (print_all_symbols): Sort the symbols by address before printing them.
104
105 2009-08-10  Alan Modra  <amodra@bigpond.net.au>
106
107         PR 10474
108         * ldemul.c (after_allocation_default): Run lang_relax_sections.
109         * ldlang.h (lang_relax_sections): Declare.
110         * ldlang.c (relax_sections): Delete.
111         (lang_relax_sections): New function.
112         (lang_process): Don't relax directly from here.
113         * emultempl/alphaelf.em (alpha_finish): Call finish_default.
114         * emultempl/armelf.em (arm_elf_after_allocation): Delete.  Move body..
115         (gld${EMULATION_NAME}_finish): ..to here.  Move existing code..
116         (gld${EMULATION_NAME}_after_allocation): ..to here.  New function.
117         (LDEMUL_AFTER_ALLOCATION): Update.
118         * emultempl/avrelf.em (avr_elf_finish, LDEMUL_FINISH): Delete.
119         (avr_elf_after_allocation): New function.
120         (LDEMUL_AFTER_ALLOCATION): Define.
121         * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Call
122         lang_relax_sections.
123         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Delete.  Move..
124         (gld${EMULATION_NAME}_after_allocation): ..code to here.  New function.
125         (LDEMUL_AFTER_ALLOCATION, LDEMUL_FINISH): Update.
126         * emultempl/genelf.em (gld${EMULATION_NAME}_finish): Delete.  Move..
127         (gld${EMULATION_NAME}_after_allocation): ..code to here.  New function.
128         (LDEMUL_FINISH): Delete.
129         (LDEMUL_AFTER_ALLOCATION): Define.
130         * emultempl/hppaelf.em (gld${EMULATION_NAME}_finish): Delete.  Move..
131         (gld${EMULATION_NAME}_after_allocation): ..to here.  New function.
132         (LDEMUL_FINISH): Delete.
133         (LDEMUL_AFTER_ALLOCATION): Define.
134         * emultempl/m68hc1xelf.em (m68hc11elf_finish): Delete.  Move..
135         (m68hc11elf_after_allocation): ..to here.  New function.
136         (LDEMUL_FINISH): Delete.
137         (LDEMUL_AFTER_ALLOCATION): Define.
138         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
139         gld${EMULATION_NAME}_after_allocation.
140         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Call
141         gld${EMULATION_NAME}_after_allocation.
142         * emultempl/mmo.em (mmo_finish): Delete.  Move body..
143         (gld${EMULATION_NAME}_after_allocation): ..to here.  New function.
144         (LDEMUL_FINISH): Define.
145         * emultempl/ppc64elf.em (ppc_layout_sections_again): Set elf_gp.
146         (gld${EMULATION_NAME}_finish): Move code sizing sections..
147         (gld${EMULATION_NAME}_after_allocation): ..to here.
148         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
149         Call gld${EMULATION_NAME}_after_allocation.
150         * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Delete
151         bfd_elf_discard_info and map_segments call.
152
153 2009-08-06  Michael Eager <eager@eagercon.com>
154
155         * Makefile.am: Add eelf32mb_linux.o, eelf32microblaze.o to 
156         ALL_EMULATIONS, targets.
157         * Makefile.in: Regenerate.
158         * configure.tgt: Add microblaze*-linux*, microblaze* targets.
159         * emulparams/elf32mb_linux.sh: New.
160         * emulparams/elf32microblaze.sh. New.
161         * scripttempl/elfmicroblaze.sc: New. 
162
163 2009-08-05  Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
164
165         * emulparams/elf32_spu.sh (OTHER_READONLY_SECTIONS): Add .fixup
166         section and __fixup_start symbol.
167         * emultempl/spuelf.em (params): Initialize emit_fixups member.
168         (spu_before_allocation): Call spu_elf_size_sections.
169         (OPTION_SPU_EMIT_FIXUPS): Define.
170         (PARSE_AND_LIST_LONGOPTS): Add --emit-fixups.
171         (PARSE_AND_LIST_ARGS_CASES): Handle --emit-fixups.
172         * ld.texinfo (--emit-fixups): Document.
173
174 2009-08-04  Alan Modra  <amodra@bigpond.net.au>
175
176         PR 10474
177         * emultempl/ppc32elf.em (ppc_before_allocation): Test rawsize,
178         not size, after lang_reset_memory_regions.
179
180 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
181
182         * emulparams/elf32ppc.sh (PLT): Don't include ".iplt".
183         * emulparams/elf_i386.sh (IREL_IN_PLT): Define.
184         * emulparams/elf_x86_64.sh (IREL_IN_PLT): Define.
185         * scripttempl/elf.sc: Create separate .iplt and .rela.iplt sections
186         when !IREL_IN_PLT.
187
188 2009-07-29  Hans-Peter Nilsson  <hp@bitrange.com>
189
190         * scripttempl/mmo.sc: For relocateable links, set $OUTPUT_FORMAT to
191         the new $RELOCATEABLE_OUTPUT_FORMAT, if set.
192         (OUTPUT_FORMAT): Use the variable $OUTPUT_FORMAT.
193         (ENTRY): Don't emit for relocateable links.
194         (/DISCARD/): Don't discard .gnu.warning.* for relocateable links.
195         * emulparams/mmo.sh (RELOCATEABLE_OUTPUT_FORMAT): Set, to
196         elf64-mmix.
197         * emulparams/elf64mmix.sh (OTHER_TEXT_SECTIONS): Empty, don't
198         provide "Main" or set "_start.", for relocateable links.
199
200 2009-07-27  Nick Clifton  <nickc@redhat.com>
201
202         * (po/fi.po): Updated Finnish translation.
203
204 2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>
205
206         * configure.tgt (targ64_extra_emuls): Add elf_l1om if elf_x86_64
207         is supported.  Add elf_l1om_fbsd if elf_x86_64_fbsd is supported.
208         (targ_extra_emuls): Likewise.
209
210         * Makefile.am (ALL_64_EMULATIONS): Add eelf_l1om.o and
211         eelf_l1om_fbsd.o
212         (eelf_l1om.c): New.
213         (eelf_l1om_fbsd.c): Likewise.
214         * Makefile.in: Regenerated.
215
216         * emulparams/elf_l1om.sh: New.
217         * emulparams/elf_l1om_fbsd.sh: Likewise.
218
219 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
220
221         * NEWS: Mention the linker's support for symbols with a binding of
222         STB_GNU_UNIQUE.
223
224 2009-07-22  H.J. Lu  <hongjiu.lu@intel.com>
225
226         PR ld/10429
227         * ldlang.c (insert_os_after): Tie assignments to non-alloc
228         output sections if there is no-input section.
229
230 2009-07-11  Alan Modra  <amodra@bigpond.net.au>
231
232         * ldlang.c (insert_os_after): Don't tie assignments to non-alloc
233         output sections.
234
235 2009-07-10  Alan Modra  <amodra@bigpond.net.au>
236
237         * emultempl/ppc32elf.em (ppc_before_allocation): Turn on
238         linker relaxation if it might be necessary.
239
240 2009-07-10  Alan Modra  <amodra@bigpond.net.au>
241
242         * emulparams/elf32ppc.sh (GOTPLT, PLT): Handle .iplt.
243
244 2009-07-06  Matthias Klose <doko@ubuntu.com>
245
246         * ld.texinfo: Fix typo.
247
248 2009-07-03  Tristan Gingold  <gingold@adacore.com>
249
250         * scripttempl/pep.sc: Put .eh_frame in its own section.
251         * scripttempl/pe.sc: Ditto.
252         
253 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
254
255         * scripttempl/pe.sc (.debug_pubtypes): Added section rule.
256         * scripttempl/pep.sc: Likewise.
257
258 2009-06-25  Tristan Gingold  <gingold@adacore.com>
259
260         * ldlang.c (print_input_section): Add is_discarded parameter.  Adjust
261         prototype.
262         (lang_map): Print the size of discarded sections.
263         (print_statement): Adjust call to print_input_section.
264
265 2009-06-18  Dave Korn  <dave.korn.cygwin@gmail.com>
266
267         Merge cegcc and mingw32ce target name changes from CeGCC project:
268
269         2008-09-24  Pedro Alves  <pedroalves@users.sourceforge.net>
270
271         * configure.tgt (arm*-*-cegcc*): Set LIB_PATH to
272         ${tooldir}/lib/w32api.
273
274         2007-12-25  Pedro Alves  <pedro_alves@portugalmail.pt>
275
276         * configure.tgt: Add arm*-*-cegcc* target.
277
278         2007-12-17  Pedro Alves  <pedro_alves@portugalmail.pt>
279
280         * configure.tgt: Add arm-*-mingw32ce* target.
281
282 2009-06-10  Philip Blundell  <philb@gnu.org>
283
284         * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Avoid crash
285         if section has no ELF data.
286
287 2009-06-06  H.J. Lu  <hongjiu.lu@intel.com>
288
289         * scripttempl/elf.sc: Add .rel.ifunc and .rela.ifunc.
290
291 2009-06-05  H.J. Lu  <hongjiu.lu@intel.com>
292
293         * scripttempl/elf.sc: Remove .rel.ifunc.dyn and .rela.ifunc.dyn.
294
295 2009-06-04  Alan Modra  <amodra@bigpond.net.au>
296
297         * dep-in.sed: Don't use \n in replacement part of s command.
298         * Makefile.am (DEP1): LC_ALL for uniq.
299         * Makefile.in: Regenerate.
300
301 2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>
302
303         * scripttempl/elf.sc (PLT): Add "*(.iplt)".
304         (GOT): Add "*(.igot.plt)a" and "*(.igot)".
305         (GOTPLT): Add "*(.igot)".
306         (__rel_iplt_start): New.
307         (__rel_iplt_end): Likewise.
308         (__rela_iplt_start): Likewise.
309         (__rela_iplt_end): Likewise.
310
311 2009-05-27  Dave Korn  <dave.korn.cygwin@gmail.com>
312
313         * deffilep.y (%union):  Add new string-type semantic value 'digits'.
314         (%token):  Remove NUMBER as token, add DIGITS.
315         (%type):  Add NUMBER as type.  Add new id types anylang_id, opt_id.
316         (ALIGNCOMM):  Parse an anylang_id instead of a plain ID.
317         (anylang_id):  New production.
318         (opt_digits):  Likewise.
319         (opt_id):  Likewise.
320         (NUMBER):  Likewise.
321         (def_lex):  Return strings of digits in raw string form as DIGITS
322         token, instead of converting to numeric integer type.
323
324 2009-05-26  Nathan Sidwell  <nathan@codesourcery.com>
325
326         * ldmain.c (main): Don't reject --relax -r.
327         * ld.texinfo (PowerPC ELF32): Document behaviour of relaxing
328         partial links.
329
330 2009-05-26  Nick Clifton  <nickc@redhat.com>
331
332         * po/id.po: Updated Indonesian translation.
333         * po/ld.pot: Updated template file.
334
335 2009-05-26  Alan Modra  <amodra@bigpond.net.au>
336
337         * dep-in.sed: Output one filename per line with all lines having
338         continuation backslash.  Prefix first line with "A", following
339         lines with "B".
340         * Makefile.am (DEP): Don't use dep.sed here.
341         (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
342         sort and uniq.
343         * Makefile.in: Regenerate.
344
345 2009-05-26  Alan Modra  <amodra@bigpond.net.au>
346
347         * ldlang.c (lang_check_section_addresses): Ignore non-alloc sections.
348
349 2009-05-22  Julian Brown  <julian@codesourcery.com>
350
351         * emultempl/armelf.em (fix_cortex_a8): New.
352         (arm_elf_before_allocation): Call bfd_elf32_arm_set_cortex_a8_fix.
353         (arm_elf_create_output_section_statements): Add fix_cortex_a8 to
354         bfd_elf32_arm_set_target_relocs.
355         (OPTION_FIX_CORTEX_A8, OPTION_NO_FIX_CORTEX_A8): New.
356         (PARSE_AND_LIST_LONGOPTS): Add [no-]fix-cortex-a8 options.
357         (PARSE_AND_LIST_OPTIONS): Add [no-]fix-cortex-a8 options.
358         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_[NO_]FIX_CORTEX_A8.
359         * ld.texinfo (--[no-]fix-cortex-a8): Briefly document new options.
360
361 2009-05-22  Nathan Sidwell  <nathan@codesourcery.com>
362
363         * ldlang.c (lang_check_section_addresses): Ignore non-loadable
364         sections when checking for overlap.  Clarify error message
365         concerns load address.
366
367 2009-05-22  Alan Modra  <amodra@bigpond.net.au>
368
369         * Makefile.am: Run "make dep-am".
370         * Makefile.in: Regenerate.
371
372 2009-05-19  Dave Korn  <dave.korn.cygwin@gmail.com>
373
374         * NEWS:  Mention new feature.
375         * deffile.h (def_file_aligncomm):  Add new struct definition.
376         (def_file):  Add new def_file_aligncomm member.
377         * deffilep.y (%token):  Add new ALIGNCOMM token.
378         (command):  Add production rule for ALIGNCOMM.
379         (def_file_free):  Free any chained def_file_aligncomm structs.
380         (diropts[]):  Add entry for '-aligncomm' .drectve command.
381         (def_aligncomm):  New grammar function.
382         * ld.texinfo:  Document new feature.
383         * pe-dll.c (process_def_file):  Rename from this ...
384         (process_def_file_and_drectve):  ... to this, updating all callers,
385         and process any aligncomms chained to the def file after scanning
386         all .drectve sections.
387         (generate_edata):  Updated to match.
388         (pe_dll_build_sections):  Likewise.
389
390 2009-05-17  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
391
392         * pe-dll.c (process_def_file): Do not create empty export table.
393
394 2009-05-15  Alan Modra  <amodra@bigpond.net.au>
395
396         * ldlang.c (lang_output_section_statement_lookup): Add function
397         comment.  Make "name" non-const.  Ensure duplicate entries use
398         the same string, allowing simple comparison in hash bucket loop.
399         Tweak constraint check.
400         (next_matching_output_section_statement): New function.
401         * ldlang.h (lang_output_section_statement_lookup): Update.
402         (next_matching_output_section_statement): Declare.
403         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
404         combine orphan sections when input sections flags differ in
405         alloc or load.
406         * emultempl/pe.em: Formatting throughout.
407         (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
408         * emultempl/pep.em: Formatting throughout.
409         (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
410
411 2009-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
412
413         * emultempl/spuelf.em (PARSE_AND_LIST_ARGS_CASES): Always use
414         compact stubs with software i-cache.
415
416 2009-05-14  Alan Modra  <amodra@bigpond.net.au>
417
418         * emultempl/spuelf.em (spu_before_allocation): Call
419         spu_elf_place_overlay_data.
420
421 2009-05-14  Alan Modra  <amodra@bigpond.net.au>
422
423         * ldlang.c (lang_insert_orphan): Add __start_<section> symbol
424         assignment inside output section statement.  Ensure only one
425         set of symbols per output section.
426         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-
427         dollar sections before dollar sections.  Correct add_child
428         list insertion.
429         * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
430
431 2009-05-05  Paul Brook  <paul@codesourcery.com>
432
433         * emultempl/armelf.em (compare_output_sec_vma): New function.
434         (gld${EMULATION_NAME}_finish): Add exidx munging code.
435
436 2009-05-05  Anatoly Sokolov  <aesok@post.ru>
437
438         * scripttempl/avr.sc (MEMORY): Use DATA_ORIGIN.
439         * emulparams/avr1.sh (DATA_ORIGIN): Add.
440         * emulparams/avr2.sh (DATA_ORIGIN): Add.
441         * emulparams/avr25.sh (DATA_ORIGIN): Add.
442         * emulparams/avr3.sh (DATA_ORIGIN): Add.
443         * emulparams/avr31.sh (DATA_ORIGIN): Add.
444         * emulparams/avr35.sh (DATA_ORIGIN): Add.
445         * emulparams/avr4.sh (DATA_ORIGIN): Add.
446         * emulparams/avr5.sh (DATA_ORIGIN): Add.
447         * emulparams/avr51.sh (DATA_ORIGIN): Add.
448         (DATA_LENGTH): Update.
449         * emulparams/avr6.sh (DATA_ORIGIN): Add.
450         (DATA_LENGTH): Update.
451
452 2009-05-04  Dave Korn  <dave.korn.cygwin@gmail.com>
453
454         * NEWS:  Mention new feature.
455         * ld.texinfo (--version-script):  Document extent of PE support.
456         (WIN32):  Mention --version-script.  Extend auto-export description.
457         * pe-dll.c (process_def_file):  Use version script info to filter
458         symbols from auto-export.
459         * testsuite/ld-pe/vers-script-1.d:  New file.
460         * testsuite/ld-pe/vers-script-2.d:  New file.
461         * testsuite/ld-pe/vers-script-3.d:  New file.
462         * testsuite/ld-pe/vers-script-4.d:  New file.
463         * testsuite/ld-pe/vers-script-1.ver:  New file.
464         * testsuite/ld-pe/vers-script-2.ver:  New file.
465         * testsuite/ld-pe/vers-script-3.ver:  New file.
466         * testsuite/ld-pe/vers-script-4.ver:  New file.
467         * testsuite/ld-pe/vers-script-dll.c:  New file.
468         * testsuite/ld-pe/vers-script.exp:  New test script.
469
470 2009-05-01  Nathan Sidwell  <nathan@codesourcery.com>
471
472         * emulparams/vxworks.sh (TEXT_START_ADDR): Override.
473
474 2009-04-30  Nick Clifton  <nickc@redhat.com>
475
476         * NEWS: Mention support for IFUNC symbols.
477
478 2009-04-29  Anthony Green  <green@moxielogic.com>
479
480         * emulparams/elf32moxie.sh (STACK_ADDR): Move default stack
481         position out to accommodate larger programs.
482
483 2009-04-29  Chris Demetriou  <cgd@google.com>
484
485         * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC.
486         (ld_options): Likewise.
487         (parse_args): Likewise.
488         * ld.texinfo: Document --no-export-dynamic.
489         * NEWS: Mention --no-export-dynamic.
490
491 2009-04-29  Alan Modra  <amodra@bigpond.net.au>
492
493         * deffilep.y (STACKSIZE_K): Rename from STACKSIZE.
494
495 2009-04-25  Alan Modra  <amodra@bigpond.net.au>
496
497         PR 10061
498         * genscripts.sh: Don't pass $EMULATION_NAME as $CUSTOMIZER_SCRIPT
499         param.
500
501 2009-04-21  Daniel Jacobowitz  <dan@codesourcery.com>
502
503         * emultempl/armelf.em (bfd_for_interwork, arm_elf_after_open)
504         (arm_elf_set_bfd_for_interworking): Delete.
505         (arm_elf_before_allocation): Do not set the interworking BFD.
506         Move allocation inside not-dynamic block.
507         (arm_elf_create_output_section_statements): Create glue sections
508         and set the interworking BFD here.
509         (LDEMUL_AFTER_OPEN): Delete.
510
511 2009-04-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
512
513         * ldlang.c (lang_one_common): Use bfd_define_common_symbol.
514
515 2009-04-15  Anthony Green  <green@moxielogic.com>
516
517         * configure.tgt: Add moxie support.
518         * Makefile.am: Add moxie files.
519         * Makefile.in: Rebuilt.
520         * emulparams/elf32moxie.sh: New file.
521         * scripttempl/moxie.sc: New file.
522
523 2009-04-15  Kazu Hirata  <kazu@codesourcery.com>
524
525         * ldlang.c: Do not include limits.h.
526
527 2009-04-14  Alan Modra  <amodra@bigpond.net.au>
528
529         PR ld/10047
530         * ldfile.c (find_scripts_dir): Use make_relative_prefix to find
531         ldscripts in build tree.  Don't repeat search for ../lib/ldscripts.
532
533 2009-04-13  H.J. Lu  <hongjiu.lu@intel.com>
534
535         * ldfile.c (ldfile_find_command_file): Revert the last change.
536
537 2009-04-11  H.J. Lu  <hongjiu.lu@intel.com>
538
539         PR ld/10047
540         * ldfile.c (ldfile_find_command_file): First try raw name.
541
542 2009-04-09  Nick Clifton  <nickc@redhat.com>
543
544         PR 9824
545         * ld.texinfo (Output Section Constraint): New node.  Documents the
546         ONLY_IF_RO and ONLY_IF_RW constraints.
547         (Symbolic Constants): New node.  Documents the CONSTANT operator.
548
549 2009-04-09  Thilo Fischer <thilo.fischer@uni-muenster.de>
550
551         * emultempl/spuelf.em (embedded_spu_file): Use pex_one in place
552         of fork/execvp.
553
554 2009-04-08  H.J. Lu  <hongjiu.lu@intel.com>
555
556         * lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM.
557         (ld_options): Likewise.
558         (parse_args): Likewise.
559
560         * ld.texinfo: Document --warn-alternate-em.
561
562         * NEWS: Mention --warn-alternate-em.
563
564 2009-04-07  DJ Delorie  <dj@redhat.com>
565
566         * emulparams/elf32mep.sh: Change default endian to little.
567
568 2009-04-07  Nick Clifton  <nickc@redhat.com>
569
570         * ld.texinfo (Output Section Address): Note that specifying an
571         address for an output section will only change the location
572         counter if the output section is used.
573
574 2009-04-06  Kazu Hirata  <kazu@codesourcery.com>
575
576         * ldfile.c (ldfile_find_command_file): Initialize result.
577
578 2009-04-06  Kazu Hirata  <kazu@codesourcery.com>
579
580         * ld.texinfo (-L): Mention that -L options do not affect how ld
581         searches for a linker script unless -T option is specified.
582         * ldfile.c (ldfile_find_command_file): Append the path obtained
583         from the program name to the search path instead of
584         prepending. Add a new parameter "default_only". Restrict the
585         search to the default script location if the new parameter is
586         true.
587         (ldfile_open_command_file_1): New.
588         (ldfile_open_command_file): Call ldfile_open_command_file_1.
589         (ldfile_open_default_command_file): New.
590
591 2009-04-03  Nathan Sidwell  <nathan@codesourcery.com>
592
593         * ldlang.c (lang_leave_output_section_statement): Set lma_region
594         if it is not overridden and section is for the same vma region as
595         the previous section.
596
597 2009-04-02  Dave Korn  <dave.korn.cygwin@gmail.com>
598
599         PR ld/6744
600         * ld.texinfo (--export-dynamic):  Mention --export-all-symbols.
601         * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse):  Issue
602         warning if --export-dynamic was passed on command-line.
603         * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse):  Likewise.
604
605 2009-04-01  Richard Sandiford  <r.sandiford@uk.ibm.com>
606
607         * emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
608         function.
609         (ld_${EMULATION_NAME}_emulation): Use it.
610
611 2009-03-20  H.J. Lu  <hongjiu.lu@intel.com>
612
613         PR ld/9970
614         * ldlang.c (lang_end): Warn missing entry symbol for -pie.
615
616 2009-03-19  Alan Modra  <amodra@bigpond.net.au>
617
618         * emultempl/spuelf.em (spu_before_allocation): Report errors from
619         spu_elf_find_overlays.
620
621 2009-03-18  H.J. Lu  <hongjiu.lu@intel.com>
622
623         PR ld/6766
624         * lexsup.c (parse_args): Call ldlang_add_undef for -e.
625
626 2009-03-18  Alan Modra  <amodra@bigpond.net.au>
627
628         * ld.h: Remove alloca handling.
629
630 2009-03-17  Alan Modra  <amodra@bigpond.net.au>
631
632         * emultempl/spu_icache.S: Add new entry to dummy handler.
633         * emultempl/spu_icache.o_c: Regenerate.
634         * emultempl/spuelf.em (params): Init new field.
635         (no_overlays): New static var.
636         (spu_before_allocation): Use it.
637         (OPTION_SPU_COMPACT_STUBS): Define.
638         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs.
639         (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs.  Adjust no-overlays
640         handling.
641
642 2009-03-17  Alan Modra  <amodra@bigpond.net.au>
643
644         * configure.host (HOSTING_LIBS): Two dollars on shell variable
645         expansion to suit make.
646
647 2009-03-17  Alan Modra  <amodra@bigpond.net.au>
648
649         * configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
650         * Makefile.am (check-DEJAGNU): Set DO_COMPARE.
651         * aclocal.m4: Regenerate.
652         * configure: Regenerate.
653         * Makefile.in: Regenerate.
654
655 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
656
657         * emultempl/aix.em (auto_export_flags): New variable.
658         (explicit_auto_export_flags): Likewise.
659         (OPTION_EXPALL, OPTION_EXPFULL): New enum values.
660         (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
661         (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
662         -bnoexpall and -bnoexpfull.
663         (gld${EMULATION_NAME}_handle_option): Handle them.
664         (gld${EMULATION_NAME}_before_allocation): Update the call to
665         bfd_size_dynamic_sections.
666
667 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
668
669         * emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
670         -berok and -bernotok control link_info.unresolved_syms_in_objects
671         and link_info.unresolved_syms_in_shared_libs instead of
672         force_make_executable.
673
674 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
675
676         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
677         config.dynamic_link to TRUE.
678
679 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
680
681         * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark
682         .text, .data and .bss output sections as SEC_KEEP.
683
684 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
685
686         * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
687
688 2009-03-14  Dave Korn  <dave.korn.cygwin@gmail.com>
689             Danny Smith  <dannysmith@users.sourceforge.net>
690
691         * emultmpl/pe.em (pe_dll_characteristics): New variable.
692         (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
693         OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
694         OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
695         New macros for options to set DllCharacteristics flag bits.
696         (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
697         nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
698         (init): Add DllCharacteristics field.
699         (gld_${EMULATION_NAME}_list_options): List new options.
700         (gld${EMULATION_NAME}_handle_option): Handle new options.
701         * emultmpl/pep.em (pe_dll_characteristics): New variable.
702         (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
703         OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
704         OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
705         New macros for options to set DllCharacteristics flags.
706         (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
707         nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
708         (init): Add DllCharacteristics field.
709         (gld_${EMULATION_NAME}_list_options): List new options.
710         (gld${EMULATION_NAME}_handle_option): Handle new options.
711         * ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
712         no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
713
714 2009-03-06  Nick Clifton  <nickc@redhat.com>
715
716         * po/es.po: Updated Spanish translation.
717
718 2009-03-03  Dave Korn  <dave.korn.cygwin@gmail.com>
719
720         * emultempl/pe.em (debug_section_p):  New bfd_map_over_sections hook.
721         (gld_${EMULATION_NAME}_after_open):  Use it to iterate all sections
722         of all input BFDs, looking for debug info.  Enable long section names
723         if any found.
724         * emultempl/pe.em (debug_section_p):  Likewise.
725         (gld_${EMULATION_NAME}_after_open):  Likewise.
726         * NEWS:  Retrospectively adjust news announcement.
727         * ld.texinfo:  Update documentation to mention new behaviour.
728
729 2009-03-03  Alan Modra  <amodra@bigpond.net.au>
730
731         * Makefile.am: Run "make dep-am".
732         * Makefile.in: Regenerate.
733
734 2009-03-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
735
736         * ldgram.y: Add support for REGION_ALIAS operator.
737         * ldlang.c: Likewise.
738         * ldlang.h: Likewise.
739         * ldlex.l: Likewise.
740         * NEWS: Mention the new feature.
741         * ld.texinfo: Document the new feature.
742
743 2009-03-02  Qinwei  <qinwei@sunnorth.com.cn>
744
745         * Makefile.am: Replace score elf emulation with score3 and score7
746         emulations.
747         * Makefile.in: Regenerate,
748         * NEWS: Mention support for Score7 architecture.
749         * configure.tgt: Add score7 emulation to score-elf target.
750         * emulparams/scoreelf.sh: Add score7 support.
751         * emultempl/scoreelf.em: Likewise.
752
753 2009-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
754
755         * configure.tgt: Only use elf64hppa target emulation for hpux.
756         * emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
757         (SCRIPT_NAME): Use new script elf64hppa.
758         (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
759         TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
760         OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
761         DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
762         TEXT_DYNAMIC): Define.
763         * emulparams/hppa64linux.sh: Adjust comments.
764         * scripttempl/elf64hppa.sc: New file.
765
766 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
767
768         * configure: Regenerate.
769
770 2009-02-27  Dave Korn  <dave.korn.cygwin@gmail.com>
771
772         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):  Set
773         default state of auto-import flag based on $target.
774
775 2009-02-24  Joseph Myers  <joseph@codesourcery.com>
776
777         * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
778         * emultempl/armelf.em (hook_in_stub): Insert after the input section.
779         (elf32_arm_add_stub_section): Update comment.
780         (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
781
782 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
783
784         * ld.texinfo (Options): Correct typos in example.  Recommend
785         using joined forms of syntax for passing options with arguments 
786         from a driver.
787         (-a): Use consistent syntax for documenting option arguments.
788         Clean up indexing and markup.
789         (-A/--architecture): Likewise.
790         (-f/--auxiliary): Likewise.
791         (-F/--filter): Likewise.
792         (-fini): Likewise.
793         (-G/--gpsize): Likewise.
794         (-h/-soname):Likewise.
795         (-init): Likewise.
796         (-l/--library): Likewise.
797         (-L/--library-path): Likewise.
798         (-m): Likewise.
799         (--defsym): Likewise.
800         (-I/--dynamic-linker): Likewise.
801         (-Map): Likewise.
802         (--oformat): Likewise.
803         (--retain-symbols-file): Likewise.
804         (-rpath): Likewise.
805         (-rpath-link): Likewise.
806         (--sort-common): Likewise.
807         (--sort-section): Likewise.
808         (--split-by-file): Likewise.
809         (--split-by-reloc): Likewise.
810         (--sysroot): Likewise.
811         (--section-start): Likewise.
812         (-Tbss, -Tdata, -Ttext): Likewise.
813         (-Ttext-segment): Likewise.
814         (--version-script): Likewise.
815         (--wrap): Likewise.
816
817 2009-02-18  Dave Korn  <dave.korn.cygwin@gmail.com>
818
819         * ld.texinfo:  Update to mention long section name options.
820         * NEWS:  Mention new behaviour and command-line options.
821         * pe-dll.c (pe_use_coff_long_section_names):  New global variable.
822         (pe_output_file_set_long_section_names):  New function.
823         (pe_dll_build_sections):  Call it on output BFDs.
824         (pe_exe_build_sections):  Likewise.
825         (pe_dll_fill_sections):  Likewise.
826         (pe_exe_fill_sections):  Likewise.
827         * pe-dll.h (pe_use_coff_long_section_names):  Declare extern.
828         (pe_output_file_set_long_section_names):  Add prototype.
829         * pep-dll.c (pe_use_coff_long_section_names):  Define pep_ alias.
830         (pe_output_file_set_long_section_names):  Likewise.
831         * pep-dll.h (pep_use_coff_long_section_names):  Declare extern.
832         (pep_output_file_set_long_section_names):  Add prototype.
833         * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES):  New getopt value macro.
834         (OPTION_DISABLE_LONG_SECTION_NAMES):  Likewise.
835         (gld${EMULATION_NAME}_add_options):  Add new options to xtra_long[].
836         (gld_${EMULATION_NAME}_list_options):  Describe them.
837         (gld${EMULATION_NAME}_handle_option):  Set or clear global
838         pe_use_coff_long_section_names flag when options recognised.
839         (gld_${EMULATION_NAME}_after_open):  En/disable long section names
840         for main output bfd by calling pe_output_file_set_long_section_names.
841         * pep.em (enum options):  Extend enum with new getopt option values.
842         (gld${EMULATION_NAME}_add_options):  Add new options to xtra_long[].
843         (gld_${EMULATION_NAME}_list_options):  Describe them.
844         (gld${EMULATION_NAME}_handle_option):  Set or clear global
845         pe_use_coff_long_section_names flag when options recognised.
846         (gld_${EMULATION_NAME}_after_open):  En/disable long section names
847         for main output bfd by calling pep_output_file_set_long_section_names.
848
849 2009-02-16  Dave Korn  <dave.korn.cygwin@gmail.com>
850
851         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):  Don't emit
852         inadvertent .reloc sections caused by refactoring accident.
853
854 2009-02-16  Alan Modra  <amodra@bigpond.net.au>
855
856         * ldlang.c (process_insert_statements): ASSERT that output section
857         statements are in order.
858
859 2009-02-16  Alan Modra  <amodra@bigpond.net.au>
860
861         * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
862         (stat_save, stat_save_ptr): New variables.
863         (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
864         (load_symbols): Likewise.  Delete dead "bad_load" code.
865         (open_input_bfds): Warn on script containing output sections.
866         (lang_enter_output_section_statement): Use push_stat_ptr.
867         (lang_enter_group): Likewise.
868         (lang_leave_output_section_statement): Use pop_stat_ptr.
869         (lang_leave_group): Likewise.
870         * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
871         * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
872         * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
873         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
874         * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
875         * emultempl/spuelf.em (spu_place_special_section): Likewise.
876         * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
877
878 2009-02-09  Nathan Sidwell  <nathan@codesourcery.com>
879
880         Missing piece of 2009-01-26 commit
881         * ldlang.c (lang_process): Don't consider relocatable flag when
882         checking for overlap.
883
884 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
885
886         * emulparams/m68kelf.sh: Add newline at end of file.
887
888 2009-02-04  Nick Clifton  <nickc@redhat.com>
889
890         PR 9805
891         * ld.texinfo (--allow-shlib-undefined): Correct description of
892         default settings and tidy up the rest of the entry.
893
894 2009-02-04  Alan Modra  <amodra@bigpond.net.au>
895
896         * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
897         during relocatable link.
898
899 2009-02-03  Nick Clifton  <nickc@redhat.com>
900
901         PR 9797
902         * ld.texinfo (Constants): Document the base-encoding suffixes
903         supported in linker scripts.
904
905 2009-02-03  Alan Modra  <amodra@bigpond.net.au>
906
907         * NEWS: Mention --as-needed change.
908
909 2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>
910
911         * configure.in: AC_SUBST pdfdir.
912         * Makefile.am: Add install-pdf, install-pdf-am,
913         and install-pdf-recursive targets. Define pdf__strip_dir.
914         * po/Make-in: Add install-pdf target.
915         * configure: Regenerate.
916         * Makefile.in: Regenerate.
917
918 2009-01-31  Alan Modra  <amodra@bigpond.net.au>
919
920         * ld.texinfo (--as-needed): Update.
921
922 2009-01-29  Andrew Jenner  <andrew@codesourcery.com>
923
924         * emultempl/armelf.em: Correct formatting of help text for
925         --no-enum-size-warning option.
926
927 2009-01-26  Nathan Sidwell  <nathan@codesourcery.com>
928
929         * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
930         * ld.h (args_type): Make check_section_addresses a char.
931         * ldmain.c (main): Default check_section_addresses to -1. Check it
932         for relocatable links.
933         * ld.texinfo (--check-sections): Update documentation.
934
935 2009-01-26  Kai Tietz  <kai.tietz@onevision.com>
936
937         * pe-dll.c (tmp_seq2): New static variable.
938         (make_singleton_name_imp): New.
939         (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
940         avoid duplicate import table generation for same symbol.
941         (pe_create_runtime_relocator_reference): Make reference for
942         64-bit 8 bytes.
943
944 2009-01-21  Alan Modra  <amodra@bigpond.net.au>
945
946         * emultempl/spuelf.em (params): Init new field.
947         (OPTION_SPU_NON_IA_TEXT): Define.
948         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
949         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
950
951 2009-01-16  H.J. Lu  <hongjiu.lu@intel.com>
952
953         * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
954         (ld_options): Add -Ttext-segment.
955         (parse_args): Handle OPTION_TTEXT_SEGMENT.
956
957         * ld.texinfo: Document -Ttext-segment.
958
959         * NEWS: Mention -Ttext-segment.
960
961         * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
962         (SHLIB_TEXT_START_ADDR): Likewise.
963
964 2009-01-13  Alan Modra  <amodra@bigpond.net.au>
965
966         * emultempl/spu_icache.o_c: Regenerate.
967
968 2009-01-12  Alan Modra  <amodra@bigpond.net.au>
969
970         * emultempl/spuelf.em (params): Init new fields.
971         (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
972         (spu_place_special_section): Adjust placement for soft-icache.  Pad
973         soft-icache section to a fixed size.  Clear addr_tree.
974         (spu_elf_load_ovl_mgr): Support soft-icache.  Map overlay manager
975         sections a little more intelligently.
976         (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
977         (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
978         (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
979         (OPTION_SPU_LRLIVE): Define.
980         (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
981         (PARSE_AND_LIST_OPTIONS): Likewise.
982         (PARSE_AND_LIST_ARGS_CASES): Handle them.
983         * emultempl/spu_icache.S: Dummy file.
984         * emultempl/spu_icache.o_c: Regenerate.
985         * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
986         (spu_icache.o_c): Add rule to build.
987         (CLEANFILES): Zap temp files.
988         (EXTRA_DIST): Add spu_icache.o_c.
989         * Makefile.in: Regenerate.
990
991 2009-01-08  Kai Tietz  <kai.tietz@onevision.com>
992
993         * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
994         (gld..._add_options): Add new option
995         --use-nul-prefixed-import-tables.
996         (gld..._handle_option): Likewise.
997         * pep.em: Same as for pe.em.
998         * ld.texinfo: Add new option documentation for
999         --use-nul-prefixed-import-tables.
1000         * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
1001         (make_head): Make prefix leading zero prefix element for
1002         idata$4 and idata$5 dependent to new flag.
1003         (make_import_fixup_entry): Remove idata4/5 prefix.
1004         * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
1005         * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
1006         * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
1007         * NEWS: Add new option.
1008
1009 2009-01-05  Kai Tietz  <kai.tietz@onevision.com>
1010
1011         * emultempl/pe.em: Prefix dollar characters to be outputed in
1012         generated C file.
1013         * emultempl/pep.em: Likewise.
1014
1015 2009-01-03  Dave Korn  <dave.korn.cygwin@gmail.com>
1016
1017         * NEWS:  Mention new feature --exclude-modules-for-implib.
1018         * ld.texinfo:  Document new --exclude-modules-for-implib option.
1019         * pe-dll.c (exclude_list_struct):  Change type member from int to
1020         new enumeration exclude_type.
1021         (pe_dll_add_excludes):  Accept exclude_type instead of int param.
1022         (auto_export):  Replace magic constants by exclude_type values and
1023         handle new choice EXCLUDEFORIMPLIB.
1024         (pe_dll_generate_implib):  Accept a pointer to the link_info and
1025         iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
1026         fresh BFDs for any found and link into import lib archive chain.
1027         * pe-dll.h (exclude_type):  Add new enumerated type to replace magic
1028         constants previously used for exclude_list_struct type member.
1029         (pe_dll_add_excludes, pe_dll_generate_implib):  Update prototypes.
1030         * pep-dll.h (exclude_type, pe_dll_add_excludes,
1031         pe_dll_generate_implib):  Likewise to all the above.
1032         * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB):  Define new
1033         getopts long option code for new --exclude-modules-for-implib option.
1034         (gld${EMULATION_NAME}_add_options):  Add new entry to xtra_long[].
1035         (gld_${EMULATION_NAME}_list_options):  List usage for it.
1036         (gld${EMULATION_NAME}_handle_option):  Use exclude_type enumerated
1037         values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
1038         (gld_${EMULATION_NAME}_finish):  Pass pointer to link_info when
1039         calling pe_dll_generate_implib.
1040         * emultempl/pep.em (options):  Define new enumerated value for getopts
1041         long option code for new --exclude-modules-for-implib option.
1042         (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
1043         gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
1044         Again, likewise to all the above.
1045
1046 2009-01-03  Dave Korn  <dave.korn.cygwin@gmail.com>
1047
1048         * pe-dll.c (autofilter_liblist):  Add entry for shared libgcc.
1049         (libnamencmp):  New function.
1050         (auto_export):  Use it in place of strncmp when filtering libraries.
1051
1052 For older changes see ChangeLog-2008
1053 \f
1054 Local Variables:
1055 mode: change-log
1056 left-margin: 8
1057 fill-column: 74
1058 version-control: never
1059 End: