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