1 2005-11-16 Alan Modra <amodra@bigpond.net.au>
3 * ld.texinfo (Forced Output Alignment): Specify that this is an
4 alignment increase, not an override.
5 * ldlang.c (init_os): Set output section alignment here..
6 (lang_add_section): ..rather than here.
7 (lang_size_sections_1): Consolidate alignment code. Warn if section
8 alignment affects start address when explicit address given.
10 2005-11-07 Steve Ellcey <sje@cup.hp.com>
12 * configure: Regenerate after modifying bfd/warning.m4.
14 2005-11-07 Olaf Hering <olh@suse.de>
16 * ldmain.c (main): Add \n to error message.
18 2005-11-04 Alan Modra <amodra@bigpond.net.au>
20 * ldlang.c (struct output_statement_hash_entry): Don't indirect to os.
21 (output_statement_newfunc): Rewrite.
22 (lang_output_section_find_1): Merge into..
23 (lang_output_section_find): ..here.
24 (lang_output_section_statement_lookup_1): Rewrite to handle
25 multiple sections with the same name.
26 (output_statement_table_init): Commonise error message.
27 (lang_init, open_output): Likewise.
29 2005-11-03 Paul Brook <paul@codesourcery.com>
31 * scripttempl/elf.sc: Add .init_array.* and .fini_array.*.
32 * scripttempl/armbpabi.sc: Make init/fini array consistent with
34 * scripttempl/elf32sh-symbian.sc: Ditto.
35 * scripttempl/elfxtensa.sc: Ditto.
37 2005-11-03 Alan Modra <amodra@bigpond.net.au>
39 * ldlang.h (lang_output_section_statement_type): Rearrange. Remove
40 memspec. Make "processed" a bitfield.
41 (lang_data_statement_type, lang_reloc_statement_type): Rename
42 output_vma to output_offset.
43 * ldlang.c (lang_output_section_statement_lookup_1): Init
44 all_input_readonly. Don't init memspec.
45 (init_os): Remove incorrect comment.
46 (print_data_statement, print_reloc_statement): Adjust for
47 lang_data_statement_type and lang_reloc_statement_type change.
48 (lang_size_sections_1, lang_add_reloc): Likewise.
49 * ldwrite.c (build_link_order): Likewise.
51 2005-10-30 Mark Mitchell <mark@codesourcery.com>
53 * lexsup.c (help): Document "@FILE".
55 2005-10-30 H.J. Lu <hongjiu.lu@intel.com>
57 * Makefile.am: Run "make dep-am".
58 * Makefile.in: Regenerated.
60 * dep-in.sed: Replace " ./" with " ".
62 2005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
64 * Makefile.am: Add support for Z80
65 * Makefile.in: Regenerated
66 * configure.tgt: Add z80-*-coff
67 * emulparams/z80.sh: New file.
68 * emultempl/z80.em: New file.
69 * scripttempl/z80.sc New file.
70 * NEWS: Mention this new support.
72 2005-10-25 Alan Modra <amodra@bigpond.net.au>
74 * po/ld.pot: Regenerate.
76 2005-10-25 Chris Metcalf <cdmetcalf@comcast.net>
78 * ld.texinfo (--reduce-memory-overheads): Fix typo.
80 2005-10-23 H.J. Lu <hongjiu.lu@intel.com>
83 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
84 bfd_match_sections_by_type to match section types.
86 * ldlang.c (init_os): Take the input section. Call
87 bfd_init_private_section_data if the input section isn't NULL.
88 (exp_init_os): Pass NULL to init_os.
89 (map_input_to_output_sections): Likewise.
90 (lang_add_section): Pass the input section to init_os.
92 2005-10-19 Paul Brook <paul@codesourcery.com>
94 * emulparams/armelf.sh: Add .ARM.attributes to OTHER_SECTIONS.
96 2005-10-15 H.J. Lu <hongjiu.lu@intel.com>
99 * emultempl/elf32.em: Include "elf-bfd.h".
100 (gld${EMULATION_NAME}_place_orphan): Check section type and
101 don't use section name for ELF input sections.
103 * ld.texinfo: Document orphan section processing.
105 * ldlang.c (lang_output_section_find_by_flags): Match section
106 types by calling bfd_match_sections_by_type.
108 2005-10-13 Mark Mitchell <mark@codesourcery.com>
110 * ld.texino: Describe double-quoted string syntax for version
112 * ldlang.h (lang_new_vers_pattern): Add literal_p parameter.
113 * ldgram.y (vers_defns): Allow NAME as well as VERS_IDENTIFIER.
114 Adjust calls to lang_new_vers_pattern to pass literal_p argument.
115 * ldlang.c (lang_vers_match): Fix indentation. Do not glob-match
116 version nodes without a pattern.
117 (lang_new_vers_pattern): Add literal_p parameter.
118 (lang_do_version_exports_section): Pass it.
120 2005-10-12 Mark Mitchell <mark@codesourcery.com>
122 * NEWS: Mention @file.
124 2005-10-05 H.J. Lu <hongjiu.lu@intel.com>
127 * ldcref.c (check_refs): Accept bfd_boolean.
128 (check_local_sym_xref): Pass FALSE to check_refs.
129 (check_nocrossref): Pass TRUE to check_refs.
130 (check_refs_info): Add bfd_boolean.
131 (check_refs): Add bfd_boolean to check_refs_info.
132 (check_reloc_refs): Match relocations with proper symbols.
134 * ldmisc.c (vfinfo): Don't add extra ":\n".
136 2005-10-05 Danny Smith <dannysmith@users.sourceforge.net>
138 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
139 default entry symbol to ENTRY here.
140 * scripttempl/pe.sc: Not here.
142 2005-09-30 James E Wilson <wilson@specifix.com>
144 * ldlang.c (lang_startup): Add missing ": " to einfo call.
146 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
148 * Makefile.am: Run "make dep-am".
149 * Makefile.in: Regenerated.
150 * aclocal.m4: Likewise.
152 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
154 * ldlang.c (output_statement_hash_entry): New type.
155 (output_statement_table): New variable for hash table.
156 (output_statement_newfunc): New function.
157 (output_statement_table_init): Likewise.
158 (output_statement_table_free): Likewise.
159 (lang_init): Call output_statement_table_init.
160 (lang_finish): Renamed to ...
162 (lang_process): Updated.
163 (lang_finish): New function.
164 (lang_output_section_find_1): Use hash table.
165 (lang_output_section_statement_lookup_1): Likewise.
167 * ldlang.h (lang_finish): New.
169 * ldmain.c (main): Call lang_finish.
171 2005-09-30 Mark Mitchell <mark@codesourcery.com>
173 * ldmain.c (main): Use expandargv.
175 2005-09-30 Catherine Moore <clm@cm00re.com>
177 * Makefile.am: Bfin support.
178 * Makefile.in: Regenerated.
179 * aclocal.m4: Regenerated.
180 * configure.tgt: Bfin support.
181 * emulparams/bfin.sh: New file.
182 * emultempl/bfin.em: New file.
184 2005-09-30 Matthias Kurz <mk@baerlap.north.de>
186 * ld.h: Prevent the inclusion of <libintl.h> from the Solaris
187 version of <locale.h> when ENABLE_NLS is not defined.
189 2005-09-27 H.J. Lu <hongjiu.lu@intel.com>
191 * ld.texinfo (ALIGN): Document it as forcing output section
194 * ldgram.y (ALIGN): Support it for forcing output section
197 2005-09-20 Alan Modra <amodra@bigpond.net.au>
199 * ldlang.h (lang_output_section_statement_struct): Change type of
200 "processed" to bfd_boolean.
201 * ldexp.c (fold_name): Update references to os->processed.
202 * ldlang.c (lang_output_section_statement_lookup_1): Likewise.
203 (lang_size_sections_1): Likewise.
204 (lang_reset_memory_regions): Likewise.
207 * ldlang.c (lang_size_sections_1): Process addr_tree earlier,
208 so that unused output section statements affect dot.
210 2005-09-08 Jakub Jelinek <jakub@redhat.com>
212 * ld.texinfo: Document -z {no,}execstack, -z {no,}relro
213 and --eh-frame-hdr options.
215 2005-09-07 Alan Modra <amodra@bigpond.net.au>
217 * ldexp.c (fold_name <SIZEOF>): Return 0 for non-existent section.
218 (exp_fold_tree_1): Print assert message only in final stage of
219 linking. Trigger assertion failure if expression cannot be
222 2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
225 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Check
226 --just-symbols on DSO.
228 2005-08-18 Alan Modra <amodra@bigpond.net.au>
230 * scripttempl/elf.sc: Remove commented out defines.
232 2005-08-18 Alan Modra <amodra@bigpond.net.au>
234 * emulparams/a29k.sh: Delete.
235 * emulparams/ebmon29k.sh: Delete.
236 * emulparams/sa29200.sh: Delete.
237 * Makefile.am: Remove a29k support.
238 * configure.tgt: Likewise.
239 * ld.texinfo: Likewise.
240 * Makefile.in: Regenerate.
242 2005-08-17 Jakub Jelinek <jakub@redhat.com>
244 * ldgram.y (vers_defns): Don't lose pattern list before
245 extern NAME {}. Handle global, local and extern symbol names.
247 2005-08-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
249 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
250 Don't increment rel_count of .cranges here. Set rawsize of .cranges.
252 2005-08-10 Nick Clifton <nickc@redhat.com>
254 * pe-dll.c (pe_exe_fill_sections): Call lang_reset_memory_regions
255 before lang_size_sections.
257 2005-08-09 Alan Modra <amodra@bigpond.net.au>
259 * emulparams/hppa64linux.sh (LARGE_SECTIONS): Remove .tbss.
261 2005-08-08 Eric Doenges <Eric.Doenges@betty-tv.com>
263 * Makefile.am (ALL_EMULATIONS): Add msp430x21xx variants.
264 Add rules to build these emulations.
265 * Makefile.in: Regenerate.
266 * configure.tgt (msp430): Add the new variants to the
267 targ_extra_emuls list.
268 * emulparams/msp430all.sh: Add entries for the msp430x21xx
271 2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
273 * ld.texinfo: Document PROVIDE_HIDDEN.
275 * ldexp.c (exp_fold_tree_1): Hide a provided symbol if asked.
276 (exp_provide): Add and set hidden.
278 * ldexp.h (etree_type): Add hidden to assign.
280 * ldgram.y (PROVIDE_HIDDEN): New.
281 * ldlex.l (PROVIDE_HIDDEN): Likewise.
283 * scripttempl/elf.sc: Use PROVIDE_HIDDEN on array bound
286 2005-08-05 Alan Modra <amodra@bigpond.net.au>
288 * emulparams/elf_x86_64.sh: Revert last change.
289 * scripttempl/elf.sc (REL_LARGE, LARGE_SECTIONS): Define here.
291 2005-08-05 Alan Modra <amodra@bigpond.net.au>
293 * emulparams/armelf.sh (OTHER_BSS_END_SYMBOLS): Split out from
295 * emulparams/armelf_linux.sh: Likewise.
296 * emulparams/armnto.sh: Likewise.
297 * emulparams/criself.sh: Likewise.
298 * emulparams/elf32mcore.sh: Likewise.
299 * emulparams/criself.sh (OTHER_SYMBOLS): Define.
300 * emulparams/crislinux.sh (OTHER_SYMBOLS): Define.
301 (OTHER_END_SYMBOLS): Don't define.
302 * emulparams/elf32fr30.sh: Likewise.
303 * emulparams/elf64mmix.sh: Likewise.
304 * emulparams/hppa64linux.sh: Likewise.
305 * emulparams/m32relf.sh: Likewise.
306 * emulparams/vxworks.sh: Likewise.
307 * scripttempl/armbpabi.sc (OTHER_BSS_SECTIONS): Delete.
308 (OTHER_BSS_END_SYMBOLS): Add.
309 (OTHER_END_SYMBOLS): Move before current end sym definitions.
310 (OTHER_SYMBOLS): Replace OTHER_END_SYMBOLS near end of script.
311 * scripttempl/elf.sc: Likewise.
312 * scripttempl/elf32sh-symbian.sc: Likewise.
313 * scripttempl/elf_chaos.sc: Likewise.
314 * scripttempl/elfxtensa.sc: Likewise.
315 * scripttempl/iq2000.sc: Likewise.
316 * scripttempl/xstormy16.sc: Likewise.
318 * scripttempl/elf.sc (LBSS, LARGE_SECTIONS): Delete.
319 (REL_LDATA, REL_LBSS, REL_LRODATA): Delete.
320 (REL_LARGE, LARGE_SECTIONS): Add.
321 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): Define as script text.
323 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
324 (LARGE_SECTIONS): Define.
325 * emulparams/hppa64linux.sh (OTHER_BSS_SECTIONS): Don't define.
326 (LARGE_SECTIONS): Define.
328 2005-08-04 Alan Modra <amodra@bigpond.net.au>
330 * ldemul.c (ldemul_do_assignments, do_assignments_default): Delete.
331 * ldemul.h (ldemul_do_assignments, do_assignments_default): Delete.
332 (struct ld_emulation_xfer_struct): Remove do_assignments field.
333 * ldlang.c (lang_do_assignments): Don't call ldemul_do_assignments.
334 * emulparams/elf32ppc.sh (SDATA_START_SYMBOLS): New.
335 (SDATA2_START_SYMBOLS, SBSS_START_SYMBOLS, SBSS_END_SYMBOLS): New.
336 * emultempl/aix.em (ld_*_emulation): Delete do_assignments init.
337 * emultempl/armcoff.em: Likewise.
338 * emultempl/beos.em: Likewise.
339 * emultempl/generic.em: Likewise.
340 * emultempl/gld960.em: Likewise.
341 * emultempl/gld960c.em: Likewise.
342 * emultempl/linux.em: Likewise.
343 * emultempl/lnk960.em: Likewise.
344 * emultempl/m68kcoff.em: Likewise.
345 * emultempl/pe.em: Likewise.
346 * emultempl/sunos.em: Likewise.
347 * emultempl/ticoff.em: Likewise.
348 * emultempl/vanilla.em: Likewise.
349 * emultempl/elf32.em: Likewise.
350 (gld*_provide_bound_symbols): Delete.
351 (gld*_provide_init_fini_syms): Delete.
352 (gld*_before_allocation): Don't call ldemul_do_assignments.
353 * emultempl/ppc32elf.em (ppc_do_assignments): Delete.
354 (LDEMUL_DO_ASSIGNMENTS): Delete.
355 * scripttempl/elf.sc: Provide init/fini syms. Add SBSS_START_SYMBOLS,
356 SBSS_END_SYMBOLS, SDATA2_START_SYMBOLS.
358 2005-08-04 Alan Modra <amodra@bigpond.net.au>
360 * Makefile.am (eelf32m32c.c): Fix dependencies.
361 * Makefile.in: Regenerate.
363 2005-08-04 Alan Modra <amodra@bigpond.net.au>
365 * ldemul.c (ldemul_finish): Call ld_emulation->finish unconditionally.
366 (finish_default): New function.
367 * ldemul.h (finish_default): Declare.
368 * emultempl/aix.em (gld*_before_allocation): Call
369 before_allocation_default rather than strip_excluded_output_sections.
370 (ld_*_emulation): Init finish field to finish_default.
371 * emultempl/armcoff.em: Likewise.
372 * emultempl/beos.em: Likewise.
373 * emultempl/elf32.em: Likewise.
374 * emultempl/generic.em: Likewise.
375 * emultempl/gld960.em: Likewise.
376 * emultempl/gld960c.em: Likewise.
377 * emultempl/hppaelf.em: Likewise.
378 * emultempl/linux.em: Likewise.
379 * emultempl/lnk960.em: Likewise.
380 * emultempl/m68kcoff.em: Likewise.
381 * emultempl/mmo.em: Likewise.
382 * emultempl/pe.em: Likewise.
383 * emultempl/ppc64elf.em: Likewise.
384 * emultempl/sunos.em: Likewise.
385 * emultempl/ticoff.em: Likewise.
386 * emultempl/vanilla.em: Likewise.
388 2005-08-03 Alan Modra <amodra@bigpond.net.au>
390 * ldlang.c (exp_init_os): Handle etree_provide.
391 * emulparams/armelf.sh (OTHER_END_SYMBOLS): Rename from..
392 (OTHER_BSS_END_SYMBOLS): ..this.
393 * emulparams/armelf_linux.sh: Likewise.
394 * emulparams/armnto.sh: Likewise.
395 * emulparams/criself.sh: Likewise.
396 * emulparams/crislinux.sh: Likewise.
397 * emulparams/elf32frv.sh: Likewise.
398 * emulparams/elf32mcore.sh: Likewise.
399 * emulparams/elf32ppc.sh: Likewise.
400 * emulparams/elf32ppclinux.sh: Likewise.
401 * emulparams/hppa64linux.sh: Likewise.
402 * scripttempl/armbpabi.sc: Substitute $OTHER_END_SYMBOLS, not
403 $OTHER_BSS_END_SYMBOLS.
404 * scripttempl/elf32sh-symbian.sc: Likewise.
405 * scripttempl/elf_chaos.sc: Likewise.
406 * scripttempl/iq2000.sc: Likewise.
407 * scripttempl/xstormy16.sc: Likewise.
408 * scripttempl/elf.sc: Likewise. Delete __bss_start comment.
409 * scripttempl/elfxtensa.sc: Likewise.
411 2005-07-29 Nick Clifton <nickc@redhat.com>
413 * ldmain.c (main): Allow -shared and -static to be used together.
414 * ld.texinfo (-static): Mention that it is allowed with -shared.
416 2005-07-28 DJ Delorie <dj@redhat.com>
418 * ldlang.c (lang_output_section_statement_lookup_1): Don't cast a
419 unary & address operator, as that breaks GCC's strict aliasing
422 2005-07-25 Jan Hubicka <jh@suse.cz>
423 H.J. Lu <hongjiu.lu@intel.com>
425 * emulparams/elf_x86_64.sh (LARGE_SECTIONS): New.
427 * scripttempl/elf.sc: Updated for large section support.
429 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
431 * configure.tgt: Remove i[3-7]86-*-rtemself*.
432 Remove sparc-*-rtemself*.
434 2005-07-21 Ben Elliston <bje@gnu.org>
436 * ldgram.y (ldgram_want_filename): Remove unused static.
438 2005-07-20 DJ Delorie <dj@redhat.com>
440 * emulparams/elf32m32c.sh (TEMPLATE_NAME): New.
441 (EXTRA_EM_FILE): New.
443 2005-07-19 H.J. Lu <hongjiu.lu@intel.com>
445 * ldmain.c (main): Reindent.
447 2005-07-19 Paul Brook <paul@codesourcery.com>
449 * configure.host (HOSTING_CRT0): Parse output of gcc --help --verbose
450 to determine dynamic linker name.
452 2005-07-18 Nick Clifton <nickc@redhat.com>
454 * configure.tgt: Restore alpha ordering to list of arches.
456 2005-07-16 Alan Modra <amodra@bigpond.net.au>
458 * emultempl/elf32.em (gld*_provide_init_fini_syms): Prototype.
459 (gld*_before_allocation): Call ldemul_do_assignments rather than
460 gld*_provide_init_fini_syms directly.
461 * emultempl/ppc32elf.em (gld*_after_allocation): Delete.
462 (ppc_do_assignments): New function.
463 (LDEMUL_AFTER_ALLOCATION): Don't define.
464 (LDEMUL_DO_ASSIGNMENTS): Define.
466 2005-07-16 Alan Modra <amodra@bigpond.net.au>
468 * Makefile.am: Run "make dep-am".
469 (emipsidt.c, emipsidtl.c): Depend on generic.em.
470 * Makefile.in: Regenerate.
472 2005-07-15 Alan Modra <amodra@bigpond.net.au>
474 * ldemul.c (ldemul_do_assignments): New function.
475 (do_assignments_default): New function.
476 * ldemul.h (ldemul_do_assignments): Declare.
477 (do_assignments_default): Declare.
478 (struct ld_emulation_xfer_struct): Add do_assignments.
479 * ldlang.c (lang_do_assignments) Call ldemul_do_assignments.
480 * emultempl/aix.em (ld_*_emulation): Init do_assignments field.
481 * emultempl/armcoff.em: Likewise.
482 * emultempl/beos.em: Likewise.
483 * emultempl/generic.em: Likewise.
484 * emultempl/gld960.em: Likewise.
485 * emultempl/gld960c.em: Likewise.
486 * emultempl/linux.em: Likewise.
487 * emultempl/lnk960.em: Likewise.
488 * emultempl/m68kcoff.em: Likewise.
489 * emultempl/pe.em: Likewise.
490 * emultempl/sunos.em: Likewise.
491 * emultempl/ticoff.em: Likewise.
492 * emultempl/vanilla.em: Likewise.
493 * emultempl/elf32.em: Likewise, to call gld*_provide_init_fini_syms.
494 (gld*_find_exp_assignment): Adjust bfd_elf_record_link_assignment call.
496 2005-07-14 Jim Blandy <jimb@redhat.com>
498 Add support for the Renesas M32C and M16C.
499 * Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
500 (eelf32m32c.c): New target.
501 * Makefile.in: Regenerated.
502 * configure.tgt: Add case for m32c-*-elf.
503 * emulparams/elf32m32c.sh: New file.
505 2005-07-14 Alan Modra <amodra@bigpond.net.au>
507 * ldlang.c (strip_excluded_output_sections): Don't call
509 * emultempl/elf32.em (gld*_provide_bound_symbols): Move.
510 (gld*_provide_init_fini_syms): Move.
511 (gld*_before_allocation): Call the above from here..
512 (gld*_finish): ..not here. Call _bfd_elf_fix_excluded_sec_syms.
513 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
514 * emultempl/ppc64elf.em (ppc_finish): Likewise.
516 2005-07-10 Ralf Corsepius <ralf.corsepius@rtems.org>
518 * configure.tgt: Remove sparc*-*-rtemsaout*, i[3-7]86-go32-rtems*,
519 i[3-7]86-*-rtemscoff*, hppa*-*-rtems*, mips*el-*-rtems*,
522 2005-07-09 Christopher Faylor <cgf@timesys.com>
524 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
525 relocation by default.
526 (compute_dll_image_base): Avoid linking into cygwin dll address space.
528 2005-07-08 Alan Modra <amodra@bigpond.net.au>
530 * ldlang.c (wild_sort): Formatting.
531 (strip_excluded_output_sections): Strip zero size sections here.
532 * emultempl/elf32.em (gld*_strip_empty_sections): Delete.
533 (gld*_finish): Don't call the above.
534 * emultempl/hppaelf.em (hppaelf_finish): Likewise.
535 * emultempl/ppc64elf.em (ppc_finish): Likewise.
537 2005-07-05 Paul Brook <paul@codesourcery.com>
539 * Makefile.am (ALL_EMULATIONS): Add eelf32ppcvxworks.o.
540 (eelf32ppcvxworks.o): Add dependencies.
541 * Makefile.in: Regenerate.
542 * configure.tgt: Add entry for powerpc-vxworks.
543 * emulparams/elf32-ppc.c: Mention elf32ppcvxworks.sh in comment.
544 * emulparams/elf32ppcvxworks.sh: New file.
545 * emultempl/ppc32elf.em (bfd_elf32_powerpc_vxworks_vec): Declare.
546 (is_ppc_elf32_vec): New function.
547 (ppc_after_open, ppc_before_allocation,
548 gld${EMULATION_NAME}_after_allocation): Use it.
550 2005-07-05 Peter S. Mazinger" <ps.m@gmx.net>
552 * emulparams/elf32bmip.sh (GENERATE_PIE_SCRIPT): Define as "yes".
553 * emulparams/elf32bmipn32-defs.sh (GENERATE_PIE_SCRIPT): Define as "yes".
555 2005-07-04 Mike Frysinger <vapier@gentoo.org>
557 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Fix typo in
560 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
562 * emulparams/m32relf_linux.sh (GENERATE_PIE_SCRIPT): Set to yes.
564 2005-07-04 Aurelien Jarno <aurel32@debian.org>
566 * emultempl/elf32.em: Enable use of ld.so.conf for *-*-k*bsd-*.
568 2005-07-01 Alan Modra <amodra@bigpond.net.au>
570 * scripttempl/elf.sc (.gcc_except_table): Don't KEEP.
572 2005-06-30 Ben Elliston <bje@gnu.org>
574 * Makefile.am (check-DEJAGNU): Don't search for expect.
575 * Makefile.in: Regenerate.
577 2005-06-30 Ben Elliston <bje@gnu.org>
579 * Makefile.am (EXPECT): Set to expect.
580 (RUNTEST): Likewise, set to runtest.
581 * Makefile.in: Regenerate.
583 2005-06-16 Alexander Klimov <alserkli@inbox.ru>
585 * emultempl/armelf.em: Add quotes to avoid a null test
588 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
590 * ld.texinfo (Command Line Options): Add @item for --hash-size.
592 2005-06-10 Alan Modra <amodra@bigpond.net.au>
594 * scripttempt/elf.sc (.bss): Align tail in a way that allows
595 empty section pruning.
597 2005-06-09 Steve Ellcey <sje@cup.hp.com>
599 * configure.in (AM_BINUTILS_WARNINGS): Add.
600 (BFD_NEED_DECLARATION) Replace with AC_CHECK_DECLS.
601 * config.in: Regenerate.
602 * configure: Regenerate.
603 * sysdep.h (NEED_DECLARATION_*): Replace with HAVE_DECL_*
606 2005-06-09 Alan Modra <amodra@bigpond.net.au>
608 * ldexp.c (fold_unary <ALIGN_K>): Revert last change.
610 2005-06-09 Alan Modra <amodra@bigpond.net.au>
612 * ld.h (lang_phase_type): Move to..
613 * ldexp.h: ..here. Add lang_mark_phase_enum.
614 (node_type): Remove etree_undef and etree_unspec.
615 (exp_data_seg): Delete.
616 (struct ldexp_control, expld): New.
617 (invalid, exp_mark_used_section): Delete.
618 (exp_fold_tree, exp_get_vma, exp_get_value_int, exp_get_fill,
619 exp_get_abs_int): Update prototypes.
620 * ldexp.c (assigning_to_dot): Delete.
622 (make_abs): Operate directly on expld.result. Update all callers.
623 (new_abs): Likewise. Return void.
624 (new_rel_from_abs): Rename from new_rel_from_section.
625 (new_rel, new_rel_from_abs): Operate on expld.result and return void.
627 (fold_unary): Operate on expld.result and return void. Remove
628 "current_section", "allocation_done", "dot", "dotp" and "mark_used"
629 params. Update all callers.
630 (fold_binary, fold_trinary, fold_name, exp_fold_tree_1): Likewise.
631 (fold_unary <ALIGN_K>): Ensure alignment is absolute.
632 (fold_unary <ABSOLUTE>): Use make_abs.
633 (fold_unary <DATA_SEGMENT_END>): Evaluate mark_phase as for
635 (fold_binary <DATA_SEGMENT_ALIGN, DATA_SEGMENT_RELRO_END, >): Ditto.
636 (fold_binary <'%','/'>): Don't error if marking.
637 (fold_name <SIZEOF_HEADERS>): Don't call bfd_sizeof_headers when
639 (fold_name <NAME>): Remove FIXME; -R is handled correctly. Don't
641 (fold_name <ADDR, LOADADDR, SIZEOF>): Don't set SEC_KEEP.
642 (exp_fold_tree_1): Don't error when marking.
643 (exp_fold_tree_1 <etree_rel>): Evaluate in all phases except first.
644 (exp_fold_tree_1 <etree_assign to dot>): Don't check for NULL
645 current section, instead check for NULL dotp.
646 (exp_fold_tree_1 <etree_provide>): Don't evaluate the assignment
647 source unless the symbol is referenced and undefined.
648 (exp_fold_tree): Remove "allocation_done" and "dot" params. Save
650 (exp_fold_tree_no_dot): Remove "current_section", "allocation_done
651 and "mark_used" params. Save params to expld. Update all callers.
652 (exp_assop): Do without temp var.
653 (exp_print_tree <etree_undef>): Delete code.
654 (exp_get_vma): Remove "allocation_done" param. Correct error return.
655 (exp_get_fill, exp_get_abs_int): Likewise.
656 (exp_get_value_int): Remove "allocation_done" param.
657 (exp_mark_used_section): Delete.
658 * ldgram.y (fill_exp): Update exp_get_fill call.
659 (origin_spec, length_spec): Update exp_get_vma call.
660 * ldlang.c (lang_init): Don't bother clearing lang_statement_iteration.
661 (lang_mark_used_section_1, lang_mark_used_section): Delete.
662 (strip_excluded_output_sections): Call one_lang_size_sections_pass in
663 marking mode. Merge old lang_mark_used_section code. Correct handling
664 of output sections with excluded input sections and data statements.
665 Don't drop non-zero sized sections. Don't zap os->bfd_section.
666 Do set SEC_EXCLUDE when appropriate.
667 (print_output_section_statement): Update for changed ldexp.c
669 (print_assignment, lang_size_sections_1): Likewise.
670 (lang_do_assignments_1, lang_enter_output_section_statement): Likewise.
671 (lang_new_phdr, lang_record_phdrs): Likewise.
672 (lang_size_sections): Likewise.
673 (insert_pad): Use following statement if it is a pad, rather than
675 (lang_size_sections_1 <lang_output_section_statement_enum>): Do
676 process ignored output section to set vma and lma, but don't
677 update dot for these sections. Don't error if marking.
678 (lang_size_sections_1 <lang_assignment_statement_enum>): Don't
679 update dot for ignored sections.
680 (lang_size_sections_1 <lang_data_statement_enum>): Don't mark absolute
681 section with SEC_ALLOC.
682 (one_lang_size_sections_pass): New function.
683 (lang_size_sections): Remove first five params. Set expld.phase on
684 entry and exit. Use one_lang_size_sections_pass.
685 (lang_do_assignments): Remove all params. Update all callers.
686 (lang_reset_memory_regions): Clear os->processed for all output
688 * ldlang.h (lang_do_assignments): Update prototype.
689 (lang_size_sections): Likewise.
690 (one_lang_size_sections_pass): Declare.
691 * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update
692 lang_size_sections and lang_do_assignments calls.
693 * emultempl/elf32.em (layout_sections_again): Likewise.
694 * emultempl/ppc64elf.em (ppc_before_allocation): Use
695 one_lang_size_sections_pass.
697 2005-06-08 Aldy Hernandez <aldyh@redhat.com>
699 * emulparams/elf32ms1.sh: New.
701 2005-06-07 Eric Christopher <echristo@redhat.com>
703 * Makefile.am (eelf32ms1.c): Use tab.
704 * Makefile.in: Regenerate.
706 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
707 Michael Snyder <msnyder@redhat.com>
708 Stan Cox <scox@redhat.com>
710 * configure.tgt: Same.
712 * Makefile.am (ALL_EMULATIONS): Depend on eelf32ms1.o.
713 (eelf32ms1.c): Add eelf32ms1.c rule.
715 * Makefile.in: Regenerate.
717 2005-06-06 Alan Modra <amodra@bigpond.net.au>
719 * emultempl/ppc64elf.em (ppc_before_allocation): Always run
722 2005-06-05 H.J. Lu <hongjiu.lu@intel.com>
724 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
725 section only if the symbol will be defined.
727 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
730 * ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
731 section for etree_assign, etree_provide and etree_provided.
732 Call fold_binary on etree_binary.
734 * ldlang.c (lang_mark_used_section_1): Handle load base.
736 2005-06-03 Alan Modra <amodra@bigpond.net.au>
738 * ldmain.c (link_callbacks): Add einfo.
739 (add_archive_element): Use passed info, not link_info.
740 (constructor_callback): Likewise.
741 (reloc_overflow): Don't handle null bfd specially.
742 (reloc_dangerous, unattached_reloc): Likewise.
743 * ldmisc.c (vfinfo <B>): Print "ld generated" for null bfd.
744 (vfinfo <C, D, G>): Handle null bfd. Wrap comments.
746 2005-06-02 Alan Modra <amodra@bigpond.net.au>
748 * ldexp.h (etree_value_type): Use "asection *" in place of
749 "struct lang_output_section_statement_struct *" for "section".
750 (exp_fold_tree): Likewise.
751 (exp_mark_used_section): Likewise.
752 * ldexp.c (new_rel, new_rel_from_section, fold_unary, fold_binary,
753 fold_trinary, fold_name, exp_fold_tree_1, exp_fold_tree,
754 exp_mark_used_section): Likewise for "current_section" param.
755 (make_abs, new_abs, exp_binop, exp_unop, exp_get_vma, exp_get_fill,
756 exp_get_abs_int): Adjust for above changes.
757 * ldlang.c (lang_mark_used_section_1, print_assignment,
758 lang_size_sections_1, lang_do_assignments_1): Likewise.
759 * ldexp.c (fold_name): Init entire result struct.
761 2005-06-01 Maciej W. Rozycki <macro@linux-mips.org>
763 * emulparams/elf32btsmip.sh: Unset DATA_ADDR.
765 2005-05-31 Zack Weinberg <zack@codesourcery.com>
767 * ldlang.c (entry_symbol_default): New file-scope global.
768 (lang_finish): Use it, not a hardwired "start".
769 (lang_default_entry): Set it.
770 * ldlang.h: Declare lang_default_entry.
771 * emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
772 not lang_add_entry, to override default entry point symbol.
774 2005-05-29 Richard Henderson <rth@redhat.com>
776 * emulparams/elf64alpha.sh (PLT): New.
778 * emultempl/alphaelf.em (disable_relaxation): New.
779 (limit_32bit): Rename from elf64alpha_32bit; update all users.
780 (elf64_alpha_use_secureplt): Declare.
781 (bfd_elf64_alpha_vec, bfd_elf64_alpha_freebsd_vec): Declare.
782 (alpha_after_open): New.
783 (alpha_before_allocation): New.
784 (OPTION_NO_RELAX, OPTION_SECUREPLT, OPTION_NO_SECUREPLT): New.
785 (PARSE_AND_LIST_LONGOPTS): Include them.
786 (PARSE_AND_LIST_OPTIONS): Likewise.
787 (PARSE_AND_LIST_ARGS_CASES): Likewise.
788 (LDEMUL_AFTER_OPEN, LDEMUL_BEFORE_ALLOCATION): New.
789 * scripttempl/elf.sc (TEXT_PLT): New.
792 2005-05-27 Andreas Schwab <schwab@suse.de>
794 * configure.host (HOSTING_LIBS): Add libunwind.a if it exists.
796 2005-05-24 Alan Modra <amodra@bigpond.net.au>
798 * emultempl/ppc32elf.em (after_allocation): Don't call
799 ppc_elf_set_sdata_syms when relocatable.
801 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
803 * Makefile.am (ld.1): Revert the last 2 changes.
804 (info-recursive): Depend on ld.1.
805 * Makefile.in: Regenerated.
807 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
809 * Makefile.am (ld.1): Depend on "info" instead of
810 "configdoc.texi ldver.texi".
811 * Makefile.in: Regenerated.
813 2005-05-21 H.J. Lu <hongjiu.lu@intel.com>
815 * Makefile.am (ld.1): Depend on "info".
816 * Makefile.in: Regenerated.
818 2005-05-19 Zack Weinberg <zack@codesourcery.com>
820 * Makefile.am: Have 'all' depend on 'info' and 'ld.1'.
821 * Makefile.in: Regenerate.
823 2005-05-17 Zack Weinberg <zack@codesourcery.com>
825 * ld-arm/mixed-app.d: Adjust expected disassembly a little.
827 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
829 * Makefile.am (ldver.texi): Don't use $<.
830 * Makefile.in: Regenerated.
832 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
834 * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Explicitly include
835 $(srcdir) before $(BFDDIR)/doc.
836 * Makefile.in: Regenerated.
838 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
841 * ldexp.c (exp_fold_tree_1): Renamed from exp_fold_tree and
842 take take a bfd_boolean, mark_used. Ignore assert failure if
844 (exp_fold_tree) Call exp_fold_tree_1 with mark_used == FALSE.
845 (exp_fold_tree_no_dot): Updated to take a bfd_boolean,
846 mark_used and pass down.
847 (fold_unary): Likewise.
848 (fold_binary): Likewise.
849 (fold_trinary): Likewise.
850 (exp_binop): Add FALSE to call to exp_fold_tree_no_dot.
851 (exp_trinop): Likewise.
852 (exp_unop): Likewise.
853 (exp_nameop): Likewise.
854 (exp_get_vma): Likewise.
855 (exp_get_fill): Likewise.
856 (exp_get_abs_int): Likewise.
857 (fold_name): Likewise. Set SEC_KEEP in output section flags.
858 (exp_mark_used_section): New.
860 * ldexp.h (exp_mark_used_section): New.
862 * ldlang.c (lang_output_section_statement_lookup_1): Set the
863 ignored field to FALSE.
864 (lang_mark_used_section_1): New.
865 (lang_mark_used_section): Call lang_mark_used_section_1.
866 (strip_excluded_output_sections): Call lang_mark_used_section
867 and check for unused sections.
868 (lang_size_sections_1): Skip an output section if it should
870 (lang_do_assignments_1): Likewise.
871 (lang_process): Don't call lang_mark_used_section here.
873 * ldlang.h (lang_output_section_statement_type): Change
874 all_input_readonly to bitfield. Add ignored.
876 2005-05-17 Lennert Buytenhek <buytenh@wantstofly.org>
877 Peter S. Mazinger" <ps.m@gmx.net>
879 * emulparams/armelf_linux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
880 * emulparams/hppalinux.sh (GENERATE_PIE_SCRIPT): Define as "yes".
882 2005-05-17 Julian Brown <julian@codesourcery.com>
884 * ldlang.c (print_assignment): Do not rely upon a valid result
885 having a section associated with it.
887 2005-05-17 Nick Clifton <nickc@redhat.com>
889 * ldlang.c (Scan_for_self_assignment): Check an assignment tree to
890 see if the same value is being used on the rhs as on the lhs.
891 (print_assignment): Call scan_for_self_assignment and if it
892 returns true, do no display the result of the computation but
893 instead just the final value of the symbol on the lhs.
894 * ld.texinfo: Document this behaviour and provide an example of
897 2005-05-15 Daniel Jacobowitz <dan@codesourcery.com>
899 * Makefile.am (AM_MAKEINFOFLAGS): Define.
901 (ldver.texi): Depend on distributed files instead of built files.
902 (ld.info): Include $(srcdir) in the rule target. Remove actions.
903 (ld.dvi): Remove actions.
904 (MAINTAINERCLEANFILES): Add configdoc.texi.
905 (CONFIG_STATUS_DEPENDENCIES): Add bfd/configure.in.
906 (install-data-local): Renamed from install.
907 (Makefile): Remove explicit dependency.
908 * acinclude.m4: Remove obsolete code.
909 * configure.in: Update AC_PREREQ. Remove extra $CONFIG_SHELL.
910 * Makefile.in, aclocal.m4, config.in, configure: Regenerated.
912 2005-05-11 Bob Wilson <bob.wilson@acm.org>
914 * scripttempl/elfxtensa.sc: Sync up with elf.sc.
915 * emulparams/elf32xtensa.sh (PLT, GOT): Define.
917 2005-05-11 Alan Modra <amodra@bigpond.net.au>
919 * ldgram.y: Add SPECIAL token.
920 (sect_constraint): Handle SPECIAL.
921 * ldlang.c (lang_output_section_find_1): Don't match SPECIAL.
922 (map_input_to_output_sections): Likewise.
923 * ldlex.l (SPECIAL): Define.
924 * emulparams/elf32ppc.sh (DATA_GOT, SDATA_GOT, SEPARATE_GOTPLT,
925 GOT, PLT, GOTPLT): Define.
926 * emultempl/ppc32elf.em (old_plt, old_got): New static vars.
927 (ppc_after_open): New function.
928 (PARSE_AND_LIST_PROLOGUE): Define OPTION_OLD_LPT and OPTION_OLD_GOT.
929 (PARSE_AND_LIST_LONGOPTS): Add "bss-plt" and "sdata-got".
930 (PARSE_AND_LIST_OPTIONS): Document them.
931 (PARSE_AND_LIST_ARGS_CASES): Handle them.
932 (LDEMUL_AFTER_OPEN): Define.
933 * scripttempl/elf.sc (PLT): Don't override existing define.
934 (DATA_GOT, SDATA_GOT): Define and use to enable alternate got
935 placement rather than using NO_SMALL_DATA. Emit GOTPLT for RELRO_NOW.
937 2005-05-10 Alan Modra <amodra@bigpond.net.au>
939 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_GOTPLT_END): Delete.
940 (DATA_SEGMENT_RELRO_END): Use SEPARATE_GOTPLT value.
941 (GOTPLT): Remove DATA_SEGMENT_RELRO_GOTPLT_END. Place after
942 DATA_SEGMENT_RELRO_END in script.
944 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
946 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
947 Don't use a removed section.
949 2005-05-09 H.J. Lu <hongjiu.lu@intel.com>
951 * ldmain.c (reloc_overflow): Use output_bfd if the symbol
952 is defined in the ABS section.
954 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
956 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
957 Put back !link_info.relocatable.
959 2005-05-06 H.J. Lu <hongjiu.lu@intel.com>
962 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_init_fini_syms):
963 Just check link_info.executable.
965 2005-05-06 Nick Clifton <nickc@redhat.com>
967 * Update the address and phone number of the FSF organization in
968 the GPL notices in the following files:
969 aclocal.m4, deffile.h, deffilep.y, fdl.texi, ld.h, ldcref.c,
970 ldctor.c, ldctor.h, ldemul.c, ldexp.c, ldexp.h, ldfile.c,
971 ldfile.h, 20ldgram.y, ldint.texinfo, ldlang.c, ldlang.h, ldlex.h,
972 ldlex.l, ldmain.c, ldmain.h, ldmisc.c, ldmisc.h, ldver.c, ldver.h,
973 ldwrite.c, ldwrite.h, lexsup.c, mri.c, mri.h, pe-dll.c, pe-dll.h,
974 sysdep.h, emultempl/aix.em, emultempl/alphaelf.em,
975 emultempl/armcoff.em, emultempl/armelf.em, emultempl/beos.em,
976 emultempl/crxelf.em, emultempl/elf32.em, emultempl/generic.em,
977 emultempl/gld960.em, emultempl/gld960c.em, emultempl/hppaelf.em,
978 emultempl/ia64elf.em, emultempl/irix.em, emultempl/linux.em,
979 emultempl/lnk960.em, emultempl/m68hc1xelf.em,
980 emultempl/m68kcoff.em, emultempl/m68kelf.em,
981 emultempl/mipsecoff.em, emultempl/mmix-elfnmmo.em,
982 emultempl/mmixelf.em, emultempl/mmo.em, emultempl/needrelax.em,
983 emultempl/pe.em, emultempl/ppc32elf.em, emultempl/ppc64elf.em,
984 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em,
985 emultempl/vanilla.em, emultempl/xtensaelf.em
987 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
989 * scripttempl/elf.sc: Document the usage of __bss_start.
991 2005-05-05 Paul Brook <paul@codesourcery.com>
993 * Makefile.am: Add eelf_i386_vxworks.
994 * Makefile.in: Regenerate.
995 * configure.tgt: Make i?86-*-vxworks use targ_emul=elf_i386_vxworks.
996 * emulparams/elf_i386_vxworks.sh: New file.
997 * emulparams/vxworks.sh: New file.
998 * scripttempl/elf.sc: Add DATA_END_SYMBOLS and ETEXT_NAME.
1000 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
1002 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1003 Call _bfd_elf_provide_section_bound_symbols.
1005 2005-05-04 Alan Modra <amodra@bigpond.net.au>
1007 * ldemul.c: Include bfdlink.h.
1008 (ldemul_before_allocation): Assume before_allocation is non-zero.
1009 (before_allocation_default): Call strip_excluded_output_sections.
1010 * ldlang.c (stripped_excluded_sections): New variable.
1011 (lang_add_section): Build input section list for each output
1012 section, attached via map_head and map_tail pointers.
1013 (strip_excluded_output_sections): Make global. Traverse the
1014 input section lists to find which output sections can go. Clear
1015 link_order pointers and set stripped_excluded_sections.
1016 (lang_process): Call strip_excluded_output_sections.
1017 * ldlang.h (strip_excluded_output_sections): Declare.
1018 * ldwrite.c: Update throuhout for link_order_head -> map_head change.
1019 * emultempl/aix.em (before_allocation): Call
1020 strip_excluded_output_sections.
1021 * emultempl/armcoff.em (before_allocation): Likewise.
1022 * emultempl/beos.em (before_allocation): Likewise.
1023 * emultempl/linux.em (before_allocation): Likewise.
1024 * emultempl/pe.em (before_allocation): Likewise.
1025 * emultempl/sunos.em (before_allocation): Likewise.
1026 * emultempl/elf32.em (before_allocation): Likewise. Call
1027 bfd_elf_size_dynsym_hash_dynstr too.
1028 * emultempl/lnk960.em (lnk960_before_allocation): Delete.
1029 (ld_lnk960): Use before_allocation_default.
1031 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
1033 * emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
1034 Updated for bfd_section_list_remove change.
1035 * ldlang.c (lang_insert_orphan): Likewise.
1036 (strip_excluded_output_sections): Likewise.
1037 (sort_sections_by_lma): New.
1038 (lang_check_section_addresses): Sort the sections before
1041 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
1043 * configure.tgt: Add h8300*-*-rtemscoff.
1044 Switch h8300*-*-rtems* to elf.
1046 2005-04-29 Ben Elliston <bje@au.ibm.com>
1048 * ldgram.y (lang_memory_region_type): Make static.
1049 (ldgram_want_filename): Likewise.
1050 * ldemul.c (ld_emulation): Make static.
1051 * ldfile.h (ldfile_find_command_file): Remove extern.
1052 * ldfile.c (ldfile_find_command_file): Make static.
1053 * ldlang.h (unique_section_list): Remove extern declaration.
1054 * ldlang.c (unique_section_list): Make static.
1055 * mri.h (symbol_truncate): Remove extern declaration.
1056 * mri.c (symbol_truncate): Make static.
1057 (order, only_load, address, alias): Likewise.
1058 (alignment, subalignment): Likewise.
1060 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
1062 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols):
1063 Use the first SEC_ALLOC section which isn't SEC_READONLY or the
1064 last SEC_ALLOC section if such a section doesn't exist.
1066 2005-04-24 Mark Kettenis <kettenis@gnu.org>
1068 * configure.host: Add *-*-openbsd support.
1070 2005-04-15 Julian Brown <julian@codesourcery.com>
1072 * ld.texinfo: Document --use-blx.
1073 * emultempl/armelf.em (use_blx): New variable.
1074 (arm_elf_create_output_section_statements): Communicate value of
1076 (PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
1077 (PARSE_AND_LIST_OPTIONS): Add --use-blx option.
1078 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
1080 2005-04-14 Alan Modra <amodra@bigpond.net.au>
1082 * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error.
1083 * configure.in: Include ../bfd/warning.m4 contents.
1084 * Makefile.in: Regenerate.
1085 * configure: Regenerate.
1087 2005-04-12 Alan Modra <amodra@bigpond.net.au>
1089 * Makefile.am: Run "make dep-am".
1090 (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command.
1091 * Makefile.in: Regenerate.
1092 * config.in: Regenerate.
1094 2005-04-11 Alan Modra <amodra@bigpond.net.au>
1096 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Ignore
1097 as_needed libs that were not needed.
1098 (gld${EMULATION_NAME}_check_needed): Likewise.
1100 2005-04-07 Nick Clifton <nickc@redhat.com>
1102 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h so that
1103 ldfile.h can use the lang_input_statement type.
1105 2005-04-06 Jakub Jelinek <jakub@redhat.com>
1107 * ldlang.c: Formatting.
1108 (walk_wild_consider_section): Remember return value from wildcardp.
1109 (is_simple_wild): Use strcspn instead of 2 strpbrk calls and strlen.
1110 (wild_spec_can_overlap): Use strcspn instead of strpbrk and strlen.
1112 2005-04-06 Robert O'Callahan <rocallahan@novell.com>
1114 * ld.h (lean_section_userdata_type): Remove.
1115 (fat_section_userdata_type): Remove file field.
1116 (SECTION_USERDATA_SIZE): Remove.
1117 * ldlang.c (init_os): Eliminate initialization of unused
1118 lean_section_userdata_type.
1120 * ldlang.h (callback_t, walk_wild_section_handler_t): New
1122 (struct lang_wild_statement_struct): Add walk_wild_section_handler
1123 and handler_data fields.
1124 * ldlang.c (callback_t): Removed.
1125 (walk_wild_consider_section, walk_wild_section_general,
1126 section_iterator_callback, find_section, is_simple_wild,
1127 match_simple_wild, walk_wild_section_specs1_wild0,
1128 walk_wild_section_specs1_wild1, walk_wild_section_specs2_wild1,
1129 walk_wild_section_specs3_wild2, walk_wild_section_specs4_wild2,
1130 wild_spec_can_overlap, analyze_walk_wild_section_handler): New
1132 (lang_add_wild): Call analyze_walk_wild_section_handler.
1133 (walk_wild_section): Renamed to walk_wild_section_general and
1134 created a wrapper function.
1135 (section_iterator_callback_data): New typedef.
1137 2005-04-04 Nick Clifton <nickc@redhat.com>
1139 * configure.in: Add a check for <unistd.h> providing a prototype
1140 for getopt() which is compatible with the one in
1141 include/getopt.h. If so then define HAVE_DECL_GETOPT.
1142 * configure: Regenerate.
1143 * config.in (HAVE_DECL_GETOPT): Add.
1144 * ldemul.c: Include config.h
1145 * lexsup.c: Likewise.
1146 * emultempl/elf32.sc: Likewise.
1148 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1150 * emultempl/elf32.em (gld${EMULATION_NAME}_layout_sections_again):
1151 New function, extracted from static void gld${EMULATION_NAME}_finish.
1152 (gld${EMULATION_NAME}_strip_empty_sections): Likewise.
1153 (gld${EMULATION_NAME}_provide_init_fini_syms): Likewise.
1154 * emultempl/ppc64elf.em: Revert last change.
1155 (ppc_layout_sections_again): Use
1156 gld${EMULATION_NAME}_layout_sections_again.
1157 (ppc_finish): Don't call gld${EMULATION_NAME}_finish. Instead call
1158 gld${EMULATION_NAME}_strip_empty_sections and
1159 gld${EMULATION_NAME}_provide_init_fini_syms.
1160 * emultempl/hppaelf.em: Similarly.
1162 2005-03-29 Alan Modra <amodra@bigpond.net.au>
1164 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
1165 (ppc_finish): Don't call bfd_elf_discard_info.
1166 * emultempl/hppaelf.em: Similarly.
1168 2005-03-24 Nick Clifton <nickc@redhat.com>
1170 * po/fr.po: Updated French translation.
1172 2005-03-23 Mike Frysinger <vapier@gentoo.org>
1173 Nick Clifton <nickc@redhat.com>
1175 * configure.host: Accept any C library to accompany a GNU Linux
1176 implementation, not just the GNU C library.
1177 * configure.tgt: Likewise.
1178 * emultempl/elf32.em: Likewise.
1180 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
1182 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
1183 (gld${EMULATION_NAME}_finish): Call
1184 gld${EMULATION_NAME}_provide_bound_symbols to provide
1185 __preinit_array_start, __preinit_array_end, __init_array_start,
1186 __init_array_end, __fini_array_start and __fini_array_end.
1188 * scripttempl/elf.sc: Don't provide __preinit_array_start,
1189 __preinit_array_end, __init_array_start, __init_array_end,
1190 __fini_array_start nor __fini_array_end.
1192 2005-03-23 Alan Modra <amodra@bigpond.net.au>
1194 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
1195 SEC_EXCLUDE on .gnu.warning sections.
1197 2005-03-22 Alan Modra <amodra@bigpond.net.au>
1199 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
1201 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1203 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
1205 (LDEMUL_AFTER_ALLOCATION): Define.
1207 2005-03-21 Alan Modra <amodra@bigpond.net.au>
1209 * emultempl/ppc64elf.em (ppc_finish): Rename from
1210 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
1211 (LDEMUL_FINISH): Update.
1212 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
1213 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
1215 2005-03-18 Julian Brown <julian@codesourcery.com>
1217 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
1219 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
1220 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
1222 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
1224 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
1225 bfd_section when removing unused empty output sections for
1226 non-relocatable link.
1228 2005-03-19 Alan Modra <amodra@bigpond.net.au>
1230 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
1231 traversing the bfd section list to find pointer to new section.
1233 2005-03-18 Alan Modra <amodra@bigpond.net.au>
1235 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
1236 input sections into .sdata and .sbss output respectively.
1238 2005-03-16 David Heine <dlheine@tensilica.com>
1239 Bob Wilson <bob.wilson@acm.org>
1241 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
1242 (lang_check_section_addresses): Ignore zero size sections here.
1244 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
1246 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
1247 unused empty output sections for non-relocatable link.
1249 * ld.h (args_type): Remove gc_sections.
1251 * ldlang.c (lang_mark_used_section): New.
1252 (lang_gc_sections): Use link_info.gc_sections instead of
1253 command_line.gc_sections.
1254 * ldmain.c (main): Likewise.
1255 * lexsup.c (parse_args): Likewise.
1256 * ldlang.c (lang_process): Call lang_mark_used_section.
1258 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
1260 2005-03-16 Nick Clifton <nickc@redhat.com>
1261 Ben Elliston <bje@au.ibm.com>
1263 * configure.in (werror): New switch: Add -Werror to the
1264 compiler command line. Enabled by default. Disable via
1266 * configure: Regenerate.
1268 2005-03-16 Alan Modra <amodra@bigpond.net.au>
1270 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
1271 (OTHER_RELRO_SECTIONS): Set this instead.
1273 2005-03-15 Nick Clifton <nickc@redhat.com>
1275 * NEWS: Add cutoff for changes in 2.16 release.
1277 2005-03-15 Mikkel Krautz <krautz@gmail.com>
1279 * configure.tgt (x86_64-elf): Add target.
1281 2005-03-15 Alan Modra <amodra@bigpond.net.au>
1283 * po/es.po: Commit new Spanish translation.
1285 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1287 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
1288 Tidy etree_assert case.
1290 2005-03-14 Alan Modra <amodra@bigpond.net.au>
1292 * po/tr.po: Commit new Turkish translation.
1294 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
1296 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
1297 * Makefile.in: Regenerated.
1298 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
1300 2005-03-07 Nick Clifton <nickc@redhat.com>
1302 * po/fr.po: Updated translation.
1304 2005-03-05 Alan Modra <amodra@bigpond.net.au>
1306 * po/ld.pot: Regenerate.
1308 2005-03-02 Jan Beulich <jbeulich@novell.com>
1310 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
1311 * pe-dll.c (pe_dll_generate_implib): Likewise.
1313 2005-02-24 Ben Elliston <bje@au.ibm.com>
1315 * ldfile.c: Remove GNU960 conditional code.
1316 * emultempl/gld960.em: Likewise.
1317 * emultempl/gld960c.em: Likewise.
1318 * emultempl/lnk960.em: Likewise.
1320 2005-02-24 Nick Clifton <nickc@redhat.com>
1322 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
1323 empty string from calls to concat.
1325 2005-02-23 Nick Clifton <nickc@redhat.com>
1327 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
1328 arguments passed to concat() with a NULL.
1330 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
1331 define types needed by ldfile.h
1333 2005-02-23 Alan Modra <amodra@bigpond.net.au>
1335 * pe-dll.c: Warning fixes.
1336 * emultempl/sunos.em: Likewise.
1338 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1340 * ldlang.c (section_already_linked): Don't call
1341 bfd_section_already_linked for dynamic objects.
1343 2005-02-22 Alan Modra <amodra@bigpond.net.au>
1345 * ldexp.c: Warning fixes.
1346 * ldwrite.c: Likewise.
1347 * emultempl/elf32.em: Likewise.
1349 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
1351 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
1353 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
1354 and ECOFF output only.
1356 2005-02-21 Alan Modra <amodra@bigpond.net.au>
1358 * config.in: Regenerate.
1359 * configure: Regenerate.
1361 2005-02-17 Zack Weinberg <zack@codesourcery.com>
1363 * ldexp.c (assigning_to_dot): New global flag.
1364 (fold_name): If assigning_to_dot is true, object immediately to
1365 an undefined symbol.
1366 (exp_fold_tree): Set and clear assigning_to_dot around the
1367 recursive call to exp_fold_tree to process the right-hand side
1368 of an assignment to the location counter.
1370 2005-02-17 Paul Brook <paul@codesourcery.com>
1372 * scripttempl/armbpabi.sc: Add dummy name to version block.
1374 2005-02-17 Alan Modra <amodra@bigpond.net.au>
1376 * ldexp.c (new_abs): Init new.str.
1378 2005-02-15 Mark Mitchell <mark@codesourcery.com>
1380 * configure.in (AC_CHECK_FUNCS): Add glob.
1381 * configure: Regenerated.
1382 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
1384 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
1385 if HAVE_GLOB is not defined.
1387 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1389 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
1390 lib_path if NATIVE is yes.
1392 2005-02-16 Alan Modra <amodra@bigpond.net.au>
1394 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
1395 an error creating fake bfd fatal.
1396 (ppc_before_allocation): Continue on after errors.
1397 (gld${EMULATION_NAME}_finish): Likewise.
1399 2005-02-15 Nick Clifton <nickc@redhat.com>
1401 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
1402 not declared. It is not used and its presence causes a compile
1405 2005-02-11 Zack Weinberg <zack@codesourcery.com>
1407 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
1408 If st.st_ino is zero, do not treat the library as a duplicate.
1410 2005-02-10 Jakub Jelinek <jakub@redhat.com>
1412 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1413 Set BFD_LINKER_CREATED on the stubs bfd.
1414 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
1417 2005-02-08 Mark Mitchell <mark@codesourcery.com>
1419 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
1421 (Image$$ER_RO$$Base): Define whenever RELOCATING.
1422 (Image$$ER_RO$$Limit): Likewise.
1423 (SHT$$INIT_ARRAY$$Base): Likewise.
1424 (SHT$$INIT_ARRAY$$Limit): Likeise.
1426 2005-02-10 Ben Elliston <bje@au.ibm.com>
1428 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
1430 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
1432 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
1433 to include o32 and n64 emulations.
1434 (mips64*-*-linux-gnu*): Likewise.
1436 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
1438 * ldmain.c (warning_callback, warning_find_reloc): Prepend
1439 "warning: " to warning messages.
1441 2005-02-04 Alan Modra <amodra@bigpond.net.au>
1443 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
1444 look up symbol for etree_provide here.
1446 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
1448 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
1450 2005-02-01 Edward Welbourne <eddy@opera.com>
1451 Nick Clifton <nickc@redhat.com>
1453 * ld.texinfo (Source Code Reference): New node describing how to
1454 access linker script defined variables from source code.
1456 2005-02-01 Alan Modra <amodra@bigpond.net.au>
1458 * ld.texinfo: Clarify --as-needed operation.
1460 2005-01-31 Andrew Cagney <cagney@gnu.org>
1462 * configure: Regenerate to track ../gettext.m4.
1464 2005-01-31 Nick Clifton <nickc@redhat.com>
1466 * ldver.c (ldversion): Bump reported copyright date to 2005.
1468 2005-01-31 Nick Clifton <nickc@redhat.com>
1470 * configure.tgt: Remove obsolete targets m68k-lynxos and
1473 2005-01-28 Julian Brown <julian@codesourcery.com>
1475 * emultempl/armelf.em (fix_v4bx): New variable.
1476 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
1478 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
1479 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
1480 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
1481 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
1482 * NEWS: Mention --fix-v4bx.
1483 * ld.texinfo: Document --fix-v4bx.
1485 2005-01-25 Mark Mitchell <mark@codesourcery.com>
1487 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
1488 as to include .ARM.exidx$${Base,Limit}.
1489 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
1490 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
1491 Put .init_array, .fini_array, etc. into the read-only data
1494 2005-01-25 Alan Modra <amodra@bigpond.net.au>
1496 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
1497 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
1498 only needed by an as-needed lib that didn't get linked.
1500 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1502 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
1503 __DTOR_LIST__ description.
1505 2005-01-23 Alan Modra <amodra@bigpond.net.au>
1507 * ld.texinfo (Location Counter <dot outside sections>): Document
1508 effects of orphan section placement, and ". = ." workaround.
1509 * Makefile.in: Regenerate.
1511 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
1513 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
1514 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
1516 2005-01-21 Jakub Jelinek <jakub@redhat.com>
1518 * ldgram.y (AS_NEEDED): New token.
1519 (input_list): Handle AS_NEEDED ( input_list ).
1520 * ldlex.l (AS_NEEDED): Add.
1521 * ld.texinfo: Document AS_NEEDED ().
1522 * NEWS: Mention AS_NEEDED ().
1524 2005-01-21 Ben Elliston <bje@au.ibm.com>
1526 * ldlang.c (lang_reasonable_defaults): Remove.
1527 (lang_process): Don't call lang_reasonable_defaults.
1529 * ldexp.c (exp_assop): Remove #if 0'd code.
1530 (exp_print_tree): Likewise.
1531 * ldlang.c (lang_memory_region_lookup): Likewise.
1532 (open_output): Likewise.
1533 (lang_do_assignments_1): Likewise.
1534 (lang_place_orphans): Likewise.
1535 (lang_enter_output_section_statement): Likewise.
1536 (lang_reasonable_defaults): Likewise.
1537 * ldlang.h (struct lang_input_statement_struct): Likewise.
1538 * mri.c (mri_draw_tree): Likewise.
1539 (mri_load): Likewise.
1540 * pe-dll.c (generate_reloc): Likewise.
1541 (make_import_fixup_entry): Likewise.
1542 (pe_as16): Likewise.
1543 * emultempl/beos.em (set_pe_subsystem): Likewise.
1544 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
1545 * emultempl/pe.em: Likewise.
1546 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
1548 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1550 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
1551 (earmelfb_linux_eabi.c): New target.
1552 * Makefile.in: Regenerated.
1553 * configure.tgt (arm*b-*-linux-gnueabi): New target.
1554 * emulparams/armelfb_linux_eabi.sh: New file.
1556 2005-01-20 Nick Hudson <skrll@netbsd.org>
1559 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
1560 Handle bfd_elf32_hppa_nbsd_vec.
1562 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
1564 * ldmain.h (ld_sysroot): Change type to a constant string.
1565 * ldmain.c (ld_sysroot): Likewise.
1566 (get_relative_sysroot, get_sysroot): New functions, adding command-line
1567 support for changing the sysroot.
1568 (main): Call the new functions.
1569 * lexsup.c (OPTION_SYSROOT): New.
1570 (ld_options): Add --sysroot.
1571 (parse_args): Add a dummy handler for it.
1572 * ld.texinfo (--sysroot): Document.
1573 * NEWS: Mention the new --sysroot option.
1575 2005-01-18 Alan Modra <amodra@bigpond.net.au>
1577 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
1578 (lang_place_orphans): Don't abort on just_syms_flag, instead call
1581 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
1583 * defilep.y (def_name, def_library): Combine into...
1584 (def_image_name): New function. Strip name to basename,
1587 2005-01-12 Mark Kettenis <kettenis@gnu.org>
1589 * configure.in: Be sure to invoke config.sub using the shell.
1590 * configure: Regenerate.
1592 2005-01-11 Alan Modra <amodra@bigpond.net.au>
1594 * configure.host: Correct sed patterns for last change.
1596 2005-01-10 Nick Clifton <nickc@redhat.com>
1599 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
1600 to determine whether config.make_executable should be set to FALSE in
1601 conjunction with config.fatal_warnings.
1602 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
1603 (einfo): Pass TRUE as the extra argument.
1605 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
1607 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
1608 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
1609 (ia64-*-aix): Delete - this target is obsolete, and would be
1610 broken by this patch.
1612 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1614 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
1615 (sparc64-sun-solaris2*): New host.
1617 2005-01-06 Paul Brook <paul@codesourcery.com>
1619 * Makefie.am: Add earmelf_vxworks.
1620 * Makefile.in: Regenerate.
1621 * configure.tgt: Make arm-*-vxworks a separate case.
1622 * emulparams/armelf_vxworks.sh: New function.
1624 2005-01-06 Alan Modra <amodra@bigpond.net.au>
1626 * emultempl/ppc64elf.em (no_multi_toc): New var.
1627 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
1628 (OPTION_NO_MULTI_TOC): Define.
1629 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
1630 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1632 2005-01-05 Nick Clifton <nickc@redhat.com>
1635 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
1636 Standard's specification for parsable error messages.
1638 2005-01-04 Paul Brook <paul@codesourcery.com>
1640 * Makefile.am: Correct dependency for earmsymbian.c.
1641 * Makefile.in: Regenerate.
1643 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
1645 * emultempl/pe.em (set_pe_subsystem): Change second arg to
1646 lang_add_entry to FALSE.
1648 2004-12-23 Nick Clifton <nickc@redhat.com>
1651 * emulparams/shelf.sh (.stack): Increase stack start address to
1654 2004-12-20 Nick Clifton <nickc@redhat.com>
1656 * ldmain.c (main): Issue an error message if -static and -shared
1659 2004-12-17 Jakub Jelinek <jakub@redhat.com>
1661 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
1662 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
1663 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
1664 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
1665 PT_GNU_RELRO segment end.
1667 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
1669 * configure.tgt: Add s390x-ibm-tpf support.
1671 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
1673 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
1676 2004-12-07 Ben Elliston <bje@gnu.org>
1678 * ldemul.h: Forward declare struct option.
1680 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
1682 * scripttempl/pe.sc (.data): Add .jcr subsection.
1684 2004-11-30 Paul Brook <paul@codesourcery.com>
1686 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
1688 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
1690 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
1691 * Makefile.in: Regenerate.
1693 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
1695 * emultempl/pe.em: Add --subsystem:xbox as well as
1697 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
1698 and numeric subsystems.
1700 2004-11-24 Alan Modra <amodra@bigpond.net.au>
1702 * ldexp.c (fold_name): Correct PR 338 fix.
1704 2004-11-19 Mark Mitchell <mark@codesourcery.com>
1706 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
1707 (earmelf_linux_eabi.c): New target.
1708 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
1709 * emulparams/armelf_linux_eabi.sh: New file.
1710 * Makefile.in: Regenerated.
1712 2004-11-19 Nick Clifton <nickc@redhat.com>
1715 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
1716 LENGTH fields in the MEMORY command, to explicitly state that
1717 symbols cannot be used in their expressions.
1719 2004-11-19 Jon Beniston <jon@beniston.com>
1721 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
1722 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
1723 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
1724 which return the length and origin of a memory.
1725 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
1726 * NEWS: Mention support for ORIGIN and LENGTH operators.
1728 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
1730 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
1731 a dynamic object for stubs.
1733 2004-11-04 Paul Brook <paul@codesourcery.com>
1735 * ld.texinfo: Document --default-imported-symver.
1736 * ldmain.c (main): Set link_info.default_imported_symver.
1737 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
1738 (ld_options): Add --default-imported-symver.
1739 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
1741 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
1742 Vineet Sharma <vineets@noida.hcltech.com>
1744 * Makefile.am: Add entries for new maxq-coff target.
1745 * Makefile.in: Regenerate.
1746 * configure.tgt: Add support for maxq.
1747 * emulparams/maxqcoff.sh: New File.
1748 * scripttempl/maxqcoff.sc: New linker script for target maxq.
1749 * NEWS: Mention the new target.
1751 2004-11-04 Daniel Jacobowitz <dan@debian.org>
1753 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
1754 (earmelf_oabi.c): Remove rule.
1755 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
1756 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
1757 * Makefile.in: Regenerated.
1759 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
1761 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
1762 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
1763 (FINI_START): Ditto.
1764 (INIT_END): Remove emitted "jump [sp+]".
1767 2004-11-04 Alan Modra <amodra@bigpond.net.au>
1769 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
1770 (no_opd_opt, no_toc_opt): New static vars.
1771 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
1773 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
1774 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
1775 (PARSE_AND_LIST_OPTIONS): Describe new options.
1776 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1778 2004-10-27 Nick Clifton <nickc@redhat.com>
1780 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
1781 parameter to invocation of lang_section_start.
1782 * emultempl/aix.em (_handle_option): Likewise.
1784 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
1785 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
1786 * Makefile.in: Regenerate.
1788 2004-10-26 Mark Mitchell <mark@codesourcery.com>
1790 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
1791 __exidx_{start,end} when not relocating.
1793 2004-10-25 Mark Mitchell <mark@codesourcery.com>
1795 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
1796 * ldexp.h (segment_type): New type.
1797 (segments): New variable.
1798 * ldexp.c (segments): New variable.
1799 (exp_print_token): Handle SEGMENT_START.
1800 (fold_binary): Likewise.
1801 * ldgram.y (SEGMENT_START): Declare it as a token.
1802 (exp): Handle SEGMENT_START.
1803 * ldlang.h (lang_address_statement_type): Add segment field.
1804 (lang_section_start): Change prototype.
1805 * ldlang.c (map_input_to_output_sections): Do not process section
1806 assignments if a corresponding SEGMENT_START has already been
1808 (lang_section_start): Add segment parameter.
1809 * ldlex.l (SEGMENT_START): Add it.
1810 * lexsup.c (seg_segment_start): New function.
1811 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
1812 * ld.texinfo (SEGMENT_START): Document it.
1813 * emulparams/armsymbian.sh (EMBEDDED): Set it.
1814 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
1815 base addresses. Do not map relocations.
1816 * NEWS: Mention SEGMENT_START.
1818 2004-10-26 Paul Brook <paul@codesourcery.com>
1820 * ld.texinfo: Document --default-symver.
1821 * ldmain.c (main): Set link_info.create_default_symver.
1822 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
1823 (ld_options): Add default-symver.
1824 (parse_args): Handle OPTION_DEFAULT_SYMVER.
1826 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
1828 * pe-dll.c (process_def_file): Don't export all symbols by default if
1829 building a position-independent executable.
1831 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1834 * ldmain.c (reloc_overflow): Accept a pointer to struct
1835 bfd_link_hash_entry. Report symbol location for relocation
1838 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
1840 * genscripts.sh (libpath.exp): Really generate for first
1843 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
1845 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
1846 comparison and replacement of filenames.
1848 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
1851 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
1852 option on linker script as the one for linker script.
1854 2004-10-16 Daniel Jacobowitz <dan@debian.org>
1856 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
1857 (check_excluded_libs): New.
1858 (load_symbols): Call check_excluded_libs.
1859 * ldlang.h (add_excluded_libs): New prototype.
1860 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
1861 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
1862 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
1863 * ld.texinfo (Command Line Variables): Document --exclude-libs.
1864 (Options Specific to i386 PE Targets): Remove --exclude-libs.
1866 2004-10-15 Alan Modra <amodra@bigpond.net.au>
1868 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
1869 failing link script assert.
1871 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
1873 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
1876 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
1877 (SMALL_DATA_DTOR): Set.
1878 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
1879 (SMALL_DATA_DTOR): Unset.
1880 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
1881 after .data. If SMALL_DATA_DTOR is set, move .dtors after
1884 2004-10-14 Alan Modra <amodra@bigpond.net.au>
1887 * ldlang.h (lang_output_section_statement_type): Make "next" a
1888 struct lang_output_section_statement_struct *.
1889 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
1890 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
1891 * ldlang.c (lang_output_section_find_1): Adjust for changed
1892 output_section_statement "next".
1893 (strip_excluded_output_sections): Likewise.
1894 (lang_record_phdrs): Likewise.
1895 (lang_output_section_find_by_flags): New function.
1896 (output_prev_sec_find): Move from pe.em. Adjust iterator.
1897 (lang_insert_orphan): New function. Tail end of elf32.em's
1898 place_orphan merged with that from pe.em. Allow bfd_section to
1899 be placed first. New heuristic for placing new output section
1900 statement in existing script, and accompanying split of __start
1901 symbol alignment into a separate assignment to dot.
1902 (lang_add_section): Consistently use output->bfd_section rather than
1903 an alias, section->output_section.
1904 (map_input_to_output_sections): Rename overly long arg. Move
1905 initialization of data_statement output section to here..
1906 (lang_check_section_addresses): ..from here.
1907 (print_assignment): Correct printing of etree_assert.
1908 (print_all_symbols): Don't bomb if userdata is NULL.
1909 (IGNORE_SECTION): Rearrange.
1910 * emultempl/elf32.em (output_rel_find): Adjust interator.
1911 (output_prev_sec_find): Delete.
1912 (struct orphan_save): Delete.
1913 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
1914 flags without creating a duplicate output section statement.
1915 Revise code holding history of various orphan section placements.
1916 Allow orphan sections to place before script specified output
1917 sections. Call lang_output_section_find_by_flags when placement
1918 by name fails. Use lang_insert_orphan.
1919 * emultempl/mmo.em (output_prev_sec_find): Delete.
1920 (struct orphan_save): Delete.
1921 (mmo_place_orphan): Revise code holding history of orphan placement.
1922 Allow orphans to place before existing output sections. Use
1924 * emultempl/pe.em (output_prev_sec_find): Delete.
1925 (struct orphan_save): Delete.
1926 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
1929 2004-10-13 Mark Mitchell <mark@codesourcery.com>
1931 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
1934 2004-10-13 Alan Modra <amodra@bigpond.net.au>
1937 * ldcref.c (check_section_sym_xref): Delete.
1938 (check_local_sym_xref): New function.
1939 (check_nocrossrefs): Adjust call.
1940 * emultempl/pe.em (struct orphan_save): Add os_tail.
1941 (place_orphan): Backport assorted fixes from elf32.em.
1943 2004-10-12 Bob Wilson <bob.wilson@acm.org>
1945 * emultempl/xtensaelf.em: Use ISO C90 formatting.
1947 2004-10-11 Jakub Jelinek <jakub@redhat.com>
1949 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
1950 getline for portability.
1952 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
1953 (gld${EMULATION_NAME}_parse_ld_so_conf,
1954 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
1955 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
1957 2004-10-11 Alan Modra <amodra@bigpond.net.au>
1960 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
1961 rejected when linking statically.
1963 2004-10-08 Daniel Jacobowitz <dan@debian.org>
1965 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
1967 2004-10-07 Bob Wilson <bob.wilson@acm.org>
1969 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
1970 assembler-generated longcall sequences. Describe new --size-opt
1972 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
1973 * emultempl/xtensaelf.em (remove_section,
1974 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
1975 elf_xtensa_after_open): New.
1976 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
1977 OPTION_NO_LITERAL_MOVEMENT): Define.
1978 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
1979 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
1980 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
1981 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
1982 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
1983 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
1984 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
1985 * Makefile.am (eelf32xtensa.c): Update dependencies.
1986 * Makefile.in: Regenerate.
1988 2004-10-07 Jeff Baker <jbaker@qnx.com>
1990 * lexsup.c: Handle --warn-shared-textrel option.
1991 (ld_options): Restore alpha sorting of options.
1992 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
1993 * ld.texinfo: Add documentation for --warn-shared-textrel.
1994 * NEWS: Added mention of --warn-shared-textrel option.
1996 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
1998 * emultempl/crxelf.em (disable_relaxation): Add.
1999 (crxelf_before_allocation): Enable --relax option by default.
2000 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
2001 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
2002 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
2004 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
2006 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
2007 --sort-section name|alignment.
2009 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
2010 --sort-section name|alignment.
2012 * ld.h (sort_type): New enum.
2013 (wildcard_spec): Change the type of `sorted' to sort_type.
2015 * ldgram.y (SORT): Removed.
2016 (SORT_BY_NAME): Added.
2017 (SORT_BY_ALIGNMENT): Added.
2018 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
2020 (input_section_spec_no_keep): Updated `sorted'.
2021 (statement): Replace SORT with SORT_BY_NAME.
2023 * ldlang.c (compare_section): New function to compare 2
2024 sections with different sorting schemes.
2025 (wild_sort): Updated. Use compare_section.
2026 (update_wild_statements): New function.
2027 (lang_process): Call update_wild_statements before
2028 map_input_to_output_sections.
2030 * ldlex.l (SORT_BY_NAME): New.
2031 (SORT_BY_ALIGNMENT): New.
2032 (SORT): Return SORT_BY_NAME.
2034 * ldmain.c (sort_section): New. Defined.
2035 (main): Initialize it to none.
2037 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
2038 (ld_options): Add an entry for OPTION_SORT_SECTION.
2039 (parse_args): Handle OPTION_SORT_SECTION.
2041 * mri.c (mri_draw_tree): Updated `sorted'.
2043 2004-10-04 Jakub Jelinek <jakub@redhat.com>
2045 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
2046 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
2048 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
2049 and . as second argument.
2050 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
2051 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
2052 (fold_binary): Add it here. Insert padding to make relro_end
2053 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
2054 exp_dataseg_relro_adjust phase just use previously computed
2056 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
2057 relro_adjust here. Call lang_size_sections_1 once more if there
2058 was too big padding at DATA_SEGMENT_RELRO_END.
2059 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
2061 2004-10-01 Paul Brook <paul@codesourcery.com>
2063 * emulparams/armelf.sh: Add unwinding table sections.
2065 2004-09-30 Filip Navara <navaraf@reactos.com>
2067 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
2068 correct base address for position independant executables.
2069 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
2070 executables as DLLs.
2072 2004-09-30 Paul Brook <paul@codesourcery.com>
2074 * ld.texinfo: Document --target2=abs.
2075 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
2077 2004-09-29 Nick Clifton <nickc@redhat.com>
2079 * scripttempl/xstormy16.sc: Only perform the assignments to the
2080 ROM region when not performing a relocatable link. The ROM region
2081 does not start at address 0, but the sections will.
2082 * Makefile.am: Fix linker script dependency for the generation of
2084 * Makefile.in: Regenerate.
2086 2004-09-18 Filip Navara <navaraf@reactos.com>
2088 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
2089 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
2090 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
2092 * scripttempl/pe.sc: Make the virtual address and file offset synced if
2093 the alignment is lower than the target page size.
2095 2004-09-27 Filip Navara <navaraf@reactos.com>
2097 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
2098 def_file_parse to handle pe_def_file if NULL and prevent crash with
2101 2004-09-27 Alan Modra <amodra@bigpond.net.au>
2103 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
2104 --emit-stub-syms automatically when --emit-relocs.
2106 2004-09-24 Paul Brook <paul@codeosurcery.com>
2108 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
2109 .fini_array sections.
2111 2004-09-19 Andreas Schwab <schwab@suse.de>
2113 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
2114 base so that relro end is suitably aligned.
2116 2004-09-17 Paul Brook <paul@codesourcery.com>
2118 * ld.texinfo: Rename arm-specific section. Document --target*
2119 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
2120 * emulparams/armelf_linux.sh: Ditto.
2121 * emulparams/armelf_nbsd.sh: Ditto.
2122 * emultempl/armelf.em: Set default for TARGET2_TYPE.
2123 (target2_type): New variable.
2124 (arm_elf_before_allocation): Don't pass target1_type.
2125 (arm_elf_create_output_section_statements): New function.
2126 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
2127 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
2128 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
2129 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
2130 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
2131 argument to bfd_elf32_arm_process_before_allocation.
2133 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2135 * ldexp.c (fold_name): Update u.undef.next refs.
2136 * emultempl/pe.em: Likewise.
2137 * emultempl/sunos.em: Likewise.
2139 2004-09-17 Alan Modra <amodra@bigpond.net.au>
2141 * Makefile.am: Run "make dep-am".
2142 * Makefile.in: Regenerate.
2143 * config.in: Regenerate.
2144 * configure: Regenerate.
2145 * aclocal.m4: Regenerate.
2146 * po/ld.pot: Regenerate.
2148 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
2150 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
2154 2004-09-16 Alan Modra <amodra@bigpond.net.au>
2156 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
2157 to bfd_elf32_arm_process_before_allocation call.
2159 2004-09-13 Paul Brook <paul@codesourcery.com>
2161 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
2162 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
2164 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
2166 * configure: Regenerated with autconfig 2.13.
2168 2004-09-07 Andreas Schwab <schwab@suse.de>
2170 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
2171 alignment before adjusting DATA_SEGMENT_RELRO_END.
2173 2004-09-06 Mark Mitchell <mark@codesourcery.com>
2175 * emulparams/armsymbian.sh: Use armbpabi script.
2176 * scripttempl/armbpabi.sc: New script.
2178 2004-09-02 Mark Mitchell <mark@codesourcery.com>
2180 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
2181 (earmsymbian.c): New target.
2182 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
2183 * Makefile.in: Regenerated.
2184 * aclocal.m4: Likewise.
2185 * configure: Likewise.
2186 * emulparams/armsymbian.sh: New file.
2188 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
2190 * scripttempl/elf32crx.sc: Edit file with comments.
2191 (.init): Add new section.
2193 (.ctor): Control the linkage order.
2196 2004-08-27 Nick Clifton <nickc@redhat.com>
2198 * emultempl/pe.em (after_open): Do not assume that either bfd is
2201 2004-08-26 Alan Modra <amodra@bigpond.net.au>
2203 * ldlang.c (lang_init): Don't compare with TRUE.
2205 2004-08-25 Dmitry Diky <diwil@spec.ru>
2207 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
2208 * scripttempl/elf32msp430.sc: Add .profiler section definition.
2210 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
2212 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
2214 2004-08-19 Mark Mitchell <mark@codesourcery.com>
2216 * configure.tgt (arm*-*-symbianelf*): New target.
2217 (arm*-*-eabi*): Likewise.
2219 2004-08-19 Jakub Jelinek <jakub@redhat.com>
2221 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
2222 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
2223 (OPTION_NON_OVERLAPPING_OPD): Define.
2224 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
2225 --non-overlapping-opd option.
2227 2004-08-18 Alan Modra <amodra@bigpond.net.au>
2230 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
2231 was already on the undefs list.
2233 2004-08-17 Alan Modra <amodra@bigpond.net.au>
2235 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
2236 prefix the symbol field too.
2238 2004-08-13 Alan Modra <amodra@bigpond.net.au>
2240 * ldmain.c (link_callbacks): Remove "error_handler".
2241 * ldmisc.c: Include elf-bfd.h.
2242 (vfinfo): Sort comment. Handle %A. Use %A instead of
2243 bfd_get_section_indent.
2244 (error_handler): Delete.
2245 * ldmisc.h (error_handler): Delete declaration.
2247 2004-08-10 Alan Modra <amodra@bigpond.net.au>
2249 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
2250 ppc64_elf_restore_symbols.
2252 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2254 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
2255 .toc is too large on relocatable linking.
2257 2004-08-09 Alan Modra <amodra@bigpond.net.au>
2259 * emultempl/ppc64elf.em (ppc_after_open): Delete.
2260 (LDEMUL_AFTER_OPEN): Don't define.
2262 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
2264 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
2266 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
2268 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
2271 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
2273 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2275 2004-07-26 Dmitry Diky <diwil@spec.ru>
2277 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
2278 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
2280 * configure.tgt: Likewise.
2281 * emulparams/msp430all.sh: Likewise.
2282 * Makefile.in: Regenerate.
2284 2004-07-23 Nick Clifton <nickc@redhat.com>
2286 * emultempl/elf32.em (_place_orphan): Use an already existing
2287 section name if that section does not have any flags set.
2289 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
2291 * ldlang.c (already_linked_hash_entry): Removed.
2292 (already_linked): Likewise.
2293 (already_linked_table): Likewise.
2294 (section_already_linked): Call bfd_section_already_linked.
2295 (lang_process): Replace already_linked_table_init with
2296 bfd_section_already_linked_table_init and check return. Replace
2297 already_linked_table_free with bfd_section_already_linked_table_free.
2299 2004-07-21 Nick Clifton <nickc@redhat.com>
2301 * ldlang.c (init_os): Make sure that the newly allocated userdata
2302 structure is zeroed out.
2304 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2306 * NEWS: Mention the new --add-needed/--no-add-needed and
2307 --as-needed/--no-as-needed options.
2309 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
2311 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
2312 check the add_needed field.
2313 (dt_needed): New struct.
2314 (gld${EMULATION_NAME}_try_needed): Change the first argument
2315 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
2316 bit in the file where the DT_NEEDED entry comes from.
2317 (gld${EMULATION_NAME}_search_needed): Change the second
2318 argument to a pointer to struct dt_needed.
2319 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
2320 (gld${EMULATION_NAME}_after_open): Likewise.
2322 * ld.texinfo: Add --add-needed document.
2323 * ldlang.c (new_afile): Set p->add_needed.
2324 * ldlang.h (lang_input_statement_type): Add add_needed field.
2325 * ldmain.h (add_needed): Declare.
2326 * ldmain.c (add_needed): New global var.
2327 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
2328 OPTION_NO_ADD_NEEDED.
2329 (ld_options): Likewise.
2330 (parse_args): Handle them.
2332 2004-07-13 Christof Petig <christof@petig-baender.de>
2334 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
2335 for endian-ness of extracted addend.
2337 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
2339 * pe-dll.c (auto_export): Filter on just the import prefix,
2340 "_imp_", not "_imp__".
2342 2004-07-09 Nick Clifton <nickc@redhat.com>
2344 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
2346 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
2348 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
2349 (eelf32crx.c): New target.
2350 * Makefile.in: Regenerate.
2351 * configure.tgt: Handle crx-*-elf*.
2352 * emulparams/elf32crx.sh: New file.
2353 * emultempl/crxelf.em: New file.
2354 * scripttempl/elf32crx.sc: New file.
2355 * NEWS: Mention new target.
2357 2004-07-06 Nick Clifton <nickc@redhat.com>
2359 * Makefile.am: Add eshlsymbian.c.
2360 * Makefile.in: Regenerate.
2361 * configure.tgt: Add sh*-symbian-elf target.
2362 * emulparams/shlsymbian.sh: New file. Configure the
2363 sh-symbian-elf linker scripts.
2364 * scripttemp/elf32sh-symbian.sc: New file. Linker script
2365 template for the sh-symbian-elf target.
2367 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2369 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
2370 * emulparams/hppalinux.sh: Likewise.
2371 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
2372 data segment and PLT_BEFORE_GOT is defined.
2374 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2376 * ld.texinfo (WIN32): Document PE weak symbols.
2378 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2380 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
2382 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
2384 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
2387 2004-06-29 Alan Modra <amodra@bigpond.net.au>
2389 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
2392 2004-06-24 Alan Modra <amodra@bigpond.net.au>
2394 * ldlang.c (print_output_section_statement): Don't print size before
2396 (IGNORE_SECTION): Remove bfd arg. Update all callers.
2398 * ldexp.c (fold_name): .. See below.
2399 * ldlang.c (section_already_linked, print_output_section_statement,
2400 print_input_section, insert_pad, size_input_section,
2401 lang_check_section_addresses, lang_size_sections_1,
2402 lang_size_sections, lang_do_assignments_1, lang_set_startof,
2403 lang_one_common, lang_reset_memory_regions, lang_process,
2404 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
2405 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
2406 * pe-dll.c (process_def_file, generate_reloc): ..
2407 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
2408 gld${EMULATION_NAME}_before_allocation): ..
2409 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
2410 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
2411 sh64_elf_${EMULATION_NAME}_after_allocation): ..
2412 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
2413 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
2414 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
2415 "size" instead of "_raw_size" and "_cooked_size". Expand
2416 bfd_section_size macro invocations.
2418 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2420 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
2421 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
2422 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
2424 (.tls): Define ___tls_start__ and ___tls_end__.
2426 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
2428 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
2430 2004-06-18 Adam Nemet <anemet@lnxw.com>
2432 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
2433 * configure: Regenerate.
2435 2004-06-15 Jakub Jelinek <jakub@redhat.com>
2437 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
2438 .gcc_except_table output sections lost accidentally with
2441 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2443 * ldwrite.c (build_link_order): Use bfd_get_section_size
2444 instead of bfd_get_section_size_before_reloc or _raw_size.
2445 * pe-dll.c (process_def_file): Likewise.
2447 2004-06-14 Alan Modra <amodra@bigpond.net.au>
2449 From Richard Wirth <r.wirth@wirthware.de>
2450 * ldlang.c (lang_finish): Don't free lang_definedness_table.
2452 2004-05-29 Alan Modra <amodra@bigpond.net.au>
2454 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
2455 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
2457 2004-05-28 Alan Modra <amodra@bigpond.net.au>
2459 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
2461 * lexsup.c: Formatting. Wrap long lines.
2462 * ldwrite.c: Update copyright date.
2464 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
2465 (output_section_callback): Nor SEC_KEEP here.
2466 (gc_section_callback): Twiddle SEC_EXCLUDE here.
2467 (lang_gc_wild): Delete. Fold into..
2468 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
2470 (lang_process): Always call lang_gc_sections.
2471 (lang_place_orphans): Handle SEC_EXCLUDE sections.
2472 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
2475 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
2477 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
2478 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
2479 * ldlang.c (lang_add_section): Likewise.
2481 2004-05-26 Alan Modra <amodra@bigpond.net.au>
2483 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
2484 sections when doing a final link. Clear SEC_EXCLUDE when doing
2485 a relocable link, except for SEC_DEBUGGING sections.
2486 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
2487 same condition here to drop SEC_EXCLUDE orphan sections.
2489 2004-05-25 Alan Modra <amodra@bigpond.net.au>
2491 * ldlang.c (lang_process): Call bfd_merge_sections later, and
2492 only when not a relocatable link.
2493 (print_input_section): Handle SEC_EXCLUDE sections.
2494 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
2495 (lang_do_assignments_1): Likewise.
2496 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
2497 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
2498 * emultempl/hppaelf.em (build_section_lists): Likewise.
2499 * emultempl/ppc64elf.em (build_toc_list): Likewise.
2500 (build_section_lists): Likewise.
2502 2004-05-23 Andreas Schwab <schwab@suse.de>
2504 * ld.texinfo (Options): Fix typo in last change.
2506 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
2508 * ld.h (ld_config_type): Add new field: hash_table_size.
2509 * ldmain.c: Initialise the new field to zero. If it is non-zero
2510 after parsing the linker's command line call
2511 bfd_hash_set_default_size.
2512 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
2513 (ld_options): Add hash-size.
2514 (parse_args): Parse --hash-size option. Allow
2515 --reduce-memory-overheads to set the default hash table size as
2517 * ld.texinfo: Document the new switch. Also mention that
2518 --reduce-memory-overheads can affect the hash table size.
2519 * NEWS: Mention the new feature.
2521 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
2523 * NEWS: Mention new linker map file generation and the
2524 --reduce-memory-overheads option.
2525 * ld.texinfo: Document --reduce-memory-overheads option.
2526 * ld.h (map_symbol_def): New struct.
2527 (struct user_section_struct, section_userdata_type): Rename to:
2528 (struct lean_user_section_struct, lean_section_userdata_type).
2529 (struct fat_user_section_struct, fat_section_userdata_type): New.
2530 (SECTION_USERDATA_SIZE): Define.
2531 (args_type): New member reduce_memory_overheads.
2532 * ldlang.c (map_obstack): New static variable.
2533 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
2534 (lang_map): Unless command_line.reduce_memory_overheads is set,
2535 initialize lists of defined symbols for each section.
2536 (print_input_section): Unless command_line.reduce_memory_overheads
2537 is set, use print_all_symbols.
2538 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
2539 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
2540 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
2541 (ld_options): Add entry for --reduce-memory-overheads.
2542 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
2544 2004-05-19 Jakub Jelinek <jakub@redhat.com>
2546 * ldgram.y (sect_constraint): New.
2547 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2548 (section): Add sect_constraint. Pass additional argument
2549 to lang_enter_output_section_statement.
2550 * mri.c (mri_draw_tree): Pass additional argument to
2551 lang_enter_output_section_statement.
2552 * emultempl/pe.em (place_orphan): Likewise.
2553 (output_prev_sec_find): Disregard output section statements with
2555 * emultempl/mmo.em (output_prev_sec_find): Likewise.
2556 (mmo_place_orphan): Pass additional argument to
2557 lang_enter_output_section_statement.
2558 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
2559 statements with constraint == -1.
2560 (place_orphan): Pass additional argument to
2561 lang_enter_output_section_statement.
2562 * ldlang.c (lang_enter_overlay_section): Likewise.
2563 (lang_output_section_find_1): New.
2564 (lang_output_section_find): Use it.
2565 (lang_output_section_statement_lookup_1): New.
2566 (lang_output_section_statement_lookup): Use it.
2567 (check_section_callback, check_input_sections): New.
2568 (map_input_to_output_sections): Check if all input sections
2569 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
2570 (strip_excluded_output_sections): Disregard output section statements
2571 with constraint == -1.
2572 (lang_record_phdrs): Likewise.
2573 (lang_enter_output_section_statement): Add constraint argument.
2574 Use lang_output_section_statement_lookup_1.
2575 * ldlang.h (lang_output_section_statement_type): Add constraint
2576 and all_input_readonly fields.
2577 (lang_enter_output_section_statement): Adjust prototype.
2578 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
2579 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
2580 segment if all input sections are readonly.
2582 2004-05-19 Adam Nemet <anemet@lnxw.com>
2584 * scripttempl/i386lynx.sc: Remove file.
2586 2004-05-17 Bob Wilson <bob.wilson@acm.org>
2588 * ld.texinfo (Output Section Address): Correct subsection name.
2590 2004-05-17 Adam Nemet <anemet@lnxw.com>
2592 * configure.tgt (powerpc-*-lynxos* case): New case.
2593 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
2594 * emulparams/ppclynx.sh: New file.
2595 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
2596 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
2597 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
2598 (eppclynx.c): New rule.
2599 * Makefile.in: Regenerate.
2601 2004-05-13 Joel Sherrill <joel@oarcorp.com>
2603 * configure.tgt (or32-*-rtems*): Switch to elf and
2604 support versioned targets.
2606 2004-05-13 Nick Clifton <nickc@redhat.com>
2608 * po/fr.po: Updated French translation.
2610 2004-05-11 Jakub Jelinek <jakub@redhat.com>
2612 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
2613 for binaries, -shared and -pie.
2614 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
2615 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
2616 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
2617 (OTHER_RELRO_SECTIONS): ... this.
2618 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
2619 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
2620 -z relro and -z norelro.
2621 (gld${EMULATION_NAME}_list_options): Add it to usage.
2622 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
2623 -z relro scripts when appropriate.
2624 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
2625 Create separate .got.plt section if SEPARATE_GOTPLT.
2626 Move sections which are only written during relocation handling
2627 to the beginning of RW segment. If NO_SMALL_DATA, move .got
2628 before .data. Add DATA_SEGMENT_RELRO_END directive.
2629 Include OTHER_RELRO_SECTIONS.
2630 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
2631 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
2632 (fold_unary): Likewise.
2633 (fold_binary): Handle -z relro.
2634 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
2635 exp_dataseg_relro_adjust phases. Add relro_end field.
2636 * ldmain.c (main): Initialize link_info.relro to FALSE.
2637 * ldlang.c (lang_size_sections): Handle -z relro.
2639 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2641 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
2643 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
2645 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
2646 before printing it with %W.
2648 2004-05-07 Brian Ford <ford@vss.fsi.com>
2649 DJ Delorie <dj@redhat.com>
2651 * emultempl/pe.em (real_flags): New static.
2652 (OPTION_LARGE_ADDRESS_AWARE): New define.
2653 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
2654 (gld_${EMULATION_NAME}_list_options): Likewise.
2655 (gld${EMULATION_NAME}_handle_option): Likewise.
2656 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
2657 * ld.texinfo: Document it.
2660 2004-05-07 Brian Ford <ford@vss.fsi.com>
2662 * NEWS: Mention DWARF 2 support for i386pe.
2664 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
2666 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
2669 2004-04-30 Alan Modra <amodra@bigpond.net.au>
2671 * ldlang.c (unique_section_p): Pass section parm, return true on
2673 (output_section_callback): Adjust.
2674 * ldlang.h (unique_section_p): Update prototype.
2675 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
2677 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
2679 * ld.texinfo (--gc-sections): Remove restriction for
2682 2004-04-29 Brian Ford <ford@vss.fsi.com>
2684 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
2685 for DWARF 2/3. Update stab section's syntax.
2687 2004-04-29 Alan Modra <amodra@bigpond.net.au>
2689 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
2690 (fill_edata): Correct pointer arithmetic.
2692 2004-04-21 Chris Demetriou <cgd@broadcom.com>
2694 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
2695 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
2696 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
2697 (EXTRA_EM_FILE): Use mipsecoff.em
2698 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
2699 (EXTRA_EM_FILE): Use mipsecoff.em
2700 * emultempl/mipsecoff.em: Restructure to be included as an
2701 extra emulation file.
2702 (check_sections, gld${EMULATION_NAME}_after_open)
2703 (gld${EMULATION_NAME}_after_allocation)
2704 (gld${EMULATION_NAME}_get_script)
2705 (ld_${EMULATION_NAME}_emulation): Remove
2706 (gld${EMULATION_NAME}_before_parse): Rename to...
2707 (mipsecoff_before_parse): This.
2708 (LDEMUL_BEFORE_PARSE): Define.
2709 * emultempl/mipself.em: Remove file.
2710 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
2711 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
2713 * Makefile.am: Remove dependencies on emultempl/mipself.em.
2714 * Makefile.in: Regenerate.
2716 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
2718 * ld.texinfo (synthesizing on H8/300): Information about linker
2719 relaxation support for bit manipulation instructions and system
2720 control instructions is added.
2722 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
2724 * NEWS: Mention change in DEFINED semantics.
2726 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
2728 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
2729 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
2730 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
2732 2004-04-21 Ben Elliston <bje@au.ibm.com>
2734 * ld.texinfo (Simple Example): Add missing punctuation.
2736 2004-04-20 Chris Demetriou <cgd@broadcom.com>
2738 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
2740 2004-04-19 Jakub Jelinek <jakub@redhat.com>
2742 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
2745 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
2747 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
2748 with default priority. Likewise for dtors.
2750 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2752 * configure.host: Remove mips*-dec-bsd* target.
2753 * configure.tgt: Likewise.
2755 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
2757 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
2758 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
2759 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
2760 * emultempl/irix.em: New file.
2761 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
2763 * Makefile.in: Regenerate.
2765 2004-04-01 Paul Brook <paul@codesourcery.com>
2767 * emultempl/armelf.em (byteswap_code): Add.
2768 (arm_elf_before_allocation): Pass extra parameter.
2769 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
2770 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
2771 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
2772 * emultempl/armelf_oabi.em: Pass extra parameter.
2773 * ld.texinfo: Document --be8.
2775 2004-03-30 Stan Shebs <shebs@apple.com>
2777 Remove long-obsolete MPW support.
2778 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
2779 * Makefile.am (mpw): Remove file-presynthesizing actions.
2780 * Makefile.in: Likewise.
2781 * ldfile.c (slash): Remove MPW case.
2782 * ldlex.l [MPW]: Remove unused definition.
2784 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
2786 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
2787 (eelf32cr16c.c): New target.
2788 * Makefile.in: Regenerate.
2789 * configure.tgt: Handle cr16c-*-elf*.
2790 * emulparams/elf32cr16c.sh: New file.
2791 * scripttempl/elfcr16c.sc: Likewise
2792 * NEWS: Mention support for new target.
2794 2004-03-30 Nick Clifton <nickc@redhat.com>
2796 * po/sv.po: Updated Swedish translation.
2798 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2800 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
2801 * emultempl/hppaelf.em: Likewise.
2802 * emultempl/ppc64elf.em: Likewise.
2803 * emultempl/sh64elf.em: Likewise.
2805 2004-03-25 Alan Modra <amodra@bigpond.net.au>
2807 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
2808 size_dynamic_sections call.
2810 2004-03-23 Alan Modra <amodra@bigpond.net.au>
2813 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
2814 link_info.wrap_char.
2816 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2818 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
2819 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
2821 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
2823 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
2825 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2827 * config.in: Regenerate.
2828 * po/ld.pot: Regenerate.
2830 2004-03-18 Alan Modra <amodra@bigpond.net.au>
2832 * ld.texinfo: Add --as-needed doco.
2833 * ldmain.c (as_needed): New global var.
2834 * ldmain.h (as_needed): Declare.
2835 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
2836 OPTION_NO_AS_NEEDED.
2837 (ld_options): Likewise.
2838 (parse_args): Handle them.
2839 * ldlang.h (lang_input_statement_type): Add as_needed field.
2840 * ldlang.c (new_afile): Set p->as_needed.
2841 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
2842 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
2843 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
2845 * ldlang.c (open_input_bfds): Remove useless cast.
2846 (lang_do_assignments_1): Likewise.
2847 (lang_for_each_input_section): Delete.
2849 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2851 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2853 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
2855 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
2856 private when building implib.
2858 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2860 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
2862 (IGNORE_SECTION): Ignore .tbss sections too.
2863 (lang_size_sections_1): .tbss sections do not advance dot.
2865 2004-03-01 Andreas Schwab <schwab@suse.de>
2867 * ld.texinfo (Options): Fix example for --wrap.
2869 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
2871 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
2874 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
2876 * ldlang.c (lang_check): Use %P, not %E, in error message.
2878 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
2880 * ldlang.h (struct lang_output_section_state): Change processed
2882 * ldexp.c (check, invalid): Remove.
2883 (fold_name): Move valid_p assignments. Create undefined symbol
2884 when needed. Directly exampine section's processd flag.
2885 * ldlang.c (lang_output_section_statement_lookup): Adjust
2886 processed field init.
2887 (lang_size_sections_1): Allow LOADADDR when determining section's
2888 VMA. Adjust error message. Fold data statement's expr.
2889 (lang_size_sections): Correctly increment lang_statement_iteration.
2891 2004-02-23 Alan Modra <amodra@bigpond.net.au>
2893 * ldexp.c (fold_tree): Follow indirect symbols.
2895 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
2897 * ldgram.y (exp): Add two operand ALIGN.
2898 * ldexp.c (fold_binary): Add ALIGN_K case.
2899 * ld.texinfo (ALIGN): Document two operand version.
2901 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
2903 * ldlang.c (map_input_to_output_sections): Initialize sections
2904 mentioned in a data statement expression.
2905 (lang_do_assignments_1): Add data statement's expression's
2908 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
2910 * ldgram.y (statement_anywhere): Add assert rule.
2911 * ldlang.c (exp_init_os): Add assert case.
2913 2004-02-14 Andrew Cagney <cagney@redhat.com>
2915 * ldmain.c (remove_output): Call bfd_cache_close.
2917 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
2919 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
2920 .MIPS.content* and .MIPS.events* sections.
2922 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2924 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
2925 .note.gnu.arm.ident to after allocated sections. Mark its
2928 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
2930 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
2931 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
2932 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
2933 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
2934 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
2936 2004-02-05 Nick Clifton <nickc@redhat.com>
2938 * emultempl/pe.em (_after_open): Fix typo in previous delta.
2940 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
2942 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
2944 2004-01-28 Alan Modra <amodra@bigpond.net.au>
2946 * genscripts.sh: Fix typo.
2948 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
2950 2004-01-24 Jakub Jelinek <jakub@redhat.com>
2952 * emulparams/elf64_ia64.sh: Put .rela.opd into
2953 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
2955 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
2957 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
2958 * ld.texinfo (--omagic): Note that writable text section
2959 does not conform to published PE-COFF specs.
2960 (--enable-auto-import): Likewise.
2962 2004-01-15 Alan Modra <amodra@bigpond.net.au>
2964 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
2966 2004-01-13 Nick Clifton <nickc@redhat.com>
2968 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
2969 which if true will prevent the LMA region being used as a
2970 replacement for a default VMA region.
2971 (lang_leave_output_section_statement): Pass extra parameter.
2972 (lang_leave_overlay): Likewise.
2973 * ld.texinfo (Output Section LMA): Document that the LMA
2974 region can be set to the VMA region if no VMA has been set.
2975 * ldlang.h (struct lang_output_section_phdr_list): Create a
2976 typedef for this type. Minor formatting fixes.
2978 2004-01-13 Nick Clifton <nickc@redhat.com>
2980 * ldlang.c (lang_size_sections_1): If dot is advanced, then
2981 assume that the section should be allocated.
2983 2004-01-13 Alan Modra <amodra@bigpond.net.au>
2985 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
2986 sections. Do ignore SEC_NEVER_LOAD sections.
2987 (lang_size_sections_1): Remove test made redundant with the above.
2989 2004-01-09 Alan Modra <amodra@bigpond.net.au>
2991 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
2992 program_header_size.
2994 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
2996 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
2997 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
2998 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
2999 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
3000 (MAXPAGESIZE): Set to 64Kb.
3001 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
3002 __ROFIXUP_END__. Don't map .rofixup.got any more.
3003 * emulparams/elf32frv.sh (NOP): Set.
3004 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
3005 * configure.tgt: Add frv-*-*linux*.
3006 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
3007 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
3008 (eelf32frvfd.c): New.
3009 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
3010 * emulparams/elf32frv.sh: Reverted previous two patches.
3011 * emulparams/elf32frvfd.sh: New.
3012 * Makefile.in: Rebuilt.
3013 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
3014 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
3015 .rofixup.got to .rofixup.
3016 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
3017 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
3018 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
3020 2004-01-05 Jakub Jelinek <jakub@redhat.com>
3022 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
3023 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
3025 2004-01-03 Alan Modra <amodra@bigpond.net.au>
3027 * ldexp.c (align_n): Make static.
3028 * ldexp.h (align_n): Delete declaration.
3029 * ldlang.h (lang_enter_output_section_statement): Remove
3031 * ldlang.c (lang_enter_output_section_statement): Likewise.
3032 (TO_ADDR, TO_SIZE): Define.
3033 (opb_shift): New var.
3034 (init_opb): New function.
3035 (print_input_section): Call init_opb and use TO_ADDR.
3036 (print_data_statement, print_reloc_statement): Likewise.
3037 (print_padding_statement): Likewise.
3038 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
3039 (lang_check_section_addresses): Likewise.
3040 (lang_size_sections_1): Likewise.
3041 (lang_do_assignments_1): Likewise.
3042 (lang_set_startof): Likewise.
3043 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
3044 (lang_process): Call init_opb.
3045 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
3046 (lang_enter_overlay_section): Adjust
3047 lang_enter_output_section_statement call.
3048 * ldgram.y: Likewise.
3049 * mri.c (mri_draw_tree): Likewise.
3050 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3051 * emultempl/mmo.em (mmo_place_orphan): Likewise.
3052 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
3054 * ldfile.c (ldfile_set_output_arch): Add defarch param.
3055 * ldfile.h (ldfile_set_output_arch): Ditto.
3056 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
3057 ldfile_set_output_arch.
3058 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3059 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
3060 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
3061 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3062 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
3063 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
3064 * ldgram.y: Adjust ldfile_set_output_arch call.
3065 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3066 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
3067 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
3068 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
3069 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
3070 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3071 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
3073 2004-01-02 Bernardo Innocenti <bernie@develer.com>
3075 * configure.tgt: Add m68k-uClinux target.
3077 For older changes see ChangeLog-0203
3083 version-control: never