OSDN Git Service

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