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