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