Commit Graph

3101 Commits

Author SHA1 Message Date
H.J. Lu 243ef1e0a5 2003-09-26 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (elf_link_read_relocs_from_section): Add an argument
	of a pointer to section. Check bad symbol index.
	(_bfd_elf_link_read_relocs): Modify calls to
	elf_link_read_relocs_from_section.
2003-09-25 07:10:42 +00:00
DJ Delorie d38eb334b6 * sh.h (R_SH_SWITCH8, R_SH_GNU_VTINHERIT, R_SH_GNU_VTENTRY,
R_SH_LOOP_START,R_SH_LOOP_END): Move to "reserved" spaces.
(R_SH_DIR16, R_SH_DIR8, R_SH_DIR8UL, R_SH_DIR8UW, R_SH_DIR8U,
R_SH_DIR8SW, R_SH_DIR8S, R_SH_DIR4UL, R_SH_DIR4UW, R_SH_DIR4U,
R_SH_PSHA, R_SH_PSHL): New.

* elf32-sh.c (sh_elf_howto_table): R_SH_SWITCH8,
R_SH_GNU_VTINHERIT, R_SH_GNU_VTENTRY,
R_SH_LOOP_START,R_SH_LOOP_END moved to "reserved" spaces,
R_SH_DIR16, R_SH_DIR8, R_SH_DIR8UL, R_SH_DIR8UW, R_SH_DIR8U,
R_SH_DIR8SW, R_SH_DIR8S, R_SH_DIR4UL, R_SH_DIR4UW, R_SH_DIR4U,
R_SH_PSHA, R_SH_PSHL added.
(sh_reloc_map): Add R_SH_DIR16 and R_SH_DIR8.
(sh_elf_relocate_section): Support new relocs.
2003-09-24 02:27:57 +00:00
Bob Wilson f0578e28d6 * elf32-xtensa.c (elf_xtensa_relocate_section): Fix typo that clobbered
dynamic relocation offsets.
2003-09-23 20:23:55 +00:00
Alan Modra 010b84c1d3 * simple.c (bfd_simple_get_relocated_section_contents): Free the
hash table using _bfd_generic_link_hash_table_free.
2003-09-23 03:59:25 +00:00
Alan Modra 7dcb9820ee * elf-bfd.h (struct bfd_elf_special_section): Remove "suffix". Change
type of prefix_length and suffix_length to int.  Rename "attributes"
	to "attr".  Comment.
	(_bfd_elf_get_sec_type_attr): Update prototype.
	* elf.c (get_special_section): Rewrite.
	(_bfd_elf_get_sec_type_attr): Return struct rather than passing in
	attr and type pointers.
	(_bfd_elf_new_section_hook): Adjust for above.
	(special_sections): Merge suffix with prefix.  Set
	prefix_length for all entries.  Set suffix_length appropriately.
	* elf32-m32r.c (m32r_elf_special_sections): Likewise.
	* elf32-m68hc11.c (elf32_m68hc11_special_sections): Likewise.
	* elf32-m68hc12.c (elf32_m68hc12_special_sections): Likewise.
	* elf32-mcore.c (mcore_elf_special_sections): Likewise.
	* elf32-sh64.c (sh64_elf_special_sections): Likewise.
	* elf32-v850.c (v850_elf_special_sections): Likewise.
	* elf32-xtensa.c (elf_xtensa_special_sections): Likewise.
	* elf64-alpha.c (elf64_alpha_special_sections): Likewise.
	* elf64-hppa.c (elf64_hppa_special_sections): Likewise.
	* elf64-ppc.c (ppc64_elf_special_sections): Likewise.
	* elf64-sh64.c (sh64_elf64_special_sections): Likewise.
	* elfxx-ia64.c (elfNN_ia64_special_sections): Likewise.
	* elfxx-mips.c (_bfd_mips_elf_special_sections): Likewise.
	* elf32-ppc.c (ppc_elf_special_sections): Likewise.  Fix .plt flags.
2003-09-23 00:40:49 +00:00
Daniel Jacobowitz 61bcf37398 * elf64-alpha.c (elf64_alpha_create_got_section): Initialize
->got if the section already exists.
2003-09-21 19:24:52 +00:00
Alan Modra 99f24a0cc6 daily update 2003-09-20 00:00:06 +00:00
Nathan Sidwell 8bfd78b3d0 * dwarf2.c (decode_line_info): Cope with an initially empty
filename table.
2003-09-19 09:01:53 +00:00
H.J. Lu 6726e1ea5d 2003-09-18 H.J. Lu <hongjiu.lu@intel.com>
* acinclude.m4: Include ../config/accross.m4.
	* aclocal.m4: Regenerated.

	* configure.host (HOST_64BIT_TYPE): Remove if it is set to long
	or long long.
	(HOST_U_64BIT_TYPE): Remove if it is set to unsigned long long.
	(host64): Remove if HOST_64BIT_TYPE is set to long.

	* configure.in (HOST_64BIT_TYPE): Set according to the size of
	long and long long.
	(HOST_U_64BIT_TYPE): Likewise.
	(host64): Likewise.
	* configure: Regenerated.
2003-09-19 03:55:40 +00:00
Alan Modra 5de3bf9096 * elf.c (elfcore_write_note): Don't use sizeof(Elf_External_note)
since some ABIs round up the size of the struct.
2003-09-19 02:08:35 +00:00
Alan Modra fdeb2c9fb7 daily update 2003-09-19 00:00:06 +00:00
H.J. Lu 9e4d8df340 2003-09-18 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (_bfd_elf_merge_symbol): Allow type change if
	the old symbol is undefined and the new symbol is defined.
2003-09-18 19:01:46 +00:00
Andreas Schwab 228ce06419 * simple.c (bfd_simple_get_relocated_section_contents): Use
_bfd_generic_link_hash_table_create instead of
	bfd_link_hash_table_create.
2003-09-18 09:10:41 +00:00
Alan Modra 5fb63ea8e6 daily update 2003-09-18 00:00:05 +00:00
Alan Modra 35a5f9c838 daily update 2003-09-17 00:00:05 +00:00
Alan Modra b3b9bb97ad daily update 2003-09-16 00:00:06 +00:00
Alan Modra 5c584c0bd2 daily update 2003-09-15 00:00:06 +00:00
Alan Modra 54612ecd11 daily update 2003-09-14 00:00:06 +00:00
Alan Modra eddbf8500e daily update 2003-09-13 00:00:06 +00:00
Alan Modra 3573e347d9 daily update 2003-09-12 00:00:05 +00:00
Alan Modra 60022f723a daily update 2003-09-11 00:00:15 +00:00
H.J. Lu fdbdabdda5 2003-09-10 H.J. Lu <hongjiu.lu@intel.com>
* elfxx-ia64.c (elfNN_ia64_special_sections): Mark all sections
	started with ".sbss" or "".sdata" as SHF_IA_64_SHORT.
2003-09-10 20:48:32 +00:00
Dave Anglin a252afa4cd * elf32-hppa.c (struct elf32_hppa_link_hash_entry,
hppa_link_hash_newfunc, hppa_build_one_stub,
	elf32_hppa_adjust_dynamic_symbol, mark_PIC_calls, allocate_plt_static,
	allocate_dynrelocs, elf32_hppa_size_dynamic_sections,
	elf32_hppa_finish_dynamic_symbol): Remove pic_call field and all code
	for generating import stubs for calls to statically linked PIC
	functions.
	(hppa_type_of_stub): Don't generate an import stub for calls to
	statically linked pic functions.  Generate import stubs for calls
	in a shared object, to functions not in a regular file, and to
	defined weak functions.  Add new argument INFO.
	(hppa_build_one_stub): Don't undef ADDIL_DP.
	(elf32_hppa_check_relocs): Don't set SEC_HAS_GOT_REF flag.
	(elf32_hppa_size_stubs): Pass info to hppa_type_of_stub.
	(final_link_relocate): Change all DLTIND relocs to DPREL relocs in a
	non-shared link.  Convert instructions that use the the linkage table
	pointer, or a facsimile thereof, to use the global data pointer when
	the reloc has been changed.
2003-09-10 18:46:08 +00:00
Alan Modra cd39598c88 daily update 2003-09-10 00:00:35 +00:00
Alan Modra 1b23b01f8e daily update 2003-09-09 00:00:06 +00:00
Joel Brobecker 42acdc7c30 * archures.c: Add new machine names for hppa.
* bfd-in2.h: Regenerate.
        * cpu-hppa.c: Use the new machine names.
2003-09-08 16:46:02 +00:00
Alan Modra 6e1ccdbeda daily update 2003-09-08 00:00:06 +00:00
Alan Modra ff8aebd45c daily update 2003-09-07 00:00:06 +00:00
Stephane Carrez 2a0e29b406 * elf32-m68hc1x.h (struct m68hc11_elf_link_hash_table): Remove
all_local_syms member.
	* elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Use bfd_elf_get_elf_syms
	to get the local symbols.
2003-09-06 21:09:40 +00:00
Stephane Carrez 3f533aa9ec * elf32-m68hc12.c (elf32_m68hc12_special_sections): New for hc11.
(elf_backend_special_sections): Define.a

	PR savannah/4950:
	* elf32-m68hc11.c (elf32_m68hc11_special_sections): The .vectors
	section is read-only.
2003-09-06 20:55:50 +00:00
Alan Modra cc1b3dc7b2 daily update 2003-09-06 00:00:13 +00:00
Alan Modra 4db070aa57 daily update 2003-09-05 00:00:05 +00:00
Nick Clifton 8ad30312ff Add binutils support for v850e1 processor 2003-09-04 11:04:38 +00:00
Alan Modra 331a33edeb daily update 2003-09-04 00:00:06 +00:00
Nick Clifton 3922a8c154 Do not skip section symbols that are used in relocs. 2003-09-03 16:06:12 +00:00
Nick Clifton 13dfd2d039 Add *kfreebsd-gnu configuration support 2003-09-03 09:32:21 +00:00
Alan Modra 902a241b02 daily update 2003-09-03 00:00:06 +00:00
Alan Modra 8308626d33 daily update 2003-09-02 00:00:05 +00:00
Alan Modra ca972297ff daily update 2003-09-01 00:00:06 +00:00
Christian Groessler 32d920dd70 fixed comment for i860_howto_pc26_reloc 2003-08-31 18:25:09 +00:00
Christian Groessler 1c0881ddd9 * elf32-i860.c (i860_howto_pc26_reloc): Finish relocation here
instead of returning bfd_reloc_continue.
2003-08-31 18:22:06 +00:00
Andreas Jaeger ac0e732ef3 * merge.c: Update to ISO C90. 2003-08-31 10:07:47 +00:00
Alan Modra 7274f0d79a daily update 2003-08-31 00:00:05 +00:00
Alan Modra eac8c92310 daily update 2003-08-30 00:00:07 +00:00
Alan Modra 1d4be3b517 daily update 2003-08-29 00:00:14 +00:00
Alan Modra ae5a54c2fa daily update 2003-08-28 00:00:16 +00:00
Ian Lance Taylor 49c97a80e3 * configure.in: Check for strtoull.
* bfd.c (bfd_scan_vma): Use strtoull when available.
	* configure, config.in: Regenerate.
2003-08-27 17:57:33 +00:00
Ian Lance Taylor ec317fb157 * configure.in: Define and substitute BFD_HOST_LONG_LONG.
* bfd-in.h: Define BFD_HOST_LONG_LONG.  Test it rather than
	__GNUC__ when deciding whether to use long long for
	BFD_HOST_64_BIT.
	* configure, Makefile.in, doc/Makefile.in, bfd-in2.h: Regenerate.
2003-08-27 17:43:39 +00:00
Christian Groessler d539b3aa78 2003-08-27 Christian Groessler <chris@groessler.org>
* elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc,
	i860_howto_splitn_reloc, i860_howto_highadj_reloc): New
	functions.
	(elf32_i860_howto_table): Insert the new functions as
	'special_function's in the proper reloc type entries.
2003-08-27 13:28:42 +00:00
Richard Sandiford 73052b5e96 * elf32-frv.c (elf32_frv_relocate_section): Use
_bfd_elf_rela_local_sym.
2003-08-27 09:21:15 +00:00