OSDN Git Service

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