1 2005-11-04 Alan Modra <amodra@bigpond.net.au>
3 * ldlang.c (struct output_statement_hash_entry): Don't indirect to os.
4 (output_statement_newfunc): Rewrite.
5 (lang_output_section_find_1): Merge into..
6 (lang_output_section_find): ..here.
7 (lang_output_section_statement_lookup_1): Rewrite to handle
8 multiple sections with the same name.
9 (output_statement_table_init): Commonise error message.
10 (lang_init, open_output): Likewise.
12 2005-11-03 Paul Brook <paul@codesourcery.com>
14 * scripttempl/elf.sc: Add .init_array.* and .fini_array.*.
15 * scripttempl/armbpabi.sc: Make init/fini array consistent with
17 * scripttempl/elf32sh-symbian.sc: Ditto.
18 * scripttempl/elfxtensa.sc: Ditto.
20 2005-11-03 Alan Modra <amodra@bigpond.net.au>
22 * ldlang.h (lang_output_section_statement_type): Rearrange. Remove
23 memspec. Make "processed" a bitfield.
24 (lang_data_statement_type, lang_reloc_statement_type): Rename
25 output_vma to output_offset.
26 * ldlang.c (lang_output_section_statement_lookup_1): Init
27 all_input_readonly. Don't init memspec.
28 (init_os): Remove incorrect comment.
29 (print_data_statement, print_reloc_statement): Adjust for
30 lang_data_statement_type and lang_reloc_statement_type change.
31 (lang_size_sections_1, lang_add_reloc): Likewise.
32 * ldwrite.c (build_link_order): Likewise.
34 2005-10-30 Mark Mitchell <mark@codesourcery.com>
36 * lexsup.c (help): Document "@FILE".
38 2005-10-30 H.J. Lu <hongjiu.lu@intel.com>
40 * Makefile.am: Run "make dep-am".
41 * Makefile.in: Regenerated.
43 * dep-in.sed: Replace " ./" with " ".
45 2005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
47 * Makefile.am: Add support for Z80
48 * Makefile.in: Regenerated
49 * configure.tgt: Add z80-*-coff
50 * emulparams/z80.sh: New file.
51 * emultempl/z80.em: New file.
52 * scripttempl/z80.sc New file.
53 * NEWS: Mention this new support.
55 2005-10-25 Alan Modra <amodra@bigpond.net.au>
57 * po/ld.pot: Regenerate.
59 2005-10-25 Chris Metcalf <cdmetcalf@comcast.net>
61 * ld.texinfo (--reduce-memory-overheads): Fix typo.
63 2005-10-23 H.J. Lu <hongjiu.lu@intel.com>
66 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
67 bfd_match_sections_by_type to match section types.
69 * ldlang.c (init_os): Take the input section. Call
70 bfd_init_private_section_data if the input section isn't NULL.
71 (exp_init_os): Pass NULL to init_os.
72 (map_input_to_output_sections): Likewise.
73 (lang_add_section): Pass the input section to init_os.
75 2005-10-19 Paul Brook <paul@codesourcery.com>
77 * emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.
79 2005-10-15 H.J. Lu <hongjiu.lu@intel.com>
82 * emultempl/elf32.em: Include "elf-bfd.h".
83 (gld${EMULATION_NAME}_place_orphan): Check section type and
84 don't use section name for ELF input sections.
86 * ld.texinfo: Document orphan section processing.
88 * ldlang.c (lang_output_section_find_by_flags): Match section
89 types by calling bfd_match_sections_by_type.
91 2005-10-13 Mark Mitchell <mark@codesourcery.com>
93 * ld.texino: Describe double-quoted string syntax for version
95 * ldlang.h (lang_new_vers_pattern): Add literal_p parameter.
96 * ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER.
97 Adjust calls to lang_new_vers_pattern to pass literal_p argument.
98 * ldlang.c (lang_vers_match): Fix indentation. Do not glob-match
99 version nodes without a pattern.
100 (lang_new_vers_pattern): Add literal_p parameter.
101 (lang_do_version_exports_section): Pass it.
103 2005-10-12 Mark Mitchell <mark@codesourcery.com>
105 * NEWS: Mention @file.
107 2005-10-05 H.J. Lu <hongjiu.lu@intel.com>
110 * ldcref.c (check_refs): Accept bfd_boolean.
111 (check_local_sym_xref): Pass FALSE to check_refs.
112 (check_nocrossref): Pass TRUE to check_refs.
113 (check_refs_info): Add bfd_boolean.
114 (check_refs): Add bfd_boolean to check_refs_info.
115 (check_reloc_refs): Match relocations with proper symbols.
117 * ldmisc.c (vfinfo): Don't add extra ":\n".
119 2005-10-05 Danny Smith <dannysmith@users.sourceforge.net>
121 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
122 default entry symbol to ENTRY here.
123 * scripttempl/pe.sc: Not here.
125 2005-09-30 James E Wilson <wilson@specifix.com>
127 * ldlang.c (lang_startup): Add missing ": " to einfo call.
129 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
131 * Makefile.am: Run "make dep-am".
132 * Makefile.in: Regenerated.
133 * aclocal.m4: Likewise.
135 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
137 * ldlang.c (output_statement_hash_entry): New type.
138 (output_statement_table): New variable for hash table.
139 (output_statement_newfunc): New function.
140 (output_statement_table_init): Likewise.
141 (output_statement_table_free): Likewise.
142 (lang_init): Call output_statement_table_init.
143 (lang_finish): Renamed to ...
145 (lang_process): Updated.
146 (lang_finish): New function.
147 (lang_output_section_find_1): Use hash table.
148 (lang_output_section_statement_lookup_1): Likewise.
150 * ldlang.h (lang_finish): New.
152 * ldmain.c (main): Call lang_finish.
154 2005-09-30 Mark Mitchell <mark@codesourcery.com>
156 * ldmain.c (main): Use expandargv.
158 2005-09-30 Catherine Moore <clm@cm00re.com>
160 * Makefile.am: Bfin support.
161 * Makefile.in: Regenerated.
162 * aclocal.m4: Regenerated.
163 * configure.tgt: Bfin support.
164 * emulparams/bfin.sh: New file.
165 * emultempl/bfin.em: New file.
167 2005-09-30 Matthias Kurz <mk@baerlap.north.de>
169 * ld.h: Prevent the inclusion of <libintl.h> from the Solaris
170 version of <locale.h> when ENABLE_NLS is not defined.
172 2005-09-27 H.J. Lu <hongjiu.lu@intel.com>
174 * ld.texinfo (ALIGN): Document it as forcing output section
177 * ldgram.y (ALIGN): Support it for forcing output section
180 2005-09-20 Alan Modra <amodra@bigpond.net.au>
182 * ldlang.h (lang_output_section_statement_struct): Change type of
183 "processed" to bfd_boolean.
184 * ldexp.c (fold_name): Update references to os->processed.
185 * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
186 (lang_size_sections_1): Likewise.
187 (lang_reset_memory_regions): Likewise.
190 * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
191 so that unused output section statements affect dot.
193 2005-09-08 Jakub Jelinek <jakub@redhat.com>
195 * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
196 and --eh-frame-hdr options.
198 2005-09-07 Alan Modra <amodra@bigpond.net.au>
200 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
201 (exp_fold_tree_1): Print assert message only in final stage of
202 linking. Trigger assertion failure if expression cannot be
205 2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
208 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
209 --just-symbols on DSO.
211 2005-08-18 Alan Modra <amodra@bigpond.net.au>
213 * scripttempl/elf.sc: Remove commented out defines.
215 2005-08-18 Alan Modra <amodra@bigpond.net.au>
217 * emulparams/a29k.sh: Delete.
218 * emulparams/ebmon29k.sh: Delete.
219 * emulparams/sa29200.sh: Delete.
220 * Makefile.am: Remove a29k support.
221 * configure.tgt: Likewise.
222 * ld.texinfo: Likewise.
223 * Makefile.in: Regenerate.
225 2005-08-17 Jakub Jelinek <jakub@redhat.com>
227 * ldgram.y (vers_defns): Don't lose pattern list before
228 extern NAME {}. Handle global, local and extern symbol names.
230 2005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
232 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
233 Don't increment rel_count of .cranges here. Set rawsize of .cranges.
235 2005-08-10 Nick Clifton <nickc@redhat.com>
237 * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
238 before lang_size_sections.
240 2005-08-09 Alan Modra <amodra@bigpond.net.au>
242 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
244 2005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
246 * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
247 Add rules to build these emulations.
248 * Makefile.in: Regenerate.
249 * configure.tgt (msp430): Add the new variants to the
250 targ_extra_emuls list.
251 * emulparams/msp430all.sh: Add entries for the msp430x21xx
254 2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
256 * ld.texinfo: Document PROVIDE_HIDDEN.
258 * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
259 (exp_provide): Add and set hidden.
261 * ldexp.h (etree_type): Add hidden to assign.
263 * ldgram.y (PROVIDE_HIDDEN): New.
264 * ldlex.l (PROVIDE_HIDDEN): Likewise.
266 * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
269 2005-08-05 Alan Modra <amodra@bigpond.net.au>
271 * emulparams/elf_x86_64.sh: Revert last change.
272 * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
274 2005-08-05 Alan Modra <amodra@bigpond.net.au>
276 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
278 * emulparams/armelf_linux.sh: Likewise.
279 * emulparams/armnto.sh: Likewise.
280 * emulparams/criself.sh: Likewise.
281 * emulparams/elf32mcore.sh: Likewise.
282 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
283 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
284 (OTHER_END_SYMBOLS): Don't define.
285 * emulparams/elf32fr30.sh: Likewise.
286 * emulparams/elf64mmix.sh: Likewise.
287 * emulparams/hppa64linux.sh: Likewise.
288 * emulparams/m32relf.sh: Likewise.
289 * emulparams/vxworks.sh: Likewise.
290 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
291 (OTHER_BSS_END_SYMBOLS): Add.
292 (OTHER_END_SYMBOLS): Move before current end sym definitions.
293 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
294 * scripttempl/elf.sc: Likewise.
295 * scripttempl/elf32sh-symbian.sc: Likewise.
296 * scripttempl/elf_chaos.sc: Likewise.
297 * scripttempl/elfxtensa.sc: Likewise.
298 * scripttempl/iq2000.sc: Likewise.
299 * scripttempl/xstormy16.sc: Likewise.
301 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
302 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
303 (REL_LARGE, LARGE_SECTIONS): Add.
304 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
306 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
307 (LARGE_SECTIONS): Define.
308 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
309 (LARGE_SECTIONS): Define.
311 2005-08-04 Alan Modra <amodra@bigpond.net.au>
313 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
314 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
315 (struct ld_emulation_xfer_struct): Remove do_assignments field.
316 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
317 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
318 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
319 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
320 * emultempl/armcoff.em: Likewise.
321 * emultempl/beos.em: Likewise.
322 * emultempl/generic.em: Likewise.
323 * emultempl/gld960.em: Likewise.
324 * emultempl/gld960c.em: Likewise.
325 * emultempl/linux.em: Likewise.
326 * emultempl/lnk960.em: Likewise.
327 * emultempl/m68kcoff.em: Likewise.
328 * emultempl/pe.em: Likewise.
329 * emultempl/sunos.em: Likewise.
330 * emultempl/ticoff.em: Likewise.
331 * emultempl/vanilla.em: Likewise.
332 * emultempl/elf32.em: Likewise.
333 (gld*_provide_bound_symbols): Delete.
334 (gld*_provide_init_fini_syms): Delete.
335 (gld*_before_allocation): Don't call ldemul_do_assignments.
336 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
337 (LDEMUL_DO_ASSIGNMENTS): Delete.
338 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
339 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
341 2005-08-04 Alan Modra <amodra@bigpond.net.au>
343 * Makefile.am (eelf32m32c.c): Fix dependencies.
344 * Makefile.in: Regenerate.
346 2005-08-04 Alan Modra <amodra@bigpond.net.au>
348 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
349 (finish_default): New function.
350 * ldemul.h (finish_default): Declare.
351 * emultempl/aix.em (gld*_before_allocation): Call
352 before_allocation_default rather than strip_excluded_output_sections.
353 (ld_*_emulation): Init finish field to finish_default.
354 * emultempl/armcoff.em: Likewise.
355 * emultempl/beos.em: Likewise.
356 * emultempl/elf32.em: Likewise.
357 * emultempl/generic.em: Likewise.
358 * emultempl/gld960.em: Likewise.
359 * emultempl/gld960c.em: Likewise.
360 * emultempl/hppaelf.em: Likewise.
361 * emultempl/linux.em: Likewise.
362 * emultempl/lnk960.em: Likewise.
363 * emultempl/m68kcoff.em: Likewise.
364 * emultempl/mmo.em: Likewise.
365 * emultempl/pe.em: Likewise.
366 * emultempl/ppc64elf.em: Likewise.
367 * emultempl/sunos.em: Likewise.
368 * emultempl/ticoff.em: Likewise.
369 * emultempl/vanilla.em: Likewise.
371 2005-08-03 Alan Modra <amodra@bigpond.net.au>
373 * ldlang.c (exp_init_os): Handle etree_provide.
374 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
375 (OTHER_BSS_END_SYMBOLS): ..this.
376 * emulparams/armelf_linux.sh: Likewise.
377 * emulparams/armnto.sh: Likewise.
378 * emulparams/criself.sh: Likewise.
379 * emulparams/crislinux.sh: Likewise.
380 * emulparams/elf32frv.sh: Likewise.
381 * emulparams/elf32mcore.sh: Likewise.
382 * emulparams/elf32ppc.sh: Likewise.
383 * emulparams/elf32ppclinux.sh: Likewise.
384 * emulparams/hppa64linux.sh: Likewise.
385 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
386 $OTHER_BSS_END_SYMBOLS.
387 * scripttempl/elf32sh-symbian.sc: Likewise.
388 * scripttempl/elf_chaos.sc: Likewise.
389 * scripttempl/iq2000.sc: Likewise.
390 * scripttempl/xstormy16.sc: Likewise.
391 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
392 * scripttempl/elfxtensa.sc: Likewise.
394 2005-07-29 Nick Clifton <nickc@redhat.com>
396 * ldmain.c (main): Allow -shared and -static to be used together.
397 * ld.texinfo (-static): Mention that it is allowed with -shared.
399 2005-07-28 DJ Delorie <dj@redhat.com>
401 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
402 unary & address operator, as that breaks GCC's strict aliasing
405 2005-07-25 Jan Hubicka <jh@suse.cz>
406 H.J. Lu <hongjiu.lu@intel.com>
408 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
410 * scripttempl/elf.sc: Updated for large section support.
412 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
414 * configure.tgt: Remove i[3-7]86-*-rtemself*.
415 Remove sparc-*-rtemself*.
417 2005-07-21 Ben Elliston <bje@gnu.org>
419 * ldgram.y (ldgram_want_filename): Remove unused static.
421 2005-07-20 DJ Delorie <dj@redhat.com>
423 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
424 (EXTRA_EM_FILE): New.
426 2005-07-19 H.J. Lu <hongjiu.lu@intel.com>
428 * ldmain.c (main): Reindent.
430 2005-07-19 Paul Brook <paul@codesourcery.com>
432 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
433 to determine dynamic linker name.
435 2005-07-18 Nick Clifton <nickc@redhat.com>
437 * configure.tgt: Restore alpha ordering to list of arches.
439 2005-07-16 Alan Modra <amodra@bigpond.net.au>
441 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
442 (gld*_before_allocation): Call ldemul_do_assignments rather than
443 gld*_provide_init_fini_syms directly.
444 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
445 (ppc_do_assignments): New function.
446 (LDEMUL_AFTER_ALLOCATION): Don't define.
447 (LDEMUL_DO_ASSIGNMENTS): Define.
449 2005-07-16 Alan Modra <amodra@bigpond.net.au>
451 * Makefile.am: Run "make dep-am".
452 (emipsidt.c, emipsidtl.c): Depend on generic.em.
453 * Makefile.in: Regenerate.
455 2005-07-15 Alan Modra <amodra@bigpond.net.au>
457 * ldemul.c (ldemul_do_assignments): New function.
458 (do_assignments_default): New function.
459 * ldemul.h (ldemul_do_assignments): Declare.
460 (do_assignments_default): Declare.
461 (struct ld_emulation_xfer_struct): Add do_assignments.
462 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
463 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
464 * emultempl/armcoff.em: Likewise.
465 * emultempl/beos.em: Likewise.
466 * emultempl/generic.em: Likewise.
467 * emultempl/gld960.em: Likewise.
468 * emultempl/gld960c.em: Likewise.
469 * emultempl/linux.em: Likewise.
470 * emultempl/lnk960.em: Likewise.
471 * emultempl/m68kcoff.em: Likewise.
472 * emultempl/pe.em: Likewise.
473 * emultempl/sunos.em: Likewise.
474 * emultempl/ticoff.em: Likewise.
475 * emultempl/vanilla.em: Likewise.
476 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
477 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
479 2005-07-14 Jim Blandy <jimb@redhat.com>
481 Add support for the Renesas M32C and M16C.
482 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
483 (eelf32m32c.c): New target.
484 * Makefile.in: Regenerated.
485 * configure.tgt: Add case for m32c-*-elf.
486 * emulparams/elf32m32c.sh: New file.
488 2005-07-14 Alan Modra <amodra@bigpond.net.au>
490 * ldlang.c (strip_excluded_output_sections): Don't call
492 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
493 (gld*_provide_init_fini_syms): Move.
494 (gld*_before_allocation): Call the above from here..
495 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
496 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
497 * emultempl/ppc64elf.em (ppc_finish): Likewise.
499 2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
501 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
502 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
505 2005-07-09 Christopher Faylor <cgf@timesys.com>
507 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
508 relocation by default.
509 (compute_dll_image_base): Avoid linking into cygwin dll address space.
511 2005-07-08 Alan Modra <amodra@bigpond.net.au>
513 * ldlang.c (wild_sort): Formatting.
514 (strip_excluded_output_sections): Strip zero size sections here.
515 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
516 (gld*_finish): Don't call the above.
517 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
518 * emultempl/ppc64elf.em (ppc_finish): Likewise.
520 2005-07-05 Paul Brook <paul@codesourcery.com>
522 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
523 (eelf32ppcvxworks.o): Add dependencies.
524 * Makefile.in: Regenerate.
525 * configure.tgt: Add entry for powerpc-vxworks.
526 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
527 * emulparams/elf32ppcvxworks.sh: New file.
528 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
529 (is_ppc_elf32_vec): New function.
530 (ppc_after_open, ppc_before_allocation,
531 gld${EMULATION_NAME}_after_allocation): Use it.
533 2005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
535 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
536 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
538 2005-07-04 Mike Frysinger <vapier@gentoo.org>
540 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
543 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
545 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
547 2005-07-04 Aurelien Jarno <aurel32@debian.org>
549 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
551 2005-07-01 Alan Modra <amodra@bigpond.net.au>
553 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
555 2005-06-30 Ben Elliston <bje@gnu.org>
557 * Makefile.am (check-DEJAGNU): Don't search for expect.
558 * Makefile.in: Regenerate.
560 2005-06-30 Ben Elliston <bje@gnu.org>
562 * Makefile.am (EXPECT): Set to expect.
563 (RUNTEST): Likewise, set to runtest.
564 * Makefile.in: Regenerate.
566 2005-06-16 Alexander Klimov <alserkli@inbox.ru>
568 * emultempl/armelf.em: Add quotes to avoid a null test
571 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
573 * ld.texinfo (Command Line Options): Add @item for --hash-size.
575 2005-06-10 Alan Modra <amodra@bigpond.net.au>
577 * scripttempt/elf.sc (.bss): Align tail in a way that allows
578 empty section pruning.
580 2005-06-09 Steve Ellcey <sje@cup.hp.com>
582 * configure.in (AM_BINUTILS_WARNINGS): Add.
583 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
584 * config.in: Regenerate.
585 * configure: Regenerate.
586 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
589 2005-06-09 Alan Modra <amodra@bigpond.net.au>
591 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
593 2005-06-09 Alan Modra <amodra@bigpond.net.au>
595 * ld.h (lang_phase_type): Move to..
596 * ldexp.h: ..here. Add lang_mark_phase_enum.
597 (node_type): Remove etree_undef and etree_unspec.
598 (exp_data_seg): Delete.
599 (struct ldexp_control, expld): New.
600 (invalid, exp_mark_used_section): Delete.
601 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
602 exp_get_abs_int): Update prototypes.
603 * ldexp.c (assigning_to_dot): Delete.
605 (make_abs): Operate directly on expld.result. Update all callers.
606 (new_abs): Likewise. Return void.
607 (new_rel_from_abs): Rename from new_rel_from_section.
608 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
610 (fold_unary): Operate on expld.result and return void. Remove
611 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
612 params. Update all callers.
613 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
614 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
615 (fold_unary <ABSOLUTE>): Use make_abs.
616 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
618 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
619 (fold_binary <'%','/'>): Don't error if marking.
620 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
622 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
624 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
625 (exp_fold_tree_1): Don't error when marking.
626 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
627 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
628 current section, instead check for NULL dotp.
629 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
630 source unless the symbol is referenced and undefined.
631 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
633 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
634 and "mark_used" params. Save params to expld. Update all callers.
635 (exp_assop): Do without temp var.
636 (exp_print_tree <etree_undef>): Delete code.
637 (exp_get_vma): Remove "allocation_done" param. Correct error return.
638 (exp_get_fill, exp_get_abs_int): Likewise.
639 (exp_get_value_int): Remove "allocation_done" param.
640 (exp_mark_used_section): Delete.
641 * ldgram.y (fill_exp): Update exp_get_fill call.
642 (origin_spec, length_spec): Update exp_get_vma call.
643 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
644 (lang_mark_used_section_1, lang_mark_used_section): Delete.
645 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
646 marking mode. Merge old lang_mark_used_section code. Correct handling
647 of output sections with excluded input sections and data statements.
648 Don't drop non-zero sized sections. Don't zap os->bfd_section.
649 Do set SEC_EXCLUDE when appropriate.
650 (print_output_section_statement): Update for changed ldexp.c
652 (print_assignment, lang_size_sections_1): Likewise.
653 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
654 (lang_new_phdr, lang_record_phdrs): Likewise.
655 (lang_size_sections): Likewise.
656 (insert_pad): Use following statement if it is a pad, rather than
658 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
659 process ignored output section to set vma and lma, but don't
660 update dot for these sections. Don't error if marking.
661 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
662 update dot for ignored sections.
663 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
664 section with SEC_ALLOC.
665 (one_lang_size_sections_pass): New function.
666 (lang_size_sections): Remove first five params. Set expld.phase on
667 entry and exit. Use one_lang_size_sections_pass.
668 (lang_do_assignments): Remove all params. Update all callers.
669 (lang_reset_memory_regions): Clear os->processed for all output
671 * ldlang.h (lang_do_assignments): Update prototype.
672 (lang_size_sections): Likewise.
673 (one_lang_size_sections_pass): Declare.
674 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
675 lang_size_sections and lang_do_assignments calls.
676 * emultempl/elf32.em (layout_sections_again): Likewise.
677 * emultempl/ppc64elf.em (ppc_before_allocation): Use
678 one_lang_size_sections_pass.
680 2005-06-08 Aldy Hernandez <aldyh@redhat.com>
682 * emulparams/elf32ms1.sh: New.
684 2005-06-07 Eric Christopher <echristo@redhat.com>
686 * Makefile.am (eelf32ms1.c): Use tab.
687 * Makefile.in: Regenerate.
689 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
690 Michael Snyder <msnyder@redhat.com>
691 Stan Cox <scox@redhat.com>
693 * configure.tgt: Same.
695 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
696 (eelf32ms1.c): Add eelf32ms1.c rule.
698 * Makefile.in: Regenerate.
700 2005-06-06 Alan Modra <amodra@bigpond.net.au>
702 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
705 2005-06-05 H.J. Lu <hongjiu.lu@intel.com>
707 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
708 section only if the symbol will be defined.
710 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
713 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
714 section for etree_assign, etree_provide and etree_provided.
715 Call fold_binary on etree_binary.
717 * ldlang.c (lang_mark_used_section_1): Handle load base.
719 2005-06-03 Alan Modra <amodra@bigpond.net.au>
721 * ldmain.c (link_callbacks): Add einfo.
722 (add_archive_element): Use passed info, not link_info.
723 (constructor_callback): Likewise.
724 (reloc_overflow): Don't handle null bfd specially.
725 (reloc_dangerous, unattached_reloc): Likewise.
726 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
727 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
729 2005-06-02 Alan Modra <amodra@bigpond.net.au>
731 * ldexp.h (etree_value_type): Use "asection *" in place of
732 "struct lang_output_section_statement_struct *" for "section".
733 (exp_fold_tree): Likewise.
734 (exp_mark_used_section): Likewise.
735 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
736 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
737 exp_mark_used_section): Likewise for "current_section" param.
738 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
739 exp_get_abs_int): Adjust for above changes.
740 * ldlang.c (lang_mark_used_section_1, print_assignment,
741 lang_size_sections_1, lang_do_assignments_1): Likewise.
742 * ldexp.c (fold_name): Init entire result struct.
744 2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
746 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
748 2005-05-31 Zack Weinberg <zack@codesourcery.com>
750 * ldlang.c (entry_symbol_default): New file-scope global.
751 (lang_finish): Use it, not a hardwired "start".
752 (lang_default_entry): Set it.
753 * ldlang.h: Declare lang_default_entry.
754 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
755 not lang_add_entry, to override default entry point symbol.
757 2005-05-29 Richard Henderson <rth@redhat.com>
759 * emulparams/elf64alpha.sh (PLT): New.
761 * emultempl/alphaelf.em (disable_relaxation): New.
762 (limit_32bit): Rename from elf64alpha_32bit; update all users.
763 (elf64_alpha_use_secureplt): Declare.
764 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
765 (alpha_after_open): New.
766 (alpha_before_allocation): New.
767 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
768 (PARSE_AND_LIST_LONGOPTS): Include them.
769 (PARSE_AND_LIST_OPTIONS): Likewise.
770 (PARSE_AND_LIST_ARGS_CASES): Likewise.
771 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
772 * scripttempl/elf.sc (TEXT_PLT): New.
775 2005-05-27 Andreas Schwab <schwab@suse.de>
777 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
779 2005-05-24 Alan Modra <amodra@bigpond.net.au>
781 * emultempl/ppc32elf.em (after_allocation): Don't call
782 ppc_elf_set_sdata_syms when relocatable.
784 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
786 * Makefile.am (ld.1): Revert the last 2 changes.
787 (info-recursive): Depend on ld.1.
788 * Makefile.in: Regenerated.
790 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
792 * Makefile.am (ld.1): Depend on "info" instead of
793 "configdoc.texi ldver.texi".
794 * Makefile.in: Regenerated.
796 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
798 * Makefile.am (ld.1): Depend on "info".
799 * Makefile.in: Regenerated.
801 2005-05-19 Zack Weinberg <zack@codesourcery.com>
803 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
804 * Makefile.in: Regenerate.
806 2005-05-17 Zack Weinberg <zack@codesourcery.com>
808 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
810 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
812 * Makefile.am (ldver.texi): Don't use $<.
813 * Makefile.in: Regenerated.
815 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
817 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
818 $(srcdir) before $(BFDDIR)/doc.
819 * Makefile.in: Regenerated.
821 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
824 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
825 take take a bfd_boolean, mark_used. Ignore assert failure if
827 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
828 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
829 mark_used and pass down.
830 (fold_unary): Likewise.
831 (fold_binary): Likewise.
832 (fold_trinary): Likewise.
833 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
834 (exp_trinop): Likewise.
835 (exp_unop): Likewise.
836 (exp_nameop): Likewise.
837 (exp_get_vma): Likewise.
838 (exp_get_fill): Likewise.
839 (exp_get_abs_int): Likewise.
840 (fold_name): Likewise. Set SEC_KEEP in output section flags.
841 (exp_mark_used_section): New.
843 * ldexp.h (exp_mark_used_section): New.
845 * ldlang.c (lang_output_section_statement_lookup_1): Set the
846 ignored field to FALSE.
847 (lang_mark_used_section_1): New.
848 (lang_mark_used_section): Call lang_mark_used_section_1.
849 (strip_excluded_output_sections): Call lang_mark_used_section
850 and check for unused sections.
851 (lang_size_sections_1): Skip an output section if it should
853 (lang_do_assignments_1): Likewise.
854 (lang_process): Don't call lang_mark_used_section here.
856 * ldlang.h (lang_output_section_statement_type): Change
857 all_input_readonly to bitfield. Add ignored.
859 2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
860 Peter S. Mazinger" <ps.m@gmx.net>
862 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
863 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
865 2005-05-17 Julian Brown <julian@codesourcery.com>
867 * ldlang.c (print_assignment): Do not rely upon a valid result
868 having a section associated with it.
870 2005-05-17 Nick Clifton <nickc@redhat.com>
872 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
873 see if the same value is being used on the rhs as on the lhs.
874 (print_assignment): Call scan_for_self_assignment and if it
875 returns true, do no display the result of the computation but
876 instead just the final value of the symbol on the lhs.
877 * ld.texinfo: Document this behaviour and provide an example of
880 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
882 * Makefile.am (AM_MAKEINFOFLAGS): Define.
884 (ldver.texi): Depend on distributed files instead of built files.
885 (ld.info): Include $(srcdir) in the rule target. Remove actions.
886 (ld.dvi): Remove actions.
887 (MAINTAINERCLEANFILES): Add configdoc.texi.
888 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
889 (install-data-local): Renamed from install.
890 (Makefile): Remove explicit dependency.
891 * acinclude.m4: Remove obsolete code.
892 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
893 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
895 2005-05-11 Bob Wilson <bob.wilson@acm.org>
897 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
898 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
900 2005-05-11 Alan Modra <amodra@bigpond.net.au>
902 * ldgram.y: Add SPECIAL token.
903 (sect_constraint): Handle SPECIAL.
904 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
905 (map_input_to_output_sections): Likewise.
906 * ldlex.l (SPECIAL): Define.
907 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
908 GOT, PLT, GOTPLT): Define.
909 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
910 (ppc_after_open): New function.
911 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
912 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
913 (PARSE_AND_LIST_OPTIONS): Document them.
914 (PARSE_AND_LIST_ARGS_CASES): Handle them.
915 (LDEMUL_AFTER_OPEN): Define.
916 * scripttempl/elf.sc (PLT): Don't override existing define.
917 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
918 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
920 2005-05-10 Alan Modra <amodra@bigpond.net.au>
922 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
923 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
924 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
925 DATA_SEGMENT_RELRO_END in script.
927 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
929 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
930 Don't use a removed section.
932 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
934 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
935 is defined in the ABS section.
937 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
939 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
940 Put back !link_info.relocatable.
942 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
945 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
946 Just check link_info.executable.
948 2005-05-06 Nick Clifton <nickc@redhat.com>
950 * Update the address and phone number of the FSF organization in
951 the GPL notices in the following files:
952 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
953 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
954 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
955 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
956 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
957 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
958 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
959 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
960 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
961 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
962 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
963 emultempl/m68kcoff.em, emultempl/m68kelf.em,
964 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
965 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
966 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
967 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
968 emultempl/vanilla.em, emultempl/xtensaelf.em
970 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
972 * scripttempl/elf.sc: Document the usage of __bss_start.
974 2005-05-05 Paul Brook <paul@codesourcery.com>
976 * Makefile.am: Add eelf_i386_vxworks.
977 * Makefile.in: Regenerate.
978 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
979 * emulparams/elf_i386_vxworks.sh: New file.
980 * emulparams/vxworks.sh: New file.
981 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
983 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
985 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
986 Call _bfd_elf_provide_section_bound_symbols.
988 2005-05-04 Alan Modra <amodra@bigpond.net.au>
990 * ldemul.c: Include bfdlink.h.
991 (ldemul_before_allocation): Assume before_allocation is non-zero.
992 (before_allocation_default): Call strip_excluded_output_sections.
993 * ldlang.c (stripped_excluded_sections): New variable.
994 (lang_add_section): Build input section list for each output
995 section, attached via map_head and map_tail pointers.
996 (strip_excluded_output_sections): Make global. Traverse the
997 input section lists to find which output sections can go. Clear
998 link_order pointers and set stripped_excluded_sections.
999 (lang_process): Call strip_excluded_output_sections.
1000 * ldlang.h (strip_excluded_output_sections): Declare.
1001 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
1002 * emultempl/aix.em (before_allocation): Call
1003 strip_excluded_output_sections.
1004 * emultempl/armcoff.em (before_allocation): Likewise.
1005 * emultempl/beos.em (before_allocation): Likewise.
1006 * emultempl/linux.em (before_allocation): Likewise.
1007 * emultempl/pe.em (before_allocation): Likewise.
1008 * emultempl/sunos.em (before_allocation): Likewise.
1009 * emultempl/elf32.em (before_allocation): Likewise. Call
1010 bfd_elf_size_dynsym_hash_dynstr too.
1011 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
1012 (ld_lnk960): Use before_allocation_default.
1014 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
1016 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
1017 Updated for bfd_section_list_remove change.
1018 * ldlang.c (lang_insert_orphan): Likewise.
1019 (strip_excluded_output_sections): Likewise.
1020 (sort_sections_by_lma): New.
1021 (lang_check_section_addresses): Sort the sections before
1024 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
1026 * configure.tgt: Add h8300*-*-rtemscoff.
1027 Switch h8300*-*-rtems* to elf.
1029 2005-04-29 Ben Elliston <bje@au.ibm.com>
1031 * ldgram.y (lang_memory_region_type): Make static.
1032 (ldgram_want_filename): Likewise.
1033 * ldemul.c (ld_emulation): Make static.
1034 * ldfile.h (ldfile_find_command_file): Remove extern.
1035 * ldfile.c (ldfile_find_command_file): Make static.
1036 * ldlang.h (unique_section_list): Remove extern declaration.
1037 * ldlang.c (unique_section_list): Make static.
1038 * mri.h (symbol_truncate): Remove extern declaration.
1039 * mri.c (symbol_truncate): Make static.
1040 (order, only_load, address, alias): Likewise.
1041 (alignment, subalignment): Likewise.
1043 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
1045 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1046 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
1047 last SEC_ALLOC section if such a section doesn't exist.
1049 2005-04-24 Mark Kettenis <kettenis@gnu.org>
1051 * configure.host: Add *-*-openbsd support.
1053 2005-04-15 Julian Brown <julian@codesourcery.com>
1055 * ld.texinfo: Document --use-blx.
1056 * emultempl/armelf.em (use_blx): New variable.
1057 (arm_elf_create_output_section_statements): Communicate value of
1059 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
1060 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
1061 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
1063 2005-04-14 Alan Modra <amodra@bigpond.net.au>
1065 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
1066 * configure.in: Include ../bfd/warning.m4 contents.
1067 * Makefile.in: Regenerate.
1068 * configure: Regenerate.
1070 2005-04-12 Alan Modra <amodra@bigpond.net.au>
1072 * Makefile.am: Run "make dep-am".
1073 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
1074 * Makefile.in: Regenerate.
1075 * config.in: Regenerate.
1077 2005-04-11 Alan Modra <amodra@bigpond.net.au>
1079 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
1080 as_needed libs that were not needed.
1081 (gld${EMULATION_NAME}_check_needed): Likewise.
1083 2005-04-07 Nick Clifton <nickc@redhat.com>
1085 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
1086 ldfile.h can use the lang_input_statement type.
1088 2005-04-06 Jakub Jelinek <jakub@redhat.com>
1090 * ldlang.c: Formatting.
1091 (walk_wild_consider_section): Remember return value from wildcardp.
1092 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
1093 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
1095 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
1097 * ld.h (lean_section_userdata_type): Remove.
1098 (fat_section_userdata_type): Remove file field.
1099 (SECTION_USERDATA_SIZE): Remove.
1100 * ldlang.c (init_os): Eliminate initialization of unused
1101 lean_section_userdata_type.
1103 * ldlang.h (callback_t, walk_wild_section_handler_t): New
1105 (struct lang_wild_statement_struct): Add walk_wild_section_handler
1106 and handler_data fields.
1107 * ldlang.c (callback_t): Removed.
1108 (walk_wild_consider_section, walk_wild_section_general,
1109 section_iterator_callback, find_section, is_simple_wild,
1110 match_simple_wild, walk_wild_section_specs1_wild0,
1111 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
1112 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
1113 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
1115 (lang_add_wild): Call analyze_walk_wild_section_handler.
1116 (walk_wild_section): Renamed to walk_wild_section_general and
1117 created a wrapper function.
1118 (section_iterator_callback_data): New typedef.
1120 2005-04-04 Nick Clifton <nickc@redhat.com>
1122 * configure.in: Add a check for <unistd.h> providing a prototype
1123 for getopt() which is compatible with the one in
1124 include/getopt.h. If so then define HAVE_DECL_GETOPT.
1125 * configure: Regenerate.
1126 * config.in (HAVE_DECL_GETOPT): Add.
1127 * ldemul.c: Include config.h
1128 * lexsup.c: Likewise.
1129 * emultempl/elf32.sc: Likewise.
1131 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1133 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
1134 New function, extracted from static void gld${EMULATION_NAME}_finish.
1135 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
1136 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
1137 * emultempl/ppc64elf.em: Revert last change.
1138 (ppc_layout_sections_again): Use
1139 gld${EMULATION_NAME}_layout_sections_again.
1140 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
1141 gld${EMULATION_NAME}_strip_empty_sections and
1142 gld${EMULATION_NAME}_provide_init_fini_syms.
1143 * emultempl/hppaelf.em: Similarly.
1145 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1147 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
1148 (ppc_finish): Don't call bfd_elf_discard_info.
1149 * emultempl/hppaelf.em: Similarly.
1151 2005-03-24 Nick Clifton <nickc@redhat.com>
1153 * po/fr.po: Updated French translation.
1155 2005-03-23 Mike Frysinger <vapier@gentoo.org>
1156 Nick Clifton <nickc@redhat.com>
1158 * configure.host: Accept any C library to accompany a GNU Linux
1159 implementation, not just the GNU C library.
1160 * configure.tgt: Likewise.
1161 * emultempl/elf32.em: Likewise.
1163 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
1165 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
1166 (gld${EMULATION_NAME}_finish): Call
1167 gld${EMULATION_NAME}_provide_bound_symbols to provide
1168 __preinit_array_start, __preinit_array_end, __init_array_start,
1169 __init_array_end, __fini_array_start and __fini_array_end.
1171 * scripttempl/elf.sc: Don't provide __preinit_array_start,
1172 __preinit_array_end, __init_array_start, __init_array_end,
1173 __fini_array_start nor __fini_array_end.
1175 2005-03-23 Alan Modra <amodra@bigpond.net.au>
1177 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
1178 SEC_EXCLUDE on .gnu.warning sections.
1180 2005-03-22 Alan Modra <amodra@bigpond.net.au>
1182 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1184 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1186 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1188 (LDEMUL_AFTER_ALLOCATION): Define.
1190 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1192 * emultempl/ppc64elf.em (ppc_finish): Rename from
1193 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
1194 (LDEMUL_FINISH): Update.
1195 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1196 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1198 2005-03-18 Julian Brown <julian@codesourcery.com>
1200 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1202 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1203 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1205 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
1207 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1208 bfd_section when removing unused empty output sections for
1209 non-relocatable link.
1211 2005-03-19 Alan Modra <amodra@bigpond.net.au>
1213 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1214 traversing the bfd section list to find pointer to new section.
1216 2005-03-18 Alan Modra <amodra@bigpond.net.au>
1218 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1219 input sections into .sdata and .sbss output respectively.
1221 2005-03-16 David Heine <dlheine@tensilica.com>
1222 Bob Wilson <bob.wilson@acm.org>
1224 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1225 (lang_check_section_addresses): Ignore zero size sections here.
1227 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
1229 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1230 unused empty output sections for non-relocatable link.
1232 * ld.h (args_type): Remove gc_sections.
1234 * ldlang.c (lang_mark_used_section): New.
1235 (lang_gc_sections): Use link_info.gc_sections instead of
1236 command_line.gc_sections.
1237 * ldmain.c (main): Likewise.
1238 * lexsup.c (parse_args): Likewise.
1239 * ldlang.c (lang_process): Call lang_mark_used_section.
1241 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1243 2005-03-16 Nick Clifton <nickc@redhat.com>
1244 Ben Elliston <bje@au.ibm.com>
1246 * configure.in (werror): New switch: Add -Werror to the
1247 compiler command line. Enabled by default. Disable via
1249 * configure: Regenerate.
1251 2005-03-16 Alan Modra <amodra@bigpond.net.au>
1253 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1254 (OTHER_RELRO_SECTIONS): Set this instead.
1256 2005-03-15 Nick Clifton <nickc@redhat.com>
1258 * NEWS: Add cutoff for changes in 2.16 release.
1260 2005-03-15 Mikkel Krautz <krautz@gmail.com>
1262 * configure.tgt (x86_64-elf): Add target.
1264 2005-03-15 Alan Modra <amodra@bigpond.net.au>
1266 * po/es.po: Commit new Spanish translation.
1268 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1270 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1271 Tidy etree_assert case.
1273 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1275 * po/tr.po: Commit new Turkish translation.
1277 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1279 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1280 * Makefile.in: Regenerated.
1281 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1283 2005-03-07 Nick Clifton <nickc@redhat.com>
1285 * po/fr.po: Updated translation.
1287 2005-03-05 Alan Modra <amodra@bigpond.net.au>
1289 * po/ld.pot: Regenerate.
1291 2005-03-02 Jan Beulich <jbeulich@novell.com>
1293 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1294 * pe-dll.c (pe_dll_generate_implib): Likewise.
1296 2005-02-24 Ben Elliston <bje@au.ibm.com>
1298 * ldfile.c: Remove GNU960 conditional code.
1299 * emultempl/gld960.em: Likewise.
1300 * emultempl/gld960c.em: Likewise.
1301 * emultempl/lnk960.em: Likewise.
1303 2005-02-24 Nick Clifton <nickc@redhat.com>
1305 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1306 empty string from calls to concat.
1308 2005-02-23 Nick Clifton <nickc@redhat.com>
1310 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1311 arguments passed to concat() with a NULL.
1313 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1314 define types needed by ldfile.h
1316 2005-02-23 Alan Modra <amodra@bigpond.net.au>
1318 * pe-dll.c: Warning fixes.
1319 * emultempl/sunos.em: Likewise.
1321 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1323 * ldlang.c (section_already_linked): Don't call
1324 bfd_section_already_linked for dynamic objects.
1326 2005-02-22 Alan Modra <amodra@bigpond.net.au>
1328 * ldexp.c: Warning fixes.
1329 * ldwrite.c: Likewise.
1330 * emultempl/elf32.em: Likewise.
1332 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1334 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1336 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1337 and ECOFF output only.
1339 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1341 * config.in: Regenerate.
1342 * configure: Regenerate.
1344 2005-02-17 Zack Weinberg <zack@codesourcery.com>
1346 * ldexp.c (assigning_to_dot): New global flag.
1347 (fold_name): If assigning_to_dot is true, object immediately to
1348 an undefined symbol.
1349 (exp_fold_tree): Set and clear assigning_to_dot around the
1350 recursive call to exp_fold_tree to process the right-hand side
1351 of an assignment to the location counter.
1353 2005-02-17 Paul Brook <paul@codesourcery.com>
1355 * scripttempl/armbpabi.sc: Add dummy name to version block.
1357 2005-02-17 Alan Modra <amodra@bigpond.net.au>
1359 * ldexp.c (new_abs): Init new.str.
1361 2005-02-15 Mark Mitchell <mark@codesourcery.com>
1363 * configure.in (AC_CHECK_FUNCS): Add glob.
1364 * configure: Regenerated.
1365 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1367 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1368 if HAVE_GLOB is not defined.
1370 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1372 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1373 lib_path if NATIVE is yes.
1375 2005-02-16 Alan Modra <amodra@bigpond.net.au>
1377 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1378 an error creating fake bfd fatal.
1379 (ppc_before_allocation): Continue on after errors.
1380 (gld${EMULATION_NAME}_finish): Likewise.
1382 2005-02-15 Nick Clifton <nickc@redhat.com>
1384 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1385 not declared. It is not used and its presence causes a compile
1388 2005-02-11 Zack Weinberg <zack@codesourcery.com>
1390 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1391 If st.st_ino is zero, do not treat the library as a duplicate.
1393 2005-02-10 Jakub Jelinek <jakub@redhat.com>
1395 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1396 Set BFD_LINKER_CREATED on the stubs bfd.
1397 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1400 2005-02-08 Mark Mitchell <mark@codesourcery.com>
1402 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
1404 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1405 (Image$$ER_RO$$Limit): Likewise.
1406 (SHT$$INIT_ARRAY$$Base): Likewise.
1407 (SHT$$INIT_ARRAY$$Limit): Likeise.
1409 2005-02-10 Ben Elliston <bje@au.ibm.com>
1411 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1413 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
1415 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1416 to include o32 and n64 emulations.
1417 (mips64*-*-linux-gnu*): Likewise.
1419 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
1421 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1422 "warning: " to warning messages.
1424 2005-02-04 Alan Modra <amodra@bigpond.net.au>
1426 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1427 look up symbol for etree_provide here.
1429 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1431 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1433 2005-02-01 Edward Welbourne <eddy@opera.com>
1434 Nick Clifton <nickc@redhat.com>
1436 * ld.texinfo (Source Code Reference): New node describing how to
1437 access linker script defined variables from source code.
1439 2005-02-01 Alan Modra <amodra@bigpond.net.au>
1441 * ld.texinfo: Clarify --as-needed operation.
1443 2005-01-31 Andrew Cagney <cagney@gnu.org>
1445 * configure: Regenerate to track ../gettext.m4.
1447 2005-01-31 Nick Clifton <nickc@redhat.com>
1449 * ldver.c (ldversion): Bump reported copyright date to 2005.
1451 2005-01-31 Nick Clifton <nickc@redhat.com>
1453 * configure.tgt: Remove obsolete targets m68k-lynxos and
1456 2005-01-28 Julian Brown <julian@codesourcery.com>
1458 * emultempl/armelf.em (fix_v4bx): New variable.
1459 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1461 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1462 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1463 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
1464 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
1465 * NEWS: Mention --fix-v4bx.
1466 * ld.texinfo: Document --fix-v4bx.
1468 2005-01-25 Mark Mitchell <mark@codesourcery.com>
1470 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1471 as to include .ARM.exidx$${Base,Limit}.
1472 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1473 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1474 Put .init_array, .fini_array, etc. into the read-only data
1477 2005-01-25 Alan Modra <amodra@bigpond.net.au>
1479 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1480 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1481 only needed by an as-needed lib that didn't get linked.
1483 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1485 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1486 __DTOR_LIST__ description.
1488 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1490 * ld.texinfo (Location Counter <dot outside sections>): Document
1491 effects of orphan section placement, and ". = ." workaround.
1492 * Makefile.in: Regenerate.
1494 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
1496 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1497 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1499 2005-01-21 Jakub Jelinek <jakub@redhat.com>
1501 * ldgram.y (AS_NEEDED): New token.
1502 (input_list): Handle AS_NEEDED ( input_list ).
1503 * ldlex.l (AS_NEEDED): Add.
1504 * ld.texinfo: Document AS_NEEDED ().
1505 * NEWS: Mention AS_NEEDED ().
1507 2005-01-21 Ben Elliston <bje@au.ibm.com>
1509 * ldlang.c (lang_reasonable_defaults): Remove.
1510 (lang_process): Don't call lang_reasonable_defaults.
1512 * ldexp.c (exp_assop): Remove #if 0'd code.
1513 (exp_print_tree): Likewise.
1514 * ldlang.c (lang_memory_region_lookup): Likewise.
1515 (open_output): Likewise.
1516 (lang_do_assignments_1): Likewise.
1517 (lang_place_orphans): Likewise.
1518 (lang_enter_output_section_statement): Likewise.
1519 (lang_reasonable_defaults): Likewise.
1520 * ldlang.h (struct lang_input_statement_struct): Likewise.
1521 * mri.c (mri_draw_tree): Likewise.
1522 (mri_load): Likewise.
1523 * pe-dll.c (generate_reloc): Likewise.
1524 (make_import_fixup_entry): Likewise.
1525 (pe_as16): Likewise.
1526 * emultempl/beos.em (set_pe_subsystem): Likewise.
1527 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1528 * emultempl/pe.em: Likewise.
1529 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1531 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1533 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1534 (earmelfb_linux_eabi.c): New target.
1535 * Makefile.in: Regenerated.
1536 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1537 * emulparams/armelfb_linux_eabi.sh: New file.
1539 2005-01-20 Nick Hudson <skrll@netbsd.org>
1542 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1543 Handle bfd_elf32_hppa_nbsd_vec.
1545 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
1547 * ldmain.h (ld_sysroot): Change type to a constant string.
1548 * ldmain.c (ld_sysroot): Likewise.
1549 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1550 support for changing the sysroot.
1551 (main): Call the new functions.
1552 * lexsup.c (OPTION_SYSROOT): New.
1553 (ld_options): Add --sysroot.
1554 (parse_args): Add a dummy handler for it.
1555 * ld.texinfo (--sysroot): Document.
1556 * NEWS: Mention the new --sysroot option.
1558 2005-01-18 Alan Modra <amodra@bigpond.net.au>
1560 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1561 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1564 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1566 * defilep.y (def_name, def_library): Combine into...
1567 (def_image_name): New function. Strip name to basename,
1570 2005-01-12 Mark Kettenis <kettenis@gnu.org>
1572 * configure.in: Be sure to invoke config.sub using the shell.
1573 * configure: Regenerate.
1575 2005-01-11 Alan Modra <amodra@bigpond.net.au>
1577 * configure.host: Correct sed patterns for last change.
1579 2005-01-10 Nick Clifton <nickc@redhat.com>
1582 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1583 to determine whether config.make_executable should be set to FALSE in
1584 conjunction with config.fatal_warnings.
1585 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1586 (einfo): Pass TRUE as the extra argument.
1588 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
1590 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1591 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1592 (ia64-*-aix): Delete - this target is obsolete, and would be
1593 broken by this patch.
1595 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1597 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1598 (sparc64-sun-solaris2*): New host.
1600 2005-01-06 Paul Brook <paul@codesourcery.com>
1602 * Makefie.am: Add earmelf_vxworks.
1603 * Makefile.in: Regenerate.
1604 * configure.tgt: Make arm-*-vxworks a separate case.
1605 * emulparams/armelf_vxworks.sh: New function.
1607 2005-01-06 Alan Modra <amodra@bigpond.net.au>
1609 * emultempl/ppc64elf.em (no_multi_toc): New var.
1610 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1611 (OPTION_NO_MULTI_TOC): Define.
1612 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1613 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1615 2005-01-05 Nick Clifton <nickc@redhat.com>
1618 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
1619 Standard's specification for parsable error messages.
1621 2005-01-04 Paul Brook <paul@codesourcery.com>
1623 * Makefile.am: Correct dependency for earmsymbian.c.
1624 * Makefile.in: Regenerate.
1626 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1628 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1629 lang_add_entry to FALSE.
1631 2004-12-23 Nick Clifton <nickc@redhat.com>
1634 * emulparams/shelf.sh (.stack): Increase stack start address to
1637 2004-12-20 Nick Clifton <nickc@redhat.com>
1639 * ldmain.c (main): Issue an error message if -static and -shared
1642 2004-12-17 Jakub Jelinek <jakub@redhat.com>
1644 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1645 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1646 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1647 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1648 PT_GNU_RELRO segment end.
1650 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1652 * configure.tgt: Add s390x-ibm-tpf support.
1654 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1656 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1659 2004-12-07 Ben Elliston <bje@gnu.org>
1661 * ldemul.h: Forward declare struct option.
1663 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1665 * scripttempl/pe.sc (.data): Add .jcr subsection.
1667 2004-11-30 Paul Brook <paul@codesourcery.com>
1669 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1671 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1673 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1674 * Makefile.in: Regenerate.
1676 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1678 * emultempl/pe.em: Add --subsystem:xbox as well as
1680 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1681 and numeric subsystems.
1683 2004-11-24 Alan Modra <amodra@bigpond.net.au>
1685 * ldexp.c (fold_name): Correct PR 338 fix.
1687 2004-11-19 Mark Mitchell <mark@codesourcery.com>
1689 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1690 (earmelf_linux_eabi.c): New target.
1691 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1692 * emulparams/armelf_linux_eabi.sh: New file.
1693 * Makefile.in: Regenerated.
1695 2004-11-19 Nick Clifton <nickc@redhat.com>
1698 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1699 LENGTH fields in the MEMORY command, to explicitly state that
1700 symbols cannot be used in their expressions.
1702 2004-11-19 Jon Beniston <jon@beniston.com>
1704 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1705 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
1706 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
1707 which return the length and origin of a memory.
1708 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1709 * NEWS: Mention support for ORIGIN and LENGTH operators.
1711 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1713 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1714 a dynamic object for stubs.
1716 2004-11-04 Paul Brook <paul@codesourcery.com>
1718 * ld.texinfo: Document --default-imported-symver.
1719 * ldmain.c (main): Set link_info.default_imported_symver.
1720 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1721 (ld_options): Add --default-imported-symver.
1722 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1724 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1725 Vineet Sharma <vineets@noida.hcltech.com>
1727 * Makefile.am: Add entries for new maxq-coff target.
1728 * Makefile.in: Regenerate.
1729 * configure.tgt: Add support for maxq.
1730 * emulparams/maxqcoff.sh: New File.
1731 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1732 * NEWS: Mention the new target.
1734 2004-11-04 Daniel Jacobowitz <dan@debian.org>
1736 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1737 (earmelf_oabi.c): Remove rule.
1738 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1739 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1740 * Makefile.in: Regenerated.
1742 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
1744 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1745 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1746 (FINI_START): Ditto.
1747 (INIT_END): Remove emitted "jump [sp+]".
1750 2004-11-04 Alan Modra <amodra@bigpond.net.au>
1752 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1753 (no_opd_opt, no_toc_opt): New static vars.
1754 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1756 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1757 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1758 (PARSE_AND_LIST_OPTIONS): Describe new options.
1759 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1761 2004-10-27 Nick Clifton <nickc@redhat.com>
1763 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1764 parameter to invocation of lang_section_start.
1765 * emultempl/aix.em (_handle_option): Likewise.
1767 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1768 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1769 * Makefile.in: Regenerate.
1771 2004-10-26 Mark Mitchell <mark@codesourcery.com>
1773 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1774 __exidx_{start,end} when not relocating.
1776 2004-10-25 Mark Mitchell <mark@codesourcery.com>
1778 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1779 * ldexp.h (segment_type): New type.
1780 (segments): New variable.
1781 * ldexp.c (segments): New variable.
1782 (exp_print_token): Handle SEGMENT_START.
1783 (fold_binary): Likewise.
1784 * ldgram.y (SEGMENT_START): Declare it as a token.
1785 (exp): Handle SEGMENT_START.
1786 * ldlang.h (lang_address_statement_type): Add segment field.
1787 (lang_section_start): Change prototype.
1788 * ldlang.c (map_input_to_output_sections): Do not process section
1789 assignments if a corresponding SEGMENT_START has already been
1791 (lang_section_start): Add segment parameter.
1792 * ldlex.l (SEGMENT_START): Add it.
1793 * lexsup.c (seg_segment_start): New function.
1794 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1795 * ld.texinfo (SEGMENT_START): Document it.
1796 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1797 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1798 base addresses. Do not map relocations.
1799 * NEWS: Mention SEGMENT_START.
1801 2004-10-26 Paul Brook <paul@codesourcery.com>
1803 * ld.texinfo: Document --default-symver.
1804 * ldmain.c (main): Set link_info.create_default_symver.
1805 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1806 (ld_options): Add default-symver.
1807 (parse_args): Handle OPTION_DEFAULT_SYMVER.
1809 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
1811 * pe-dll.c (process_def_file): Don't export all symbols by default if
1812 building a position-independent executable.
1814 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1817 * ldmain.c (reloc_overflow): Accept a pointer to struct
1818 bfd_link_hash_entry. Report symbol location for relocation
1821 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1823 * genscripts.sh (libpath.exp): Really generate for first
1826 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
1828 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1829 comparison and replacement of filenames.
1831 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
1834 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1835 option on linker script as the one for linker script.
1837 2004-10-16 Daniel Jacobowitz <dan@debian.org>
1839 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1840 (check_excluded_libs): New.
1841 (load_symbols): Call check_excluded_libs.
1842 * ldlang.h (add_excluded_libs): New prototype.
1843 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1844 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1845 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1846 * ld.texinfo (Command Line Variables): Document --exclude-libs.
1847 (Options Specific to i386 PE Targets): Remove --exclude-libs.
1849 2004-10-15 Alan Modra <amodra@bigpond.net.au>
1851 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1852 failing link script assert.
1854 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1856 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
1859 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1860 (SMALL_DATA_DTOR): Set.
1861 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1862 (SMALL_DATA_DTOR): Unset.
1863 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1864 after .data. If SMALL_DATA_DTOR is set, move .dtors after
1867 2004-10-14 Alan Modra <amodra@bigpond.net.au>
1870 * ldlang.h (lang_output_section_statement_type): Make "next" a
1871 struct lang_output_section_statement_struct *.
1872 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
1873 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1874 * ldlang.c (lang_output_section_find_1): Adjust for changed
1875 output_section_statement "next".
1876 (strip_excluded_output_sections): Likewise.
1877 (lang_record_phdrs): Likewise.
1878 (lang_output_section_find_by_flags): New function.
1879 (output_prev_sec_find): Move from pe.em. Adjust iterator.
1880 (lang_insert_orphan): New function. Tail end of elf32.em's
1881 place_orphan merged with that from pe.em. Allow bfd_section to
1882 be placed first. New heuristic for placing new output section
1883 statement in existing script, and accompanying split of __start
1884 symbol alignment into a separate assignment to dot.
1885 (lang_add_section): Consistently use output->bfd_section rather than
1886 an alias, section->output_section.
1887 (map_input_to_output_sections): Rename overly long arg. Move
1888 initialization of data_statement output section to here..
1889 (lang_check_section_addresses): ..from here.
1890 (print_assignment): Correct printing of etree_assert.
1891 (print_all_symbols): Don't bomb if userdata is NULL.
1892 (IGNORE_SECTION): Rearrange.
1893 * emultempl/elf32.em (output_rel_find): Adjust interator.
1894 (output_prev_sec_find): Delete.
1895 (struct orphan_save): Delete.
1896 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1897 flags without creating a duplicate output section statement.
1898 Revise code holding history of various orphan section placements.
1899 Allow orphan sections to place before script specified output
1900 sections. Call lang_output_section_find_by_flags when placement
1901 by name fails. Use lang_insert_orphan.
1902 * emultempl/mmo.em (output_prev_sec_find): Delete.
1903 (struct orphan_save): Delete.
1904 (mmo_place_orphan): Revise code holding history of orphan placement.
1905 Allow orphans to place before existing output sections. Use
1907 * emultempl/pe.em (output_prev_sec_find): Delete.
1908 (struct orphan_save): Delete.
1909 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1912 2004-10-13 Mark Mitchell <mark@codesourcery.com>
1914 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1917 2004-10-13 Alan Modra <amodra@bigpond.net.au>
1920 * ldcref.c (check_section_sym_xref): Delete.
1921 (check_local_sym_xref): New function.
1922 (check_nocrossrefs): Adjust call.
1923 * emultempl/pe.em (struct orphan_save): Add os_tail.
1924 (place_orphan): Backport assorted fixes from elf32.em.
1926 2004-10-12 Bob Wilson <bob.wilson@acm.org>
1928 * emultempl/xtensaelf.em: Use ISO C90 formatting.
1930 2004-10-11 Jakub Jelinek <jakub@redhat.com>
1932 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1933 getline for portability.
1935 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1936 (gld${EMULATION_NAME}_parse_ld_so_conf,
1937 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1938 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1940 2004-10-11 Alan Modra <amodra@bigpond.net.au>
1943 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1944 rejected when linking statically.
1946 2004-10-08 Daniel Jacobowitz <dan@debian.org>
1948 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1950 2004-10-07 Bob Wilson <bob.wilson@acm.org>
1952 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1953 assembler-generated longcall sequences. Describe new --size-opt
1955 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1956 * emultempl/xtensaelf.em (remove_section,
1957 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1958 elf_xtensa_after_open): New.
1959 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1960 OPTION_NO_LITERAL_MOVEMENT): Define.
1961 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1962 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1963 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1964 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1965 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1966 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1967 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1968 * Makefile.am (eelf32xtensa.c): Update dependencies.
1969 * Makefile.in: Regenerate.
1971 2004-10-07 Jeff Baker <jbaker@qnx.com>
1973 * lexsup.c: Handle --warn-shared-textrel option.
1974 (ld_options): Restore alpha sorting of options.
1975 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1976 * ld.texinfo: Add documentation for --warn-shared-textrel.
1977 * NEWS: Added mention of --warn-shared-textrel option.
1979 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
1981 * emultempl/crxelf.em (disable_relaxation): Add.
1982 (crxelf_before_allocation): Enable --relax option by default.
1983 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
1984 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
1985 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
1987 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
1989 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
1990 --sort-section name|alignment.
1992 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
1993 --sort-section name|alignment.
1995 * ld.h (sort_type): New enum.
1996 (wildcard_spec): Change the type of `sorted' to sort_type.
1998 * ldgram.y (SORT): Removed.
1999 (SORT_BY_NAME): Added.
2000 (SORT_BY_ALIGNMENT): Added.
2001 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
2003 (input_section_spec_no_keep): Updated `sorted'.
2004 (statement): Replace SORT with SORT_BY_NAME.
2006 * ldlang.c (compare_section): New function to compare 2
2007 sections with different sorting schemes.
2008 (wild_sort): Updated. Use compare_section.
2009 (update_wild_statements): New function.
2010 (lang_process): Call update_wild_statements before
2011 map_input_to_output_sections.
2013 * ldlex.l (SORT_BY_NAME): New.
2014 (SORT_BY_ALIGNMENT): New.
2015 (SORT): Return SORT_BY_NAME.
2017 * ldmain.c (sort_section): New. Defined.
2018 (main): Initialize it to none.
2020 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
2021 (ld_options): Add an entry for OPTION_SORT_SECTION.
2022 (parse_args): Handle OPTION_SORT_SECTION.
2024 * mri.c (mri_draw_tree): Updated `sorted'.
2026 2004-10-04 Jakub Jelinek <jakub@redhat.com>
2028 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
2029 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
2031 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
2032 and . as second argument.
2033 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
2034 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
2035 (fold_binary): Add it here. Insert padding to make relro_end
2036 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
2037 exp_dataseg_relro_adjust phase just use previously computed
2039 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
2040 relro_adjust here. Call lang_size_sections_1 once more if there
2041 was too big padding at DATA_SEGMENT_RELRO_END.
2042 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
2044 2004-10-01 Paul Brook <paul@codesourcery.com>
2046 * emulparams/armelf.sh: Add unwinding table sections.
2048 2004-09-30 Filip Navara <navaraf@reactos.com>
2050 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
2051 correct base address for position independant executables.
2052 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
2053 executables as DLLs.
2055 2004-09-30 Paul Brook <paul@codesourcery.com>
2057 * ld.texinfo: Document --target2=abs.
2058 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
2060 2004-09-29 Nick Clifton <nickc@redhat.com>
2062 * scripttempl/xstormy16.sc: Only perform the assignments to the
2063 ROM region when not performing a relocatable link. The ROM region
2064 does not start at address 0, but the sections will.
2065 * Makefile.am: Fix linker script dependency for the generation of
2067 * Makefile.in: Regenerate.
2069 2004-09-18 Filip Navara <navaraf@reactos.com>
2071 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
2072 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
2073 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
2075 * scripttempl/pe.sc: Make the virtual address and file offset synced if
2076 the alignment is lower than the target page size.
2078 2004-09-27 Filip Navara <navaraf@reactos.com>
2080 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
2081 def_file_parse to handle pe_def_file if NULL and prevent crash with
2084 2004-09-27 Alan Modra <amodra@bigpond.net.au>
2086 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
2087 --emit-stub-syms automatically when --emit-relocs.
2089 2004-09-24 Paul Brook <paul@codeosurcery.com>
2091 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
2092 .fini_array sections.
2094 2004-09-19 Andreas Schwab <schwab@suse.de>
2096 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
2097 base so that relro end is suitably aligned.
2099 2004-09-17 Paul Brook <paul@codesourcery.com>
2101 * ld.texinfo: Rename arm-specific section. Document --target*
2102 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
2103 * emulparams/armelf_linux.sh: Ditto.
2104 * emulparams/armelf_nbsd.sh: Ditto.
2105 * emultempl/armelf.em: Set default for TARGET2_TYPE.
2106 (target2_type): New variable.
2107 (arm_elf_before_allocation): Don't pass target1_type.
2108 (arm_elf_create_output_section_statements): New function.
2109 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
2110 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
2111 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
2112 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
2113 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
2114 argument to bfd_elf32_arm_process_before_allocation.
2116 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2118 * ldexp.c (fold_name): Update u.undef.next refs.
2119 * emultempl/pe.em: Likewise.
2120 * emultempl/sunos.em: Likewise.
2122 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2124 * Makefile.am: Run "make dep-am".
2125 * Makefile.in: Regenerate.
2126 * config.in: Regenerate.
2127 * configure: Regenerate.
2128 * aclocal.m4: Regenerate.
2129 * po/ld.pot: Regenerate.
2131 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
2133 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
2137 2004-09-16 Alan Modra <amodra@bigpond.net.au>
2139 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
2140 to bfd_elf32_arm_process_before_allocation call.
2142 2004-09-13 Paul Brook <paul@codesourcery.com>
2144 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
2145 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
2147 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
2149 * configure: Regenerated with autconfig 2.13.
2151 2004-09-07 Andreas Schwab <schwab@suse.de>
2153 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
2154 alignment before adjusting DATA_SEGMENT_RELRO_END.
2156 2004-09-06 Mark Mitchell <mark@codesourcery.com>
2158 * emulparams/armsymbian.sh: Use armbpabi script.
2159 * scripttempl/armbpabi.sc: New script.
2161 2004-09-02 Mark Mitchell <mark@codesourcery.com>
2163 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
2164 (earmsymbian.c): New target.
2165 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
2166 * Makefile.in: Regenerated.
2167 * aclocal.m4: Likewise.
2168 * configure: Likewise.
2169 * emulparams/armsymbian.sh: New file.
2171 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2173 * scripttempl/elf32crx.sc: Edit file with comments.
2174 (.init): Add new section.
2176 (.ctor): Control the linkage order.
2179 2004-08-27 Nick Clifton <nickc@redhat.com>
2181 * emultempl/pe.em (after_open): Do not assume that either bfd is
2184 2004-08-26 Alan Modra <amodra@bigpond.net.au>
2186 * ldlang.c (lang_init): Don't compare with TRUE.
2188 2004-08-25 Dmitry Diky <diwil@spec.ru>
2190 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
2191 * scripttempl/elf32msp430.sc: Add .profiler section definition.
2193 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
2195 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2197 2004-08-19 Mark Mitchell <mark@codesourcery.com>
2199 * configure.tgt (arm*-*-symbianelf*): New target.
2200 (arm*-*-eabi*): Likewise.
2202 2004-08-19 Jakub Jelinek <jakub@redhat.com>
2204 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2205 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2206 (OPTION_NON_OVERLAPPING_OPD): Define.
2207 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2208 --non-overlapping-opd option.
2210 2004-08-18 Alan Modra <amodra@bigpond.net.au>
2213 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2214 was already on the undefs list.
2216 2004-08-17 Alan Modra <amodra@bigpond.net.au>
2218 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2219 prefix the symbol field too.
2221 2004-08-13 Alan Modra <amodra@bigpond.net.au>
2223 * ldmain.c (link_callbacks): Remove "error_handler".
2224 * ldmisc.c: Include elf-bfd.h.
2225 (vfinfo): Sort comment. Handle %A. Use %A instead of
2226 bfd_get_section_indent.
2227 (error_handler): Delete.
2228 * ldmisc.h (error_handler): Delete declaration.
2230 2004-08-10 Alan Modra <amodra@bigpond.net.au>
2232 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2233 ppc64_elf_restore_symbols.
2235 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2237 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2238 .toc is too large on relocatable linking.
2240 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2242 * emultempl/ppc64elf.em (ppc_after_open): Delete.
2243 (LDEMUL_AFTER_OPEN): Don't define.
2245 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
2247 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2249 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
2251 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2254 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2256 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2258 2004-07-26 Dmitry Diky <diwil@spec.ru>
2260 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2261 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2263 * configure.tgt: Likewise.
2264 * emulparams/msp430all.sh: Likewise.
2265 * Makefile.in: Regenerate.
2267 2004-07-23 Nick Clifton <nickc@redhat.com>
2269 * emultempl/elf32.em (_place_orphan): Use an already existing
2270 section name if that section does not have any flags set.
2272 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2274 * ldlang.c (already_linked_hash_entry): Removed.
2275 (already_linked): Likewise.
2276 (already_linked_table): Likewise.
2277 (section_already_linked): Call bfd_section_already_linked.
2278 (lang_process): Replace already_linked_table_init with
2279 bfd_section_already_linked_table_init and check return. Replace
2280 already_linked_table_free with bfd_section_already_linked_table_free.
2282 2004-07-21 Nick Clifton <nickc@redhat.com>
2284 * ldlang.c (init_os): Make sure that the newly allocated userdata
2285 structure is zeroed out.
2287 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2289 * NEWS: Mention the new --add-needed/--no-add-needed and
2290 --as-needed/--no-as-needed options.
2292 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2294 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2295 check the add_needed field.
2296 (dt_needed): New struct.
2297 (gld${EMULATION_NAME}_try_needed): Change the first argument
2298 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2299 bit in the file where the DT_NEEDED entry comes from.
2300 (gld${EMULATION_NAME}_search_needed): Change the second
2301 argument to a pointer to struct dt_needed.
2302 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2303 (gld${EMULATION_NAME}_after_open): Likewise.
2305 * ld.texinfo: Add --add-needed document.
2306 * ldlang.c (new_afile): Set p->add_needed.
2307 * ldlang.h (lang_input_statement_type): Add add_needed field.
2308 * ldmain.h (add_needed): Declare.
2309 * ldmain.c (add_needed): New global var.
2310 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2311 OPTION_NO_ADD_NEEDED.
2312 (ld_options): Likewise.
2313 (parse_args): Handle them.
2315 2004-07-13 Christof Petig <christof@petig-baender.de>
2317 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2318 for endian-ness of extracted addend.
2320 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2322 * pe-dll.c (auto_export): Filter on just the import prefix,
2323 "_imp_", not "_imp__".
2325 2004-07-09 Nick Clifton <nickc@redhat.com>
2327 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2329 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2331 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2332 (eelf32crx.c): New target.
2333 * Makefile.in: Regenerate.
2334 * configure.tgt: Handle crx-*-elf*.
2335 * emulparams/elf32crx.sh: New file.
2336 * emultempl/crxelf.em: New file.
2337 * scripttempl/elf32crx.sc: New file.
2338 * NEWS: Mention new target.
2340 2004-07-06 Nick Clifton <nickc@redhat.com>
2342 * Makefile.am: Add eshlsymbian.c.
2343 * Makefile.in: Regenerate.
2344 * configure.tgt: Add sh*-symbian-elf target.
2345 * emulparams/shlsymbian.sh: New file. Configure the
2346 sh-symbian-elf linker scripts.
2347 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2348 template for the sh-symbian-elf target.
2350 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2352 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2353 * emulparams/hppalinux.sh: Likewise.
2354 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2355 data segment and PLT_BEFORE_GOT is defined.
2357 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2359 * ld.texinfo (WIN32): Document PE weak symbols.
2361 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2363 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2365 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2367 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2370 2004-06-29 Alan Modra <amodra@bigpond.net.au>
2372 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2375 2004-06-24 Alan Modra <amodra@bigpond.net.au>
2377 * ldlang.c (print_output_section_statement): Don't print size before
2379 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2381 * ldexp.c (fold_name): .. See below.
2382 * ldlang.c (section_already_linked, print_output_section_statement,
2383 print_input_section, insert_pad, size_input_section,
2384 lang_check_section_addresses, lang_size_sections_1,
2385 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2386 lang_one_common, lang_reset_memory_regions, lang_process,
2387 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2388 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2389 * pe-dll.c (process_def_file, generate_reloc): ..
2390 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2391 gld${EMULATION_NAME}_before_allocation): ..
2392 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2393 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2394 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2395 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2396 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2397 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2398 "size" instead of "_raw_size" and "_cooked_size". Expand
2399 bfd_section_size macro invocations.
2401 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2403 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2404 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2405 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2407 (.tls): Define ___tls_start__ and ___tls_end__.
2409 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
2411 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2413 2004-06-18 Adam Nemet <anemet@lnxw.com>
2415 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2416 * configure: Regenerate.
2418 2004-06-15 Jakub Jelinek <jakub@redhat.com>
2420 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2421 .gcc_except_table output sections lost accidentally with
2424 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2426 * ldwrite.c (build_link_order): Use bfd_get_section_size
2427 instead of bfd_get_section_size_before_reloc or _raw_size.
2428 * pe-dll.c (process_def_file): Likewise.
2430 2004-06-14 Alan Modra <amodra@bigpond.net.au>
2432 From Richard Wirth <r.wirth@wirthware.de>
2433 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2435 2004-05-29 Alan Modra <amodra@bigpond.net.au>
2437 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2438 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2440 2004-05-28 Alan Modra <amodra@bigpond.net.au>
2442 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2444 * lexsup.c: Formatting. Wrap long lines.
2445 * ldwrite.c: Update copyright date.
2447 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2448 (output_section_callback): Nor SEC_KEEP here.
2449 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2450 (lang_gc_wild): Delete. Fold into..
2451 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2453 (lang_process): Always call lang_gc_sections.
2454 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2455 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2458 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2460 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2461 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2462 * ldlang.c (lang_add_section): Likewise.
2464 2004-05-26 Alan Modra <amodra@bigpond.net.au>
2466 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2467 sections when doing a final link. Clear SEC_EXCLUDE when doing
2468 a relocable link, except for SEC_DEBUGGING sections.
2469 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2470 same condition here to drop SEC_EXCLUDE orphan sections.
2472 2004-05-25 Alan Modra <amodra@bigpond.net.au>
2474 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2475 only when not a relocatable link.
2476 (print_input_section): Handle SEC_EXCLUDE sections.
2477 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2478 (lang_do_assignments_1): Likewise.
2479 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2480 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2481 * emultempl/hppaelf.em (build_section_lists): Likewise.
2482 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2483 (build_section_lists): Likewise.
2485 2004-05-23 Andreas Schwab <schwab@suse.de>
2487 * ld.texinfo (Options): Fix typo in last change.
2489 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
2491 * ld.h (ld_config_type): Add new field: hash_table_size.
2492 * ldmain.c: Initialise the new field to zero. If it is non-zero
2493 after parsing the linker's command line call
2494 bfd_hash_set_default_size.
2495 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2496 (ld_options): Add hash-size.
2497 (parse_args): Parse --hash-size option. Allow
2498 --reduce-memory-overheads to set the default hash table size as
2500 * ld.texinfo: Document the new switch. Also mention that
2501 --reduce-memory-overheads can affect the hash table size.
2502 * NEWS: Mention the new feature.
2504 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2506 * NEWS: Mention new linker map file generation and the
2507 --reduce-memory-overheads option.
2508 * ld.texinfo: Document --reduce-memory-overheads option.
2509 * ld.h (map_symbol_def): New struct.
2510 (struct user_section_struct, section_userdata_type): Rename to:
2511 (struct lean_user_section_struct, lean_section_userdata_type).
2512 (struct fat_user_section_struct, fat_section_userdata_type): New.
2513 (SECTION_USERDATA_SIZE): Define.
2514 (args_type): New member reduce_memory_overheads.
2515 * ldlang.c (map_obstack): New static variable.
2516 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2517 (lang_map): Unless command_line.reduce_memory_overheads is set,
2518 initialize lists of defined symbols for each section.
2519 (print_input_section): Unless command_line.reduce_memory_overheads
2520 is set, use print_all_symbols.
2521 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2522 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2523 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2524 (ld_options): Add entry for --reduce-memory-overheads.
2525 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2527 2004-05-19 Jakub Jelinek <jakub@redhat.com>
2529 * ldgram.y (sect_constraint): New.
2530 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2531 (section): Add sect_constraint. Pass additional argument
2532 to lang_enter_output_section_statement.
2533 * mri.c (mri_draw_tree): Pass additional argument to
2534 lang_enter_output_section_statement.
2535 * emultempl/pe.em (place_orphan): Likewise.
2536 (output_prev_sec_find): Disregard output section statements with
2538 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2539 (mmo_place_orphan): Pass additional argument to
2540 lang_enter_output_section_statement.
2541 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2542 statements with constraint == -1.
2543 (place_orphan): Pass additional argument to
2544 lang_enter_output_section_statement.
2545 * ldlang.c (lang_enter_overlay_section): Likewise.
2546 (lang_output_section_find_1): New.
2547 (lang_output_section_find): Use it.
2548 (lang_output_section_statement_lookup_1): New.
2549 (lang_output_section_statement_lookup): Use it.
2550 (check_section_callback, check_input_sections): New.
2551 (map_input_to_output_sections): Check if all input sections
2552 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2553 (strip_excluded_output_sections): Disregard output section statements
2554 with constraint == -1.
2555 (lang_record_phdrs): Likewise.
2556 (lang_enter_output_section_statement): Add constraint argument.
2557 Use lang_output_section_statement_lookup_1.
2558 * ldlang.h (lang_output_section_statement_type): Add constraint
2559 and all_input_readonly fields.
2560 (lang_enter_output_section_statement): Adjust prototype.
2561 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2562 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2563 segment if all input sections are readonly.
2565 2004-05-19 Adam Nemet <anemet@lnxw.com>
2567 * scripttempl/i386lynx.sc: Remove file.
2569 2004-05-17 Bob Wilson <bob.wilson@acm.org>
2571 * ld.texinfo (Output Section Address): Correct subsection name.
2573 2004-05-17 Adam Nemet <anemet@lnxw.com>
2575 * configure.tgt (powerpc-*-lynxos* case): New case.
2576 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2577 * emulparams/ppclynx.sh: New file.
2578 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2579 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2580 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2581 (eppclynx.c): New rule.
2582 * Makefile.in: Regenerate.
2584 2004-05-13 Joel Sherrill <joel@oarcorp.com>
2586 * configure.tgt (or32-*-rtems*): Switch to elf and
2587 support versioned targets.
2589 2004-05-13 Nick Clifton <nickc@redhat.com>
2591 * po/fr.po: Updated French translation.
2593 2004-05-11 Jakub Jelinek <jakub@redhat.com>
2595 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2596 for binaries, -shared and -pie.
2597 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2598 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2599 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2600 (OTHER_RELRO_SECTIONS): ... this.
2601 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2602 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2603 -z relro and -z norelro.
2604 (gld${EMULATION_NAME}_list_options): Add it to usage.
2605 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2606 -z relro scripts when appropriate.
2607 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2608 Create separate .got.plt section if SEPARATE_GOTPLT.
2609 Move sections which are only written during relocation handling
2610 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2611 before .data. Add DATA_SEGMENT_RELRO_END directive.
2612 Include OTHER_RELRO_SECTIONS.
2613 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2614 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2615 (fold_unary): Likewise.
2616 (fold_binary): Handle -z relro.
2617 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2618 exp_dataseg_relro_adjust phases. Add relro_end field.
2619 * ldmain.c (main): Initialize link_info.relro to FALSE.
2620 * ldlang.c (lang_size_sections): Handle -z relro.
2622 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2624 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2626 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2628 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2629 before printing it with %W.
2631 2004-05-07 Brian Ford <ford@vss.fsi.com>
2632 DJ Delorie <dj@redhat.com>
2634 * emultempl/pe.em (real_flags): New static.
2635 (OPTION_LARGE_ADDRESS_AWARE): New define.
2636 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2637 (gld_${EMULATION_NAME}_list_options): Likewise.
2638 (gld${EMULATION_NAME}_handle_option): Likewise.
2639 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2640 * ld.texinfo: Document it.
2643 2004-05-07 Brian Ford <ford@vss.fsi.com>
2645 * NEWS: Mention DWARF 2 support for i386pe.
2647 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
2649 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2652 2004-04-30 Alan Modra <amodra@bigpond.net.au>
2654 * ldlang.c (unique_section_p): Pass section parm, return true on
2656 (output_section_callback): Adjust.
2657 * ldlang.h (unique_section_p): Update prototype.
2658 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2660 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2662 * ld.texinfo (--gc-sections): Remove restriction for
2665 2004-04-29 Brian Ford <ford@vss.fsi.com>
2667 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2668 for DWARF 2/3. Update stab section's syntax.
2670 2004-04-29 Alan Modra <amodra@bigpond.net.au>
2672 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2673 (fill_edata): Correct pointer arithmetic.
2675 2004-04-21 Chris Demetriou <cgd@broadcom.com>
2677 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2678 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2679 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2680 (EXTRA_EM_FILE): Use mipsecoff.em
2681 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2682 (EXTRA_EM_FILE): Use mipsecoff.em
2683 * emultempl/mipsecoff.em: Restructure to be included as an
2684 extra emulation file.
2685 (check_sections, gld${EMULATION_NAME}_after_open)
2686 (gld${EMULATION_NAME}_after_allocation)
2687 (gld${EMULATION_NAME}_get_script)
2688 (ld_${EMULATION_NAME}_emulation): Remove
2689 (gld${EMULATION_NAME}_before_parse): Rename to...
2690 (mipsecoff_before_parse): This.
2691 (LDEMUL_BEFORE_PARSE): Define.
2692 * emultempl/mipself.em: Remove file.
2693 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2694 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2696 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2697 * Makefile.in: Regenerate.
2699 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2701 * ld.texinfo (synthesizing on H8/300): Information about linker
2702 relaxation support for bit manipulation instructions and system
2703 control instructions is added.
2705 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
2707 * NEWS: Mention change in DEFINED semantics.
2709 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2711 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2712 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2713 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2715 2004-04-21 Ben Elliston <bje@au.ibm.com>
2717 * ld.texinfo (Simple Example): Add missing punctuation.
2719 2004-04-20 Chris Demetriou <cgd@broadcom.com>
2721 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2723 2004-04-19 Jakub Jelinek <jakub@redhat.com>
2725 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2728 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2730 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2731 with default priority. Likewise for dtors.
2733 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2735 * configure.host: Remove mips*-dec-bsd* target.
2736 * configure.tgt: Likewise.
2738 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
2740 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2741 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2742 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2743 * emultempl/irix.em: New file.
2744 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2746 * Makefile.in: Regenerate.
2748 2004-04-01 Paul Brook <paul@codesourcery.com>
2750 * emultempl/armelf.em (byteswap_code): Add.
2751 (arm_elf_before_allocation): Pass extra parameter.
2752 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2753 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2754 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2755 * emultempl/armelf_oabi.em: Pass extra parameter.
2756 * ld.texinfo: Document --be8.
2758 2004-03-30 Stan Shebs <shebs@apple.com>
2760 Remove long-obsolete MPW support.
2761 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2762 * Makefile.am (mpw): Remove file-presynthesizing actions.
2763 * Makefile.in: Likewise.
2764 * ldfile.c (slash): Remove MPW case.
2765 * ldlex.l [MPW]: Remove unused definition.
2767 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
2769 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2770 (eelf32cr16c.c): New target.
2771 * Makefile.in: Regenerate.
2772 * configure.tgt: Handle cr16c-*-elf*.
2773 * emulparams/elf32cr16c.sh: New file.
2774 * scripttempl/elfcr16c.sc: Likewise
2775 * NEWS: Mention support for new target.
2777 2004-03-30 Nick Clifton <nickc@redhat.com>
2779 * po/sv.po: Updated Swedish translation.
2781 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2783 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2784 * emultempl/hppaelf.em: Likewise.
2785 * emultempl/ppc64elf.em: Likewise.
2786 * emultempl/sh64elf.em: Likewise.
2788 2004-03-25 Alan Modra <amodra@bigpond.net.au>
2790 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2791 size_dynamic_sections call.
2793 2004-03-23 Alan Modra <amodra@bigpond.net.au>
2796 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2797 link_info.wrap_char.
2799 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2801 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2802 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2804 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
2806 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2808 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2810 * config.in: Regenerate.
2811 * po/ld.pot: Regenerate.
2813 2004-03-18 Alan Modra <amodra@bigpond.net.au>
2815 * ld.texinfo: Add --as-needed doco.
2816 * ldmain.c (as_needed): New global var.
2817 * ldmain.h (as_needed): Declare.
2818 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2819 OPTION_NO_AS_NEEDED.
2820 (ld_options): Likewise.
2821 (parse_args): Handle them.
2822 * ldlang.h (lang_input_statement_type): Add as_needed field.
2823 * ldlang.c (new_afile): Set p->as_needed.
2824 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2825 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2826 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2828 * ldlang.c (open_input_bfds): Remove useless cast.
2829 (lang_do_assignments_1): Likewise.
2830 (lang_for_each_input_section): Delete.
2832 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2834 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2836 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
2838 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2839 private when building implib.
2841 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2843 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2845 (IGNORE_SECTION): Ignore .tbss sections too.
2846 (lang_size_sections_1): .tbss sections do not advance dot.
2848 2004-03-01 Andreas Schwab <schwab@suse.de>
2850 * ld.texinfo (Options): Fix example for --wrap.
2852 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2854 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2857 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
2859 * ldlang.c (lang_check): Use %P, not %E, in error message.
2861 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
2863 * ldlang.h (struct lang_output_section_state): Change processed
2865 * ldexp.c (check, invalid): Remove.
2866 (fold_name): Move valid_p assignments. Create undefined symbol
2867 when needed. Directly exampine section's processd flag.
2868 * ldlang.c (lang_output_section_statement_lookup): Adjust
2869 processed field init.
2870 (lang_size_sections_1): Allow LOADADDR when determining section's
2871 VMA. Adjust error message. Fold data statement's expr.
2872 (lang_size_sections): Correctly increment lang_statement_iteration.
2874 2004-02-23 Alan Modra <amodra@bigpond.net.au>
2876 * ldexp.c (fold_tree): Follow indirect symbols.
2878 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
2880 * ldgram.y (exp): Add two operand ALIGN.
2881 * ldexp.c (fold_binary): Add ALIGN_K case.
2882 * ld.texinfo (ALIGN): Document two operand version.
2884 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
2886 * ldlang.c (map_input_to_output_sections): Initialize sections
2887 mentioned in a data statement expression.
2888 (lang_do_assignments_1): Add data statement's expression's
2891 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
2893 * ldgram.y (statement_anywhere): Add assert rule.
2894 * ldlang.c (exp_init_os): Add assert case.
2896 2004-02-14 Andrew Cagney <cagney@redhat.com>
2898 * ldmain.c (remove_output): Call bfd_cache_close.
2900 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2902 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2903 .MIPS.content* and .MIPS.events* sections.
2905 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2907 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2908 .note.gnu.arm.ident to after allocated sections. Mark its
2911 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2913 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2914 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2915 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2916 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2917 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2919 2004-02-05 Nick Clifton <nickc@redhat.com>
2921 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2923 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
2925 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2927 2004-01-28 Alan Modra <amodra@bigpond.net.au>
2929 * genscripts.sh: Fix typo.
2931 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2933 2004-01-24 Jakub Jelinek <jakub@redhat.com>
2935 * emulparams/elf64_ia64.sh: Put .rela.opd into
2936 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2938 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
2940 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2941 * ld.texinfo (--omagic): Note that writable text section
2942 does not conform to published PE-COFF specs.
2943 (--enable-auto-import): Likewise.
2945 2004-01-15 Alan Modra <amodra@bigpond.net.au>
2947 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2949 2004-01-13 Nick Clifton <nickc@redhat.com>
2951 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2952 which if true will prevent the LMA region being used as a
2953 replacement for a default VMA region.
2954 (lang_leave_output_section_statement): Pass extra parameter.
2955 (lang_leave_overlay): Likewise.
2956 * ld.texinfo (Output Section LMA): Document that the LMA
2957 region can be set to the VMA region if no VMA has been set.
2958 * ldlang.h (struct lang_output_section_phdr_list): Create a
2959 typedef for this type. Minor formatting fixes.
2961 2004-01-13 Nick Clifton <nickc@redhat.com>
2963 * ldlang.c (lang_size_sections_1): If dot is advanced, then
2964 assume that the section should be allocated.
2966 2004-01-13 Alan Modra <amodra@bigpond.net.au>
2968 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2969 sections. Do ignore SEC_NEVER_LOAD sections.
2970 (lang_size_sections_1): Remove test made redundant with the above.
2972 2004-01-09 Alan Modra <amodra@bigpond.net.au>
2974 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2975 program_header_size.
2977 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
2979 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
2980 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2981 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
2982 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
2983 (MAXPAGESIZE): Set to 64Kb.
2984 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
2985 __ROFIXUP_END__. Don't map .rofixup.got any more.
2986 * emulparams/elf32frv.sh (NOP): Set.
2987 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
2988 * configure.tgt: Add frv-*-*linux*.
2989 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2990 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
2991 (eelf32frvfd.c): New.
2992 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
2993 * emulparams/elf32frv.sh: Reverted previous two patches.
2994 * emulparams/elf32frvfd.sh: New.
2995 * Makefile.in: Rebuilt.
2996 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
2997 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
2998 .rofixup.got to .rofixup.
2999 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
3000 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
3001 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
3003 2004-01-05 Jakub Jelinek <jakub@redhat.com>
3005 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
3006 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
3008 2004-01-03 Alan Modra <amodra@bigpond.net.au>
3010 * ldexp.c (align_n): Make static.
3011 * ldexp.h (align_n): Delete declaration.
3012 * ldlang.h (lang_enter_output_section_statement): Remove
3014 * ldlang.c (lang_enter_output_section_statement): Likewise.
3015 (TO_ADDR, TO_SIZE): Define.
3016 (opb_shift): New var.
3017 (init_opb): New function.
3018 (print_input_section): Call init_opb and use TO_ADDR.
3019 (print_data_statement, print_reloc_statement): Likewise.
3020 (print_padding_statement): Likewise.
3021 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
3022 (lang_check_section_addresses): Likewise.
3023 (lang_size_sections_1): Likewise.
3024 (lang_do_assignments_1): Likewise.
3025 (lang_set_startof): Likewise.
3026 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
3027 (lang_process): Call init_opb.
3028 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
3029 (lang_enter_overlay_section): Adjust
3030 lang_enter_output_section_statement call.
3031 * ldgram.y: Likewise.
3032 * mri.c (mri_draw_tree): Likewise.
3033 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3034 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3035 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3037 * ldfile.c (ldfile_set_output_arch): Add defarch param.
3038 * ldfile.h (ldfile_set_output_arch): Ditto.
3039 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
3040 ldfile_set_output_arch.
3041 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3042 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
3043 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
3044 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3045 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
3046 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3047 * ldgram.y: Adjust ldfile_set_output_arch call.
3048 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3049 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
3050 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
3051 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
3052 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
3053 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3054 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3056 2004-01-02 Bernardo Innocenti <bernie@develer.com>
3058 * configure.tgt: Add m68k-uClinux target.
3060 For older changes see ChangeLog-0203
3066 version-control: never