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