OSDN Git Service

* ldexp.c (exp_get_vma, exp_get_fill): Canonicalise error messages.
[pf3gnuchains/pf3gnuchains4x.git] / ld / ChangeLog
1 2007-08-17  Alan Modra  <amodra@bigpond.net.au>
2
3         * ldexp.c (exp_get_vma, exp_get_fill): Canonicalise error messages.
4         * lexsup.c (ld_options): Don't use tabs in help text.
5         * emultempl/armcoff.em (gld${EMULATION_NAME}_finish): Fix typo.
6         * emultempl/pe.em (gld${EMULATION_NAME}_finish): Fix typo.
7
8 2007-08-17  Alan Modra  <amodra@bigpond.net.au>
9
10         * po/Make-in: Add --msgid-bugs-address to xgettext invocation.
11
12 2007-08-15  Alan Modra  <amodra@bigpond.net.au>
13
14         PR 4923
15         * emultempl/elf32.em (after_open): Return immediately when
16         non-ELF output.
17
18 2007-08-12  Daniel Jacobowitz  <dan@codesourcery.com>
19
20         * configure.in (ALL_LINGUAS): Add fi.
21         * po/fi.po: New file.
22         * configure: Regenerated.
23
24 2007-08-10  Nick Clifton  <nickc@redhat.com>
25
26         * NEWS: Add a marker for the 2.18 features.
27
28 2007-08-10  Nick Clifton  <nickc@redhat.com>
29
30         * po/ga.po: Updated Irish translation.
31         * po/vi.po: Updated Vietnamese translation.
32
33 2007-08-10  H.J. Lu  <hongjiu.lu@intel.com>
34
35         * Makefile.am: Run "make dep-am".
36         * Makefile.in: Regenerate.
37
38 2007-08-10  H.J. Lu  <hongjiu.lu@intel.com>
39
40         PR ld/4875
41         * elf-hints-local.h: Include bfd_stdint.h.  Use uint32_t
42         instead of u_int32_t.
43
44         * sha1.h: Include bfd_stdint.h instead of <stdint.h>.
45
46 2007-08-09  Alan Modra  <amodra@bigpond.net.au>
47
48         PR 4515
49         * genscripts.sh: Delete all references to NONPAGED_TEXT_START_ADDR.
50         * ldint.texinfo: Likewise.
51         * emulparams/armaoutb.sh (NONPAGED_TEXT_START_ADDRESS): Delete.
52         * emulparams/armaoutl.sh: Likewise.
53         * emulparams/arcelf.sh (NONPAGED_TEXT_START_ADDR): Delete.
54         * emulparams/bfin.sh: Likewise
55         * emulparams/crisaout.sh: Likewise
56         * emulparams/elf32_sparc.sh: Likewise
57         * emulparams/elf32am33lin.sh: Likewise
58         * emulparams/elf32b4300.sh: Likewise
59         * emulparams/elf32bmip.sh: Likewise
60         * emulparams/elf32mcore.sh: Likewise
61         * emulparams/elf32xtensa.sh: Likewise
62         * emulparams/elf64_s390.sh: Likewise
63         * emulparams/elf64_sparc.sh: Likewise
64         * emulparams/elf64alpha.sh: Likewise
65         * emulparams/elf_i386.sh: Likewise
66         * emulparams/elf_i386_be.sh: Likewise
67         * emulparams/elf_i386_chaos.sh: Likewise
68         * emulparams/elf_i386_ldso.sh: Likewise
69         * emulparams/elf_i386_vxworks.sh: Likewise
70         * emulparams/elf_s390.sh: Likewise
71         * emulparams/elf_x86_64.sh: Likewise
72         * emulparams/i386aout.sh: Likewise
73         * emulparams/i386moss.sh: Likewise
74         * emulparams/i386msdos.sh: Likewise
75         * emulparams/i386nto.sh: Likewise
76         * emulparams/i386nw.sh: Likewise
77         * emulparams/m68kaout.sh: Likewise
78         * emulparams/m68kelf.sh: Likewise
79         * emulparams/ppcnw.sh: Likewise
80         * emulparams/sun4.sh: Likewise
81         * emulparams/tic80coff.sh: Likewise
82         * emulparams/vaxnbsd.sh: Likewise
83         * emulparams/armnbsd.sh (NONPAGED_TEXT_START_ADDR): Delete.
84         (TEXT_START_ADDR): Set for -n, -N.
85         * emulparams/coff_sparc.sh: Likewise
86         * emulparams/elf32vax.sh: Likewise
87         * emulparams/i386bsd.sh: Likewise
88         * emulparams/i386go32.sh: Likewise
89         * emulparams/i386linux.sh: Likewise
90         * emulparams/i386lynx.sh: Likewise
91         * emulparams/i386mach.sh: Likewise
92         * emulparams/m68k4knbsd.sh: Likewise
93         * emulparams/m68klinux.sh: Likewise
94         * emulparams/m68knbsd.sh: Likewise
95         * emulparams/ns32knbsd.sh: Likewise
96         * emulparams/pc532macha.sh: Likewise
97         * emulparams/ppclynx.sh: Likewise
98         * emulparams/scoreelf.sh: Likewise
99         * emulparams/sparcaout.sh: Likewise
100         * emulparams/sparclinux.sh: Likewise
101         * emulparams/sun3.sh: Likewise
102         * emulparams/vsta.sh: Likewise
103
104 2007-08-07  Ralf Corsépius <ralf.corsepius@rtems.org>
105
106         * configure.tgt: Add bfin-*rtems*.
107
108 2007-08-06  Kai Tietz  <kai.tietz@onevision.com>
109
110         * emultempl/pep.em: (pep_enable_stdcall_fixup): Set to value 1.
111         (gld_xxx_recognized_file): Use pep_bfd_is_dll for detection of
112         shared objects.
113         * pe-dll.c: (autofilter_symbollist_i386): Define set for amd64
114         mingw target.
115
116 2007-08-01  Nick Clifton  <nickc@redhat.com>
117
118         * po/ga.po: Updated Irish translation.
119
120 2007-07-29  Alan Modra  <amodra@bigpond.net.au>
121
122         * ldlang.c (lang_insert_orphan): When searching through linker
123         script to place an orphan, don't stop on statements that appear
124         outside of SECTIONS.
125         * emultempl/elf32.em (output_rel_find): Prefer read-only alloc
126         sections over read/write alloc sections.
127
128 2007-07-28  Jakub Jelinek  <jakub@redhat.com>
129
130         * scripttempl/elf.sc: Add .note.gnu.build-id.
131
132 2007-07-25  Nick Clifton  <nickc@redhat.com>
133
134         PR 4824
135         * ld.texinfo (Options): Extend the description of the -O command
136         line option.
137
138 2007-07-24  Kai Tietz  <kai.tietz@onevision.com>
139
140         * pep.sc: Correct ctor/dtor sentinels for 64-bit targets.
141
142 2007-07-21  Nick Clifton  <nickc@redhat.com>
143
144         * sha1.h: Change to use version 3 of the GNU General Public
145         License and tidy up formatting.
146         * sha1.c: Likewise.
147
148 2007-07-19  Roland McGrath  <roland@redhat.com>
149
150         * genscripts.sh (source_em, fragment): New sh functions.
151         Truncate e${EMULATION_NAME}.c file before .em script fills it.
152         Use source_em in place of . for the .em script.
153         * emultempl/generic.em: Use fragment and source_em functions.
154         * emultempl/aix.em: Likewise.
155         * emultempl/alphaelf.em: Likewise.
156         * emultempl/armcoff.em: Likewise.
157         * emultempl/armelf.em: Likewise.
158         * emultempl/avrelf.em: Likewise.
159         * emultempl/beos.em: Likewise.
160         * emultempl/cr16elf.em: Likewise.
161         * emultempl/crxelf.em: Likewise.
162         * emultempl/elf-generic.em: Likewise.
163         * emultempl/elf32.em: Likewise.
164         * emultempl/genelf.em: Likewise.
165         * emultempl/gld960.em: Likewise.
166         * emultempl/gld960c.em: Likewise.
167         * emultempl/hppaelf.em: Likewise.
168         * emultempl/ia64elf.em: Likewise.
169         * emultempl/irix.em: Likewise.
170         * emultempl/linux.em: Likewise.
171         * emultempl/lnk960.em: Likewise.
172         * emultempl/m68hc1xelf.em: Likewise.
173         * emultempl/m68kcoff.em: Likewise.
174         * emultempl/m68kelf.em: Likewise.
175         * emultempl/mipsecoff.em: Likewise.
176         * emultempl/mipself.em: Likewise.
177         * emultempl/mmix-elfnmmo.em: Likewise.
178         * emultempl/mmixelf.em: Likewise.
179         * emultempl/mmo.em: Likewise.
180         * emultempl/needrelax.em: Likewise.
181         * emultempl/netbsd.em: Likewise.
182         * emultempl/pe.em: Likewise.
183         * emultempl/pep.em: Likewise.
184         * emultempl/ppc32elf.em: Likewise.
185         * emultempl/ppc64elf.em: Likewise.
186         * emultempl/scoreelf.em: Likewise.
187         * emultempl/sh64elf.em: Likewise.
188         * emultempl/spuelf.em: Likewise.
189         * emultempl/sunos.em: Likewise.
190         * emultempl/ticoff.em: Likewise.
191         * emultempl/vanilla.em: Likewise.
192         * emultempl/vxworks.em: Likewise.
193         * emultempl/xtensaelf.em: Likewise.
194         * emultempl/z80.em: Likewise.
195
196 2007-07-18  Roland McGrath  <roland@redhat.com>
197
198         * emultempl/elf32.em (gld${EMULATION_NAME}_write_build_id_section):
199         Use ASEC->contents for CONTENTS when missing, and allocate
200         ASEC->size if needed.
201
202 2007-07-13  Roland McGrath  <roland@redhat.com>
203
204         * emultempl/elf32.em (struct build_id_info): New type.
205         (gld${EMULATION_NAME}_id_note_section_size): New function.
206         (gld${EMULATION_NAME}_write_build_id_section): New function.
207         (gld${EMULATION_NAME}_after_open): Use them.
208         (DEFAULT_BUILD_ID_STYLE): Change to "sha1".
209         * ld.texinfo (Options): Mention --build-id=sha1.
210
211         * sha1.h: New file (from gnulib).
212         * sha1.c: New file (from gnulib).
213         * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add them.
214         (sha1.o): New target.
215         * Makefile.in: Regenerated.
216
217 2007-07-13  Alan Modra  <amodra@bigpond.net.au>
218
219         * ldlang.c (strip_excluded_output_sections): Don't ignore sections
220         with update_dot_tree.
221
222 2007-07-12  Nathan Sidwell  <nathan@codesourcery.com>
223
224         * scripttempl/pe.sc: Don't include .gcc_except_table and
225         .eh_frame on partial links.
226         * scripttempl/pep.sc: Likewise.
227
228 2007-07-12  Alan Modra  <amodra@bigpond.net.au>
229
230         PR 4782
231         * ldlang.c (lang_size_sections_1 <output_section_statement>): Only
232         use expld.result when valid.
233
234 2007-07-12  Alan Modra  <amodra@bigpond.net.au>
235
236         * emultempl/spuelf.em (embedded_spu_file): Test for NULL path
237         before calling base_name, not after.
238
239 2007-07-10  Alan Modra  <amodra@bigpond.net.au>
240
241         * scripttempl/elf.sc (DISCARDED): Renamed from STACKNOTE.  Add
242         .gnu.debuglink.
243         * scripttempl/armbpabi.sc: Likewise.
244         * scripttempl/elf32sh-symbian.sc: Likewise.
245         * scripttempl/elfxtensa.sc: Likewise.
246         * scripttempl/mep.sc: Likewise.
247
248 2007-07-09  Roland McGrath  <roland@redhat.com>
249
250         * emultempl/elf32.em (gld${EMULATION_NAME}_add_option): Add --build-id.
251         (gld${EMULATION_NAME}_handle_option): Handle --build-id.
252         (gld${EMULATION_NAME}_list_options): List --build-id.
253         (gld${EMULATION_NAME}_after_open): If --build-id was given,
254         synthesize a ".note.gnu.build-id" section and cache it in elf_tdata.
255         * ld.texinfo (Options): Describe --build-id.
256         * NEWS: Mention --build-id.
257
258 2007-07-06  Nick Clifton  <nickc@redhat.com>
259
260         * deffile.h: Update copyright notice to refer to GPLv3.
261         * deffilep.y, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h,
262         ldexp.c, ldexp.h, ldfile.c, ldfile.h, ldgram.y, ld.h, ldlang.c,
263         ldlang.h, ldlex.h, ldlex.l, ldmain.c, ldmain.h, ldmisc.c,
264         ldmisc.h, ldver.c, ldver.h, ldwrite.c, ldwrite.h, lexsup.c, mri.c,
265         mri.h, pe-dll.c, pe-dll.h, pep-dll.c, pep-dll.h, stamp-h.in,
266         sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
267         emultempl/armcoff.em, emultempl/armelf.em, emultempl/avrelf.em,
268         emultempl/beos.em, emultempl/cr16elf.em, emultempl/crxelf.em,
269         emultempl/elf32.em, emultempl/elf-generic.em, emultempl/genelf.em,
270         emultempl/generic.em, emultempl/gld960c.em, emultempl/gld960.em,
271         emultempl/hppaelf.em, emultempl/ia64elf.em, emultempl/irix.em,
272         emultempl/linux.em, emultempl/lnk960.em, emultempl/m68hc1xelf.em,
273         emultempl/m68kcoff.em, emultempl/m68kelf.em,
274         emultempl/mipsecoff.em, emultempl/mipself.em,
275         emultempl/mmixelf.em, emultempl/mmix-elfnmmo.em, emultempl/mmo.em,
276         emultempl/needrelax.em, emultempl/pe.em, emultempl/pep.em,
277         emultempl/ppc32elf.em, emultempl/ppc64elf.em,
278         emultempl/scoreelf.em, emultempl/sh64elf.em, emultempl/spuelf.em,
279         emultempl/spu_ovl.S, emultempl/sunos.em, emultempl/ticoff.em,
280         emultempl/vanilla.em, emultempl/xtensaelf.em: Likewise.
281         * genscripts.sh: Add copyright notice.
282         * emultempl/netbsd.em, emultempl/vxworks.em, emultempl/z80.em:
283         Likewise.
284         * NEWS: Mention that the sources are now under GPLv3.
285         * configure: Regenerate.
286
287 2007-07-05  Danny Smith  <dannysmith@users.sourceforge.net>
288
289         * ld.texinfo (--heap): Replace 'amount' with 'number of bytes'.
290         (--stack): Likewise.
291
292 2007-07-03  Matthias Klose  <doko@ubuntu.com>
293
294         * emultempl/spuelf.em (base_name): Correct backslash quoting.
295
296 2007-07-02  Alan Modra  <amodra@bigpond.net.au>
297
298         * Makefile.in: Regenerate.
299         * aclocal.m4: Regenerate.
300         * config.in: Regenerate.
301         * po/ld.pot: Regenerate.
302
303 2007-06-30  H.J. Lu  <hongjiu.lu@intel.com>
304
305         * aclocal.m4: Regenerated.
306         * Makefile.in: Likewise.
307
308 2007-06-29  H.J. Lu  <hongjiu.lu@intel.com>
309
310         * NEWS: Remove a line with '*' only.
311
312 2007-06-29  Joseph Myers  <joseph@codesourcery.com>
313
314         * emulparams/armelf.sh (OTHER_SECTIONS): Remove .ARM.attributes.
315         (ATTRS_SECTIONS): Define.
316         * scripttempl/elf.sc, scripttempl/elf32sh-symbian.sc,
317         scripttempl/elf_chaos.sc, scripttempl/elfi370.sc,
318         scripttempl/elfxtensa.sc: Handle ATTRS_SECTIONS.
319
320 2007-06-29  M R Swami Reddy  <MR.Swami.Reddy@nsc.com>
321
322         * scripttemp/elf32cr16.sc: Default linker script.
323         * emulparams/elf32cr16.sh: Emulation script.
324         * emultempl/cr16elf.em: Emulation script.
325         * Makefile.am: Add entry to make cr16 target.
326         * Makefile.in: Regenerate.
327         * configure.tgt: Specify default and other emulation parameters
328         for cr16.
329         * ChangeLog: Added CR16 target entry.
330         * NEWS: Announce the support for the CR16 new target.
331
332 2007-06-27  Alan Modra  <amodra@bigpond.net.au>
333
334         * pe-dll.c: Rename uses of bfd.next to bfd.archive_next throughout.
335
336 2007-06-20  Alan Modra  <amodra@bigpond.net.au>
337
338         * emulparams/elf32_spu.sh (OTHER_SECTIONS): KEEP .note.spu_name.
339
340 2007-06-18  Nathan Sidwell  <nathan@codesourcery.com>
341
342         * ldlex.l, ldgram.y: Add ALIGNOF.
343         * ldexp.c (exp_print_token, foldname): Likewise.
344         * ld.texinfo: Likewise.
345
346 2007-06-18  Alan Modra  <amodra@bigpond.net.au>
347
348         * Makefile.am: Add eelf32_spu.o rule.
349         * Makefile.in: Regenerate.
350         * emultempl/spuelf.em: Revert last change.  Instead use EMBEDSPU
351         defined in Makefile for embedspu name.
352
353 2007-06-18  Alan Modra  <amodra@bigpond.net.au>
354
355         * emultempl/spuelf.em (embedded_spu_file): Deduce embedspu program
356         name prefix from that of ld.
357
358 2007-06-14  H.J. Lu  <hongjiu.lu@intel.com>
359
360         * Makefile.am (ACLOCAL_AMFLAGS): Add -I ../config -I ../bfd.
361
362         * acinclude.m4: Removed.
363
364         * Makefile.in: Regenerated.
365         * aclocal.m4: Likewise.
366         * configure: Likewise.
367
368 2007-06-14  Alan Modra  <amodra@bigpond.net.au>
369
370         * emultempl/spu_ovl.S: Don't trash lr on tail call from one
371         overlay to another.
372         * emultempl/spu_ovl.o: Regenerate.
373
374 2007-06-11  Bob Wilson  <bob.wilson@acm.org>
375
376         * emulparams/elf32xtensa.sh (OTHER_READONLY_SECTIONS): Add ONLY_IF_RO
377         for .xt_except_table.
378         (OTHER_RELRO_SECTIONS): New.
379
380 2007-06-11  Sterling Augustine  <sterling@tensilica.com>
381             Bob Wilson  <bob.wilson@acm.org>
382
383         * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Use renamed
384         XTENSA_PROP_NO_TRANSFORM flag instead of XTENSA_PROP_INSN_NO_TRANSFORM.
385
386 2007-06-01  Noah Misch  <noah@cs.caltech.edu>
387             Alan Modra  <amodra@bigpond.net.au>
388
389         * ldlang.c (ldlang_add_file): Use input_bfds_tail.
390         * ldmain.c (main): Init input_bfds_tail.  Sort link_info
391         initialization.
392
393 2007-05-29  Alan Modra  <amodra@bigpond.net.au>
394
395         * emultempl/spuelf.em (base_name): New function, split out from..
396         (embedded_spu_file) ..here.  Pass -fPIC or -fpie to embedspu
397         invocation if we deduce a shared lib or position independent
398         executable build by looking at ctrbegin* linker input files.
399
400 2007-05-29  Alan Modra  <amodra@bigpond.net.au>
401
402         * emultempl/spu_ovl.S (__rv_pattern, __cg_pattern): Set symbol
403         types and sizes.
404         * emultempl/spu_ovl.o: Regenerate.
405
406 2007-05-24  Steve Ellcey  <sje@cup.hp.com>
407
408         * Makefile.in: Regnerate.
409         * configure: Regenerate.
410         * aclocal.m4: Regenerate.
411
412 2007-05-24  Nathan Sidwell  <nathan@codesourcery.com>
413
414         * ldlex.l: ASSERT is recognized in SCRIPT env.  NAMES cannot
415         contain commas in EXP env.
416         * ldgram.y (extern_name_list): Push to EXP env, move body to ...
417         (extern_name_list_body): ... here.
418         (script_file, ifile_list): Reformat.
419         (statement): Add ASSERT.
420
421 2007-05-22  Nick Clifton  <nickc@redhat.com>
422
423         * ld.texinfo: Use @copying around the copyright notice.
424         * ldint.texinfo: Likewise.
425
426 2007-05-18  Richard Sandiford  <richard@codesourcery.com>
427
428         * emulparams/elf32ebmipvxworks.sh (OTHER_READONLY_SECTIONS)
429         (OTHER_READWRITE_SECTIONS): Define.  Add .rdata sections.
430
431 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
432
433         * configure.in: Allow sysroots to be relocated under $prefix as
434         well as $exec_prefix.
435         * configure: Regenerate.
436
437 2007-05-14  Andreas Schwab  <schwab@suse.de>
438
439         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern):
440         Handle null pattern.
441
442 2007-05-11  Alan Modra  <amodra@bigpond.net.au>
443
444         * emultempl/ppc32elf.em (plt_style): New variable.
445         (old_plt): Delete.
446         (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
447         (PARSE_AND_LIST_PROLOGUE): Define OPTION_NEW_PLT, renumber
448         OPTION_OLD_PLT, OPTION_OLD_GOT and OPTION_STUBSYMS.
449         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add secure-plt.
450         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NEW_PLT.
451         * ld.texinfo (--secure-plt): Document.
452
453 2007-05-08  Alan Modra  <amodra@bigpond.net.au>
454
455         * ld.h (args_type, ld_config_type): Reorder fields.
456         * ldmain.c (main): Don't initialise a bunch of vars we know are
457         zero already.
458
459 2007-05-05  Anatoly Sokolov <aesok@post.ru>
460
461         * multempl/avrelf.em (PARSE_AND_LIST_ARGS_CASES): Add new value for
462         "--pmem-wrap-around".
463         (PARSE_AND_LIST_OPTIONS): Describe new value for "--pmem-wrap-around".
464
465 2007-05-03  Bob Wilson  <bob.wilson@acm.org>
466
467         * scripttempl/elfxtensa.sc: Merge changes from elf.sc.
468
469 2007-05-03  Alan Modra  <amodra@bigpond.net.au>
470
471         * ld.texinfo (--no-warn-search-mismatch): Document.
472         * ldfile.c (ldfile_try_open_bfd): Don't warn about skipping
473         incompatible libraries if --no-warn-search-mismatch.
474         * ld.h (args_type): Add warn_search_mismatch.
475         * ldmain.c (main): Init it.
476         * lexsup.c (enum option_values): Add OPTION_NO_WARN_SEARCH_MISMATCH.
477         (ld_options): Add entry for --no-warn-search-mismatch.
478         (parse_args): Handle OPTION_NO_WARN_SEARCH_MISMATCH.
479
480 2007-05-03  Alan Modra  <amodra@bigpond.net.au>
481
482         * scripttempl/elf.sc: Add .debug_pubtypes and .debug_ranges.
483
484 2007-05-01  Robert Millan  <rmh@aybabtu.com>
485
486         * ldlang.c (lang_check): Error on architecture mismatch.
487
488 2007-04-30  Alan Modra  <amodra@bigpond.net.au>
489
490         * ldmain.c (link_callbacks): Init info and minfo fields.
491         * ldmisc.c (minfo): Do nothing if no map file.
492         * emultempl/spuelf.em (stack_analysis, emit_stack_syms): New vars.
493         (spu_after_open): Adjust spu_elf_create_sections call.
494         (spu_before_allocation): Likewise for spu_elf_size_stubs.
495         (OPTION_SPU_STACK_ANALYSIS, OPTION_SPU_STACK_SYMS): Define.
496         (PARSE_AND_LIST_LONGOPTS): Add new entries.
497         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
498         * gen-doc.texi: Add @set for SPU and other missing targets.
499         * ld.texinfo: Update man page selection to match gen-doc.texi.
500         Document SPU features.
501
502 2007-04-28  Alan Modra  <amodra@bigpond.net.au>
503
504         * ldcref.c (struct cref_hash_entry): Make "demangled" const.
505         (cref_fill_array): Adjust for changed demangler.
506         * ldlang.c (lang_one_common): Likewise.
507
508 2007-04-27  Nathan Froyd  <froydnj@codesourcery.com>
509
510         * emulparams/elf32_sparc.sh: Update comments.
511         * emulparams/elf32bmip.sh: Likewise.
512         * emulparams/elf32ppc.sh: Likewise.
513         * emulparams/vxworks.sh: Likewise.
514
515 2007-04-27  Alan Modra  <amodra@bigpond.net.au>
516
517         Many files: Include sysdep.h first.  Remove duplicate headers.
518         * Makefile.am: Run "make dep-am".
519         * Makefile.in: Regenerate.
520
521 2007-04-24  Alan Modra  <amodra@bigpond.net.au>
522
523         * Makefile.in: Regenerate.
524
525 2007-04-19  Alan Modra  <amodra@bigpond.net.au>
526
527         * ldcref.c (cref_fill_array): Call bfd_demangle rather than demangle.
528         * ldlang.c (lang_one_common): Likewise.
529         * ldmisc.c (vfinfo): Likewise.
530         (demangle): Delete.
531         * ldmisc.h (demangle): Delete.
532         * Makefile.am: Run "make dep-am".
533         * Makefile.in: Regenerate.
534
535 2007-04-18  Alan Modra  <amodra@bigpond.net.au>
536
537         * ldlang.h (enum section_type): Add overlay_section.
538         * ldlang.c (lang_add_section): Handle flags for overlay_section
539         as per normal_section.
540         (lang_size_sections_1): When setting lma, detect overlays by
541         os->sectype rather than by looking for overlapping vmas.
542         (lang_enter_overlay_section): Use overlay_section type.
543         (lang_leave_overlay): Set first overlay section to normal.
544
545 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
546
547         * Makefile.am: Add ACLOCAL_AMFLAGS.
548         * Makefile.in: Regenerate.
549
550 2007-04-12  Bob Wilson  <bob.wilson@acm.org>
551
552         * emulparams/elf32xtensa.sh (OTHER_SECTIONS): KEEP property sections.
553
554 2007-04-10  Richard Henderson  <rth@redhat.com>
555
556         * ldlang.c (relax_sections): Initialize and increment
557         link_info.relax_trip.
558
559 2007-04-04  Paul Brook  <paul@codesourcery.com>
560
561         * configure.tgt: Loosen checks for arm uclinux eabi targets.
562
563 2007-04-02  H.J. Lu  <hongjiu.lu@intel.com>
564
565         PR ld/4090
566         * ldexp.h (node_type): Add lineno.
567         * ldexp.c: Include "ldlex.h".
568         (exp_intop): Set the lineno field from lineno.
569         (exp_bigintop): Likewise.
570         (exp_relop): Likewise.
571         (exp_nameop): Likewise.
572         (exp_binop): Set the lineno field from lineno of lhs.
573         (exp_trinop): Likewise.
574         (exp_unop): Set the lineno field from lineno of child.
575         (exp_assop): Set the lineno field from lineno of src.
576         (exp_provide): Likewise.
577         (exp_assert): Set the lineno field from lineno of exp.
578         (exp_get_abs_int): Set lineno from lineno of nonconstant
579         expression when report problem.
580
581 2007-03-29  Richard Sandiford  <richard@codesourcery.com>
582             Daniel Jacobowitz  <dan@codesourcery.com>
583
584         * NEWS: Mention -l:foo.
585         * ld.texinfo: Document it.
586         * ldlang.c (new_afile): If a lang_input_file_is_l_enum
587         entry as a name beginning with a coloh, convert it to a
588         lang_input_file_is_search_file_enum entry without the colon.
589
590 2007-03-28  Richard Sandiford  <richard@codesourcery.com>
591
592         * ld.h (ld_config_type): Add rpath_separator.
593         * ldmain.c (main): Initialize it.
594         * lexsup.c (parse_args): Honor config.rpath_separator.
595         * emultempl/elf32.em (gld${EMULATION_NAME}_search_needed): Likewise.
596         (gld${EMULATION_NAME}_add_sysroot): Likewise.
597         (gld${EMULATION_NAME}_parse_ld_so_conf): Use config.rpath_separator
598         rather than ':' when building the path.
599         * emultempl/vxworks.em (vxworks_before_parse): New function.
600         Override config.rpath_separator.
601         (LDEMUL_AFTER_OPEN): Do not change if EXTRA_EM_FILE has been
602         set to gld${EMULATION_NAME}_after_open; #define that identifier
603         to vxworks_foo instead.
604         (LDEMUL_BEFORE_PARSE): Override in the same way as LDEMUL_AFTER_OPEN.
605
606 2007-03-28  Richard Sandiford  <richard@codesourcery.com>
607             Phil Edwards  <phil@codesourcery.com>
608
609         * ld.texinfo: Put the contents after the title page rather
610         than at the end of the document.
611
612 2007-03-26  Alan Modra  <amodra@bigpond.net.au>
613
614         * Makefile.am: Add dependency on ldemul-list.h for powerpc and
615         spu target emul files.
616         * configure.in: Check for mkstemp and waitpid.
617         * Makefile.in: Regenerate.
618         * configure: Regenerate.
619         * config.in: Regenerate.
620         * ldlang.c (input_file_chain): Make global.
621         (lang_add_input_file): Don't set lang_has_input_file here.
622         * ldlang.h (input_file_chain): Declare.
623         * emultempl/ppc32elf.em (ppc_recognized_file): New function.
624         (LDEMUL_RECOGNIZED_FILE): Define.
625         * emultempl/ppc64elf.em (ppc64_recognized_file): New function.
626         (LDEMUL_RECOGNIZED_FILE): Define.
627         * emultempl/spuelf.em (struct tflist): New.
628         (tmp_file_list): New var.
629         (clean_tmp, embedded_spu_file): New functions.
630
631 2007-03-24  Alan Modra  <amodra@bigpond.net.au>
632
633         * ldlang.c (lang_insert_orphan): Provide start/stop loadaddr syms
634         rather than defining unconditionally.
635         (lang_leave_overlay_section): Likewise.
636         * ld.texinfo (Overlay Description): Update description and examples
637         for start/stop syms.
638
639 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
640
641         * ld.texinfo: Include VERSION_PACKAGE when reporting version.
642
643 2007-03-20  Paul Brook  <paul@codesourcery.com>
644
645         * emultempl/armelf.em (pic_veneer): New variable.
646         (PARSE_AND_LIST_PROLOGUE): Add OPTION_PIC_VENEER.
647         (PARSE_AND_LIST_ARGS_CASES): Ditto.
648         (PARSE_AND_LIST_LONGOPTS): Add "pic-veneer".
649         (PARSE_AND_LIST_OPTIONS): Ditto.
650         * ld.texinfo: Document --pic-veneer.
651
652 2007-03-18  Mark Shinwell  <shinwell@codesourcery.com>
653
654         * ld.texinfo: Document --no-enum-size-warning.
655         * emultempl/armelf.em (no_enum_size_warning): New.
656         (arm_elf_create_output_section_statements): Correct typo
657         in comment.  Pass no_enum_size_warning to
658         bfd_elf32_arm_set_target_relocs.
659         (PARSE_AND_LIST_PROLOGUE): Define OPTION_NO_ENUM_SIZE_WARNING.
660         (PARSE_AND_LIST_OPTIONS): Document --no-enum-size-warning.
661         (PARSE_AND_LIST_ARGS_CASES): Add OPTION_NO_ENUM_SIZE_WARNING
662         case.
663
664 2007-03-19  Bernd Schmidt  <bernd.schmidt@analog.com>
665
666         * configure.tgt (bfin-*-elf, bfin-*-uclinux*): Add targ_extra_libpath.
667         (bfin-*-linux-uclibc*): New target.
668
669 2007-03-16  Kai Tietz  <Kai.Tietz@onevision.com>
670
671         * pe-dll.c (make_one): Use pc-relative relocation instead of an
672         absolute relocation for x86_64-pc-mingw32 target.
673
674 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
675
676         * Makefile.am (ld_TEXINFOS): Remove ldver.texi.
677         (AM_MAKEINFOFLAGS): Add -I ../../bfd/doc.
678         (TEXI2DVI): Likewise.
679         (REPORT_BUGS_TO): Removed.
680         (INCLUDES): Remove -DREPORT_BUGS_TO.
681         (ldver.texi): Likewise.
682         (ld.1): Don't depend on ldver.texi.
683         (MOSTLYCLEANFILES): Remove ldver.texi.
684         * Makefile.in: Regenerated.
685
686         * configure.in (--with-bugurl): Removed.
687         * configure: Regenerated.
688
689         * lexsup.c: Include bfdver.h.
690
691         * ld.texinfo: Include bfdver.texi instead of ldver.texi.
692
693 2007-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
694
695         * emultempl/mmixelf.em: Remove incorrect '#line' directive.
696
697 2007-03-08  Alan Modra  <amodra@bigpond.net.au>
698
699         * ldlang.c (lang_size_sections_1): Correct backwards dot move
700         test to not trigger on overlays.  Only warn on backwards move
701         if non-default lma.
702
703 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
704
705         * configure.in (REPORT_BUGS_TEXI): Define to Texinfo version of
706         bug-reporting URL.
707         * Makefile.am (ldver.texi): Define BUGURL.
708         * ld.texinfo: Use BUGURL.
709         * Makefile.in, configure: Regenerate.
710
711 2007-03-07  Nick Clifton  <nickc@redhat.com>
712
713         PR ld/4023
714         * emultempl/aix.em (..._before_allocation): Strip sysroot prefix
715         from any paths being inserted into the output binary's DT_RPATH.
716
717 2007-03-02  Nathan Sidwell  <nathan@codesourcery.com>
718
719         * emulparams/shelf_uclinux.sh: New. Missed in 2007-02-28 commit.
720
721 2007-03-01  Joseph Myers  <joseph@codesourcery.com>
722
723         * ldver.c (ldversion): Remove word "version" from output.  Update
724         copyright date.
725
726 2007-02-28  Nathan Sidwell  <nathan@codesourcery.com>
727
728         * Makefile.am (ALL_EMULATIONS): Add eshelf_uclinux.o
729         (eshelf_uclinux.c): New target.
730         * Makefile.in: Rebuilt.
731         * configure.tgt (sh-*-uclinux* | sh[12]-*-uclinux*): New stanza.
732         * emulparams/shelf_uclinux.sh: New.
733
734 2007-02-28  Alan Modra  <amodra@bigpond.net.au>
735
736         * configure.tgt: Fix type last change.
737         * configure.tgt (spu-*-elf*): Delete targ_extra_ofiles.
738
739 2007-02-27  Alan Modra  <amodra@bigpond.net.au>
740
741         * Makefile.am (ALL_EMUL_EXTRA_OFILES): Remove spu_inc.o.
742         (eelf32_spu.c): Adjust dependencies.
743         * Makefile.in: Regenerate.
744         * emultempl/spuelf.em (ovl_mgr): New array.  Insert spu_ovl.o
745         code using bin2c.
746         (_binary_spu_ovl_o_start, _binary_spu_ovl_o_end): Delete.
747         (ovl_mgr_stream): Update.
748         * emultempl/spu_inc.s: Delete.
749         * emultempl/spu_none.s: Delete.
750
751 2007-02-26  Alan Modra  <amodra@bigpond.net.au>
752
753         * emultempl/spuelf.em (_binary_builtin_ovl_mgr_start): Rename
754         to _binary_spu_ovl_o_start.
755         (_binary_builtin_ovl_mgr_end): Rename to _binary_spu_ovl_o_end.
756         (spu_elf_load_ovl_mgr): Fatal error on missing overlay manager.
757         * emultempl/spu_inc.s: Rename symbols.
758         * emultempl/spu_none.s: New file.
759         * emultempl/spu_ovl.S: Update copyright.
760         * Makefile.am (spu_inc.o): Try building with ld -r first, then
761         gas incbin, then build without overlay manager.
762         * Makefile.in: Regenerate.
763
764 2007-02-22  Joseph Myers  <joseph@codesourcery.com>
765
766         * configure.tgt (mips64*el-*-linux-*, mips64*-*-linux-*,
767         mips*el-*-linux-*, mips*-*-linux-*): Set
768         targ_extra_libpath=$targ_extra_emuls.
769
770 2007-02-21  Nick Clifton  <nickc@redhat.com>
771
772         * ldlang.c (ldlang_override_segment_assignment): New function.
773         * ldlang.h (ldlang_override_segment_assignment): Prototype.
774         * ldmain.c (link_callbacks): Add
775         ldlang_override_segment_assignment.
776
777 2007-02-20  Alan Modra  <amodra@bigpond.net.au>
778
779         * ldexp.c (fold_name <LOADADDR>): Ensure result is always absolute.
780
781 2007-02-17  Mark Mitchell  <mark@codesourcery.com>
782             Nathan Sidwell  <nathan@codesourcery.com>
783             Vladimir Prus  <vladimir@codesourcery.com
784             Joseph Myers  <joseph@codesourcery.com>
785
786         * configure.in (--with-bugurl): New option.
787         * configure: Regenerate.
788         * Makefile.am (REPORT_BUGS_TO): Define.
789         (INCLUDES): Define REPORT_BUGS_TO.
790         Regenerate dependencies.
791         * Makefile.in: Regenerate.
792         * ld.h: Remove include of bin-bugs.h.
793         * lexsup.c (help): Don't print empty REPORT_BUGS_TO.
794
795 2007-02-17  Alan Modra  <amodra@bigpond.net.au>
796
797         * ldcref.c (check_reloc_refs): Compare section for local syms.
798
799 2007-02-13  Alan Modra  <amodra@bigpond.net.au>
800
801         * emultempl/spu_ovl.S (__ovly_return, __ovly_load): Set sym size.
802         (__ovly_load_event): Define.
803         (size): Rename to osize.
804         * emultempl/spu_ovl.o: Regenerate.
805
806 2007-02-13  Alan Modra  <amodra@bigpond.net.au>
807
808         * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Add ".branch_lt".
809         * emultempl/ppc64elf.em (ppc_add_stub_section): Create without
810         SEC_RELOC flag set.
811
812 2007-02-09  H.J. Lu  <hongjiu.lu@intel.com>
813
814         * configure.in (targ_extra_emuls): Add $targ64_extra_emuls if
815         want64 is true.
816         (targ_extra_libpath): Add $targ64_extra_libpath if want64 is
817         true
818         * configure: Regenerated.
819
820         * configure.tgt (targ_extra_libpath): Initialize.
821         (targ64_extra_emuls): New. Document. Initialize.
822         (targ64_extra_libpath): Likewise.
823         (i[3-7]86-*-linux-*): Set targ64_extra_emuls and
824         targ64_extra_libpath.
825         (powerpc*-*-linux*): Likewise.
826         (s390-*-linux*): Likewise.
827
828 2007-02-07  Paul Brook  <paul@codesourcery.com>
829
830         * configure.tgt: Add arm*-*-uclinux-*eabi.
831
832 2007-02-06  H.J. Lu  <hongjiu.lu@intel.com>
833
834         * ldlang.c (lang_size_sections_1): Add a missing `)'.
835
836 2007-02-06  Alan Modra  <amodra@bigpond.net.au>
837
838         PR ld/3966
839         * ldlang.c (lang_size_sections_1): Don't warn on backwards dot
840         move unless section size is non-zero.
841
842 2007-02-05  Dave Brolley  <brolley@redhat.com>
843
844         * Makefile.am (ALL_EMULATIONS): Add support for Toshiba MeP.
845         * configure.tgt: Likewise.
846         * scripttempl/mep.sc: New file.
847         * emulparams/elf32mep.sh: New file.
848         * Makefile.in: Regenerate.
849
850 2006-01-29  Julian Brown  <julian@codesourcery.com>
851
852         * NEWS: Mention --vfp11-denorm-fix option.
853         * ld.texinfo: Document above.
854         * emulparams/armelf_linux.sh (OTHER_TEXT_SECTIONS): Add
855         .vfp11_veneer section.
856         * emulparams/armelf.sh (OTHER_TEXT_SECTIONS): Likewise.
857         * emultempl/armelf.em (vfp11_denorm_fix): New static variable.
858         (arm_elf_before_allocation): Call bfd_elf32_arm_set_vfp11_fix,
859         bfd_elf32_arm_init_maps and bfd_elf32_arm_vfp11_erratum_scan.
860         (arm_elf_after_allocation): New function. Call
861         bfd_elf32_arm_vfp11_fix_veneer_locations for all input statements.
862         (arm_elf_create_output_section_statements): Pass vfp11 fix command
863         line option to BFD.
864         (OPTION_VFP11_DENORM_FIX): New option.
865         (PARSE_AND_LIST_LONGOPTS): Handle new option.
866         (PARSE_AND_LIST_OPTIONS): Likewise.
867         (PARSE_AND_LIST_ARGS_CASES): Likewise.
868         (LDEMUL_AFTER_ALLOCATION): Define.
869
870 2007-01-24  H.J. Lu  <hongjiu.lu@intel.com>
871
872         * ldgram.y (SIZEOF_HEADERS): Remove duplicated one.
873         (DEFSYMEND): Likewise.
874         (NAME): Likewise.
875         (LNAME): Likewise.
876
877 2007-01-19  Murali Vemulapati  <murali.vemulapati@gmail.com>
878
879         * pe-dll.c: (make_one) Conditionally include jump stubs.
880         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Identify
881         redundant jump stubs from import libraries and exclude them from
882         link.
883
884 2007-01-19  H.J. Lu  <hongjiu.lu@intel.com>
885
886         * ld.h (args_type): Add new symbolic and dynamic_list fields.
887
888         * ld.texinfo: Update -Bsymbolic-functions.
889
890         * ldmain.c (main): Initialize command_line.symbolic to
891         symbolic_unset and command_line.dynamic_list to
892         dynamic_list_unset.  Check -Bsymbolic, -Bsymbolic-functions and
893         --dynamic-list* before setting link_info.symbolic,
894         link_info.dynamic and link_info.dynamic_data.
895
896         * lexsup.c (option_values): Add OPTION_SYMBOLIC_FUNCTIONS.
897         (ld_options): Use OPTION_SYMBOLIC_FUNCTIONS with
898         -Bsymbolic-functions.
899         (parse_args): Handle -Bsymbolic-functions.  Don't set
900         link_info.dynamic, link_info.dynamic_data and link_info.symbolic
901         here.  Set command_line.symbolic for -Bsymbolic.  Set
902         command_line.dynamic_list and command_line.symbolic for
903         --dynamic-list-data, --dynamic-list-cpp-new,
904         --dynamic-list-cpp-typeinfo and --dynamic-list.
905
906 2007-01-19  Jakub Jelinek  <jakub@redhat.com>
907             H.J. Lu  <hongjiu.lu@intel.com>
908
909         * emultempl/elf32.em (handle_option): Make sure -z max-page-size
910         or -z common-page-size argument is a power of 2.  Call
911         bfd_emul_set_maxpagesize and bfd_emul_set_commonpagesize.
912
913 2007-01-19  H.J. Lu  <hongjiu.lu@intel.com>
914
915         * ldmain.c (main): Don't call bfd_emul_set_maxpagesize nor
916         bfd_emul_set_commonpagesize.
917
918 2007-01-19  H.J. Lu  <hongjiu.lu@intel.com>
919
920         * NEWS: Mention --default-script/-dT.
921
922         * ld.h (args_type): Add a default_script field.
923
924         * ld.texinfo: Document --default-script/-dT.
925
926         * ldmain.c (main): Handle command_line.default_script.
927
928         * lexsup.c (option_values): Add OPTION_DEFAULT_SCRIPT.
929         (ld_options): Add entries for --default-script and -dT.
930         (parse_args): Handle --default-script/-dT.
931
932 2007-01-16  H.J. Lu  <hongjiu.lu@intel.com>
933
934         PR ld/3831
935         * NEWS: Mention -Bsymbolic-functions, --dynamic-list-data and
936         --dynamic-list-cpp-new.
937
938         * ld.texinfo: Document -Bsymbolic-functions, --dynamic-list-data
939         and --dynamic-list-cpp-new.
940
941         * ldlang.c (lang_append_dynamic_list_cpp_new): New.
942         (lang_process): Change link_info.dynamic to
943         link_info.dynamic_list.
944         (lang_append_dynamic_list): Likewise.
945         * ldmain.c (main): Likewise.  Initialize link_info.dynamic and
946         link_info.dynamic_data to FALSE.
947
948         * ldlang.h (lang_append_dynamic_list_cpp_new): New.
949
950         * lexsup.c (option_values): Add OPTION_DYNAMIC_LIST_DATA and
951         OPTION_DYNAMIC_LIST_CPP_NEW.
952         (ld_options): Add entries for -Bsymbolic-functions,
953         --dynamic-list-data and --dynamic-list-cpp-new.  Make
954         -Bsymbolic-functions an alias of --dynamic-list-data.
955         (parse_args): Change link_info.dynamic to link_info.dynamic_list.
956         Set link_info.dynamic to TRUE for --dynamic-list and
957         --dynamic-list-cpp-typeinfo.  Handle --dynamic-list-data and
958         --dynamic-list-cpp-new.
959
960 2007-01-11  Nathan Sidwell  <nathan@codesourcery.com>
961
962         * emultempl/elf-generic.em (gdl_map_segments): Only allow header
963         shrinkage for the first few iterations.
964
965 2007-01-08  Kai Tietz   <kai.tietz@onevision.com>
966
967         * configure.tgt: Renamed target x86_64-*-mingw64 to
968         x86_64-*-mingw*.
969
970 2007-01-08  Pedro Alves  <pedro_alves@portugalmail.pt>
971
972         * configure.host: Add i[3-7]86-*-mingw* case.
973
974 2007-01-08  Nick Clifton  <nickc@redhat.com>
975
976         * pep-dll.h (pep_bfd_is_dll): Add prototype.
977
978 2007-01-08  Aurelien Jarno  <aurelien@aurel32.net>
979
980         PR ld/3843
981         * configure.tgt (x86_64_[k]freebsd*): Add targ_extra_libpath and
982         tdir_elf_i386_fbsd.
983
984 2007-01-06  Nathan Sidwell  <nathan@codesourcery.com>
985
986         * ldexp.c (fold_name): Issue error on undefined sections.
987
988 2007-01-02  Alan Modra  <amodra@bigpond.net.au>
989
990         * pe-dll.c: Include pe-dll.h.
991         * pep-dll.c (pe_bfd_is_dll): Define.
992
993 For older changes see ChangeLog-2006
994 \f
995 Local Variables:
996 mode: change-log
997 left-margin: 8
998 fill-column: 74
999 version-control: never
1000 End: