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