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