Alan Modra
ba53456e12
daily update
2005-05-04 00:00:06 +00:00
Alan Modra
04dd166740
* section.c (bfd_section_list_remove): Don't clear s->next.
...
(bfd_section_list_append): Always init s->prev.
(bfd_section_list_prepend): Define.
(bfd_section_list_insert_after): Minor optimization.
(bfd_section_removed_from_list): Rewrite.
* elf.c (assign_section_numbers): Simplify list traversal now that
bfd_section_list_remove doesn't destroy removed section next ptr.
* sunos.c (sunos_add_dynamic_symbols): Likewise.
* elfxx-ia64.c (elfNN_ia64_object_p): Use bfd_section_list_prepend.
* xcofflink.c (_bfd_xcoff_bfd_final_link): Simplify list traversal.
* bfd-in2.h: Regenerate.
2005-05-03 17:05:51 +00:00
H.J. Lu
e02b83d7f4
Regenerated.
2005-05-03 01:09:45 +00:00
H.J. Lu
5daa8fe797
bfd/
...
2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
* bfd.c (bfd): Remove section_tail and add section_last.
(bfd_preserve): Likewise.
(bfd_preserve_save): Likewise.
(bfd_preserve_restore): Likewise.
* opncls.c (_bfd_new_bfd): Likewise.
* coffcode.h (coff_compute_section_file_positions): Updated.
(coff_compute_section_file_positions): Likewise.
* elf.c (assign_section_numbers): Likewise.
* elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
* elf64-mmix.c (mmix_elf_final_link): Likewise.
* elfxx-ia64.c (elfNN_ia64_object_p): Likewise.
* elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
* sunos.c (sunos_add_dynamic_symbols): Likewise.
* xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
* ecoff.c (bfd_debug_section): Initialize prev.
* section.c (bfd_section): Add prev.
(bfd_section_list_remove): Updated.
(bfd_section_list_append): New.
(bfd_section_list_insert_after): New.
(bfd_section_list_insert_before): New.
(bfd_section_list_insert): Removed.
(bfd_section_removed_from_list): Updated.
(STD_SECTION): Initialize prev.
(bfd_section_init): Updated.
(bfd_section_list_clear): Updated.
* bfd-in2.h: Regenerated.
gas/
2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
* write.c (write_object_file): Use bfd_section_double_list_remove
to remove sections.
ld/
2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
* emultempl/elf32.em (gld${EMULATION_NAME}_strip_empty_section):
Updated for bfd_section_list_remove change.
* ldlang.c (lang_insert_orphan): Likewise.
(strip_excluded_output_sections): Likewise.
(sort_sections_by_lma): New.
(lang_check_section_addresses): Sort the sections before
checking addresses.
2005-05-03 01:05:03 +00:00
Alan Modra
b7be4033a1
daily update
2005-05-03 00:00:05 +00:00
H.J. Lu
a31501e943
2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
...
* elf.c (_bfd_elf_new_section_hook): Don't call
_bfd_elf_get_sec_type_attr on sections from input files.
2005-05-02 14:00:16 +00:00
H.J. Lu
d05da6a8c2
2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
...
* merge.c (sec_merge_init): Call bfd_hash_table_init_n with
hash table size 16699 instead of bfd_hash_table_init.
2005-05-02 13:59:16 +00:00
Paul Brook
a67b080b92
2005-05-01 Paul Brook <paul@codesourcery.com>
...
* elflink.c (_bfd_elf_merge_symbol): Skip weak definitions if a strong
definition has already been seen.
2005-05-02 03:12:21 +00:00
Alan Modra
f341cbc179
daily update
2005-05-02 00:00:05 +00:00
Paul Brook
c6596c5ecb
2005-05-01 Paul Brook <paul@codesourcery.com>
...
* elf32-arm.c (bfd_elf32_arm_process_before_allocation): Treat
R_ARM_PLT32 the same as R_ARM_PC24.
(arm_add_to_rel): Ditto.
2005-05-01 23:57:21 +00:00
Alan Modra
2c13bff76d
daily update
2005-05-01 00:00:06 +00:00
Alan Modra
7b51f1082c
daily update
2005-04-30 00:00:07 +00:00
Daniel Jacobowitz
9a813b7a53
* config.bfd: Add h8300*-*-rtemscoff.
...
Switch h8300*-*-rtems* to elf.
2005-04-29 18:41:45 +00:00
Daniel Jacobowitz
b8c449bfd0
bfd/
...
* doc/Makefile.am: Remove stamp rules. Depend on chew.c
instead of $(MKDOC).
* aclocal.m4, Makefile.in, doc/Makefile.in: Regnerated.
gas/
* doc/Makefile.am (gasver.texi): Depend on bfd/configure instead
of Makefile.
(DISTCLEANFILES): Remove.
(MAINTAINERCLEANFILES): Add asconfig.texi.
* doc/Makefile.in: Regenerated.
2005-04-29 14:03:55 +00:00
Alan Modra
c7f05afbc5
daily update
2005-04-29 00:00:06 +00:00
Paul Brook
fa0d1caba9
2005-04-28 Paul Brook <paul@codesourcery.com>
...
Merge changes only applied to Makefile.in.
* Makefile.am (BFD32_BACKENDS): Add elfxx-sparc.lo
(BFD32_BACKENDS_CFILES): Add elfxx-sparc.c
(elfxx-sparc.lo): New rule.
(elf32-sparc.lo): Add elfxx-sparc.h dependency.
(elf64-sparc.lo): Likewise.
2005-04-28 23:02:05 +00:00
Nick Clifton
0291d2913e
Applied this patch for Julian Brown <julian@codesourcery.com>
...
* elflink.c (_bfd_elf_provide_symbol): Provide symbol for weak import.
2005-04-28 10:31:24 +00:00
H.J. Lu
0002be373a
Set BFD_VERSION_DATE to 20050428.
2005-04-28 02:42:22 +00:00
H.J. Lu
26c61ae50b
2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
...
* elf-bfd.h (bfd_elf_sym_name): Also take "asection *".
* elf.c (bfd_elf_sym_name): Updated.
(group_signature): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_edit_opd): Likewise.
(ppc64_elf_edit_toc): Likewise.
(ppc64_elf_relocate_section): Likewise.
* elfcode.h (elf_slurp_symbol_table): Likewise.
* elflink.c (elf_link_input_bfd): Likewise.
* elfxx-ia64.c (elfNN_ia64_relocate_section): Call
bfd_elf_sym_name to get local symbol name when reporting errors.
2005-04-27 20:16:08 +00:00
Nick Clifton
dce669a1fd
Remove spurious spaces added by previous delta
2005-04-27 16:46:23 +00:00
H.J. Lu
6fe7699b81
Set BFD_VERSION_DATE to 20050427.
2005-04-27 14:23:48 +00:00
Nick Clifton
8c19749adc
(elf_link_input_bfd): Handle the case where a badly formatted input file results
...
in a reloc which has no associated global symbol
2005-04-27 10:09:43 +00:00
H.J. Lu
6156ef10ad
Update BFD_VERSION_DATE to 20050426.
2005-04-26 16:08:31 +00:00
Jerome Guitton
8e5b6e16ee
* bfd.m4 (BFD_NEED_DECLARATION): Restore.
2005-04-26 09:43:17 +00:00
David S. Miller
e459dc7b30
* elfxx-sparc.c (sparc_elf_append_rela_64): Add BFD64 protection.
...
(sparc_elf_r_info_64, _bfd_sparc_elf_finish_dynamic_symbol,
sparc64_finish_dyn, _bfd_sparc_elf_finish_dynamic_sections):
Likewise.
2005-04-25 21:53:38 +00:00
H.J. Lu
6d633fd282
bfd/
...
2005-04-25 H.J. Lu <hongjiu.lu@intel.com>
PR 858
* elflink.c (elf_link_input_bfd): Make non-debugging reference
to discarded section an error.
ld/testsuite/
2005-04-25 H.J. Lu <hongjiu.lu@intel.com>
* ld-discard/extern.d: Expect error.
* ld-discard/start.d: Likewise.
* ld-discard/static.d: Likewise.
2005-04-25 14:59:09 +00:00
Jerome Guitton
d34a2b1dc9
* configure.in: Replace BFD_NEED_DECLARATION checks by the
...
corresponding AC_CHECK_DECLS.
* sysdep.h: Replace NEED_DECLARATION_* checks by the corresponding
HAVE_DECL_*.
* bfd.m4 (BFD_NEED_DECLARATION): Remove, obsolete.
* configure: Regenerate.
* config.in: Ditto.
2005-04-22 13:58:14 +00:00
H.J. Lu
34f3e815d1
2005-04-21 H.J. Lu <hongjiu.lu@intel.com>
...
* Makefile.am (INCLUDES): New. Add -D_GNU_SOURCE.
(chew.o): Use it.
* Makefile.in: Regenerate.
2005-04-22 05:21:49 +00:00
Alan Modra
533edbe2ca
daily update
2005-04-22 00:00:05 +00:00
Andreas Schwab
c2e70a82ce
* elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove
...
unsigned from type of dynamic_interpreter.
* elfxx-sparc.c (_bfd_sparc_elf_link_hash_table_create): Remove
casts again.
2005-04-21 12:19:55 +00:00
Andreas Schwab
ff01938b1a
* elf.c (assign_section_numbers): Fix comment.
2005-04-21 12:13:37 +00:00
Jerome Guitton
0858d3ec47
* som.c (som_bfd_print_private_bfd_data): Add explicit cast to long
...
for struct som_exec_auxhdr fields.
2005-04-21 10:47:49 +00:00
Nick Clifton
7920ce38c3
Update to ISO-C90 and fix formatting
2005-04-21 07:45:39 +00:00
Alan Modra
20b26460df
daily update
2005-04-21 00:00:07 +00:00
David S. Miller
e8be8da4fb
* elfxx-sparc.c (sparc_elf_r_symndx_64): Fix compiler warning.
...
(_bfd_sparc_elf_link_hash_table_create): Likewise.
(allocate_dynrelocs): Likewise.
2005-04-20 18:39:26 +00:00
Jerome Guitton
ec7b76fec3
* configure.in: Fix the check for basename declaration. Add check
...
for declarations of ftello, ftello64, fseeko, fseeko64.
* configure: Regenerate.
* config.in: Ditto.
* sysdep.h: If needed, declare ftello, ftello64, fseeko, fseeko64.
2005-04-20 15:00:15 +00:00
Alan Modra
06897b50b3
daily update
2005-04-20 00:00:06 +00:00
David S. Miller
22b75d0ae6
* elfxx-sparc.c: New file.
...
* elfxx-sparc.h: New file.
* Makefile.in (BFD32_BACKENDS): Add elfxx-sparc.lo
(BFD32_BACKENDS_CFILES): Add elfxx-sparc.c
(elfxx-sparc.lo): New rule.
(elf32-sparc.lo): Add elfxx-sparc.h dependency.
(elf64-sparc.lo): Likewise.
* configure.in (bfd_elf32_sparc_vec): Add elfxx-sparc.lo
(bfd_elf64_sparc_vec): Likewise.
* configure: Regenerate.
* elf32-sparc.c: Remove common code now in elfxx-sparc.c
* elf64-sparc.c: Likewise, also use elf64_sparc_*() naming
which is more consistent with elf32-sparc.c
2005-04-19 21:26:30 +00:00
Daniel Jacobowitz
a008ac0314
* elfxx-mips.c (struct mips_elf_link_hash_entry): Update comment.
...
(mips_elf_create_local_got_entry): Check h->root.forced_local.
2005-04-19 18:33:20 +00:00
Alan Modra
c87b5a93b2
bfd/
...
* elf32-ppc.c (ppc_elf_check_relocs): Don't bother with
dynamic relocs in non-SEC_ALLOC sections.
(ppc_elf_gc_sweep_hook): Likewise.
(ppc_elf_relax_section): Likewise.
(ppc_elf_relocate_section): Likewise.
ld/testsuite/
* ld-powerpc/reloc.d: Update to suit removal of non-alloc relocs.
2005-04-19 05:44:55 +00:00
Alan Modra
d959e1a193
daily update
2005-04-19 00:00:06 +00:00
Nick Clifton
7cefacd397
(xcoff64_core_p): Fix compile time warning assigning a value to return_value.
2005-04-18 12:10:57 +00:00
H.J. Lu
278d8f3760
2005-04-17 H.J. Lu <hongjiu.lu@intel.com>
...
PR 855
* elf.c (_bfd_elf_copy_private_section_data): Don't copy linker
created group data.
2005-04-18 03:13:49 +00:00
H.J. Lu
20dbb49d3c
2005-04-17 H.J. Lu <hongjiu.lu@intel.com>
...
PR 855
* elf.c (setup_group): Properly handle zero group count.
2005-04-18 03:12:51 +00:00
Alan Modra
a3b8c86ce6
daily update
2005-04-18 00:00:04 +00:00
Mark Kettenis
6a808a40ca
* som.c (hppa_som_reloc, som_mkobject, som_is_space)
...
(som_is_subspace, compare_subspaces, som_compute_checksum)
(som_build_and_write_symbol_table, som_slurp_symbol_table): New
protoypes.
(hppa_som_reloc, compare_syms, compare_subspaces)
(som_print_symbol, som_get_section_contents)
(som_set_section_contents): Remove space after 'void *'.
(som_bfd_print_private_bfd_data): Use %lx to print longs.
(som_bfd_merge_private_bfd_data)
(som_bfd_copy_private_header_data, som_bfd_set_private_flags): New
defines.
2005-04-17 12:45:30 +00:00
Alan Modra
62310a091f
daily update
2005-04-17 00:00:05 +00:00
Alan Modra
cae4cddaa3
daily update
2005-04-16 00:00:06 +00:00
Julian Brown
33bfe77466
* bfd/bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
...
* bfd/bfd-in2.h: Regenerate.
* bfd/elf32-arm.c (elf32_arm_link_hash_table): New field, 'use_blx'.
(elf32_arm_link_hash_table_create): Initialise fix_v4bx, use_blx.
(bfd_elf32_arm_set_target_relocs): Handle use_blx.
(elf32_arm_final_link_relocate): Use Thumb BLX for R_ARM_THM_PC22
relocations if requested to.
(allocate_dynrelocs): Don't count size of omitted Thumb stubs based on
use_blx rather than symbian_p.
(elf32_arm_finish_dynamic_symbol): Don't output Thumb PLT stubs if
use_blx is in effect.
(elf32_arm_symbian_link_hash_table_create): Enable use_blx by default
for SymbianOS.
* ld/ld.texinfo: Document --use-blx.
* ld/emultempl/armelf.em (use_blx): New variable.
(arm_elf_create_output_section_statements): Communicate value of
use_blx to bfd.
(PARSE_AND_LIST_PROLOGUE): Add OPTION_USE_BLX.
(PARSE_AND_LIST_OPTIONS): Add --use-blx option.
(PARSE_AND_LIST_ARGS_CASES): Add OPTION_USE_BLX case.
2005-04-15 16:37:47 +00:00
Nick Clifton
745c12f87d
Use fprintf_vma to print vma values.
2005-04-15 11:47:47 +00:00