OSDN Git Service

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