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