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