OSDN Git Service

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