OSDN Git Service

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