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