Commit Graph

3207 Commits

Author SHA1 Message Date
Chris Demetriou 5f74bc130d [ bfd/ChangeLog ]
2003-09-30  Chris Demetriou  <cgd@broadcom.com>

	* archures.c (bfd_mach_mipsisa64r2): New define.
	* bfd-in2.h: Regenerate.
	* aoutx.h (NAME(aout,machine_type)): Handle bfd_mach_mipsisa64r2.
	* cpu-mips.c (I_mipsisa64r2): New enum value.
	(arch_info_struct): Add entry for I_mipsisa64r2.
	* elfxx-mips.c (_bfd_elf_mips_mach)
	(_bfd_mips_elf_print_private_bfd_data): Handle E_MIPS_ARCH_64R2.
	(mips_set_isa_flags): Add bfd_mach_mipsisa64r2 case.
	(mips_mach_extensions): Add entry for bfd_mach_mipsisa64r2.

[ binutils/ChangeLog ]
2003-09-30  Chris Demetriou  <cgd@broadcom.com>

	* readelf.c (get_machine_flags): Handle E_MIPS_ARCH_64R2.

[ gas/Changelog ]
2003-09-30  Chris Demetriou  <cgd@broadcom.com>

	* configure.in (mipsisa64r2, mipsisa64r2el, mipsisa64r2*): New CPUs.
	* configure: Regenerate.
	* config/tc-mips.c (imm2_expr): New variable.
	(md_assemble, mips16_ip): Initialize imm2_expr.
	(ISA_HAS_64BIT_REGS, ISA_HAS_DROR, ISA_HAS_ROR): Add ISA_MIPS64R2.
	(macro_build): Handle +A, +B, +C, +E, +F, +G, and +H format operands.
	(macro): Handle M_DEXT and M_DINS.
	(validate_mips_insn): Handle +E, +F, +G, +H, and +I format operands.
	(mips_ip): Likewise.
	(OPTION_MIPS64R2): New define.
	(md_longopts): New entry for -mips64r2 (OPTION_MIPS64R2).
	OPTION_ASE_BASE): Increase to compensate for OPTION_MIPS64R2.
	(md_parse_option): Handle OPTION_MIPS64R2.
	(s_mipsset): Handle setting "mips64r2" ISA.
	(mips_cpu_info_table): Add mips64r2.
	(md_show_usage): Document -mips64r2 option.
	* doc/as.texinfo: Docuemnt -mips64r2 option.
	* doc/c-mips.texi: Likewise.

[ gas/testsuite/ChangeLog ]
2003-09-30  Chris Demetriou  <cgd@broadcom.com>

	* gas/mips/cp0-names-mips64r2.d: New file.
	* gas/mips/cp0sel-names-mips64r2.d: New file.
	* gas/mips/elf_arch_mips64r2.d: New file.
	* gas/mips/hwr-names-mips64r2.d: New file.
	* gas/mips/mips32r2-ill-fp64.l: New file.
	* gas/mips/mips32r2-ill-fp64.s: New file.
	* gas/mips/mips64r2-ill.l: New file.
	* gas/mips/mips64r2-ill.s: New file.
	* gas/mips/mips64r2.d: New file.
	* gas/mips/mips64r2.s: New file.
	* gas/mips/mips.exp: Define "mips64r2" arch, and run new tests.

[ include/elf/ChangeLog ]
2003-09-30  Chris Demetriou  <cgd@broadcom.com>

	* mips.h (E_MIPS_ARCH_64R2): New define.

[ include/opcode/ChangeLog ]
2003-09-30  Chris Demetriou  <cgd@broadcom.com>

	* mips.h: Document +E, +F, +G, +H, and +I operand types.
	Update documentation of I, +B and +C operand types.
	(INSN_ISA64R2, ISA_MIPS64R2, CPU_MIPS64R2): New defines.
	(M_DEXT, M_DINS): New enum values.

[ ld/ChangeLog ]
2003-09-30  Chris Demetriou  <cgd@broadcom.com>

	* ldmain.c (get_emulation): Ignore "-mips64r2".

[ ld/testsuite/ChangeLog ]
2003-09-30  Chris Demetriou  <cgd@broadcom.com>

	* ld-mips-elf/mips-elf-flags.exp: Add tests for combinations
	with MIPS64r2.

[ opcodes/ChangeLog ]
2003-09-30  Chris Demetriou  <cgd@broadcom.com>

	* mips-dis.c (mips_arch_choices): Add entry for "mips64r2"
	(print_insn_args): Add handing for +E, +F, +G, and +H.
	* mips-opc.c (I65): New define for MIPS64r2.
	(mips_builtin_opcodes): Add "dext", "dextm", "dextu", "dins",
	"dinsm", "dinsu", "drotl", "drotr", "drotr32", "drotrv", "dsbh",
	and "dshd" for MIPS64r2.  Adjust "dror", "dror32", and "drorv" to
	be supported on MIPS64r2.
2003-09-30 16:17:15 +00:00
Alan Modra f18b1227dd daily update 2003-09-30 00:00:11 +00:00
H.J. Lu b59dd4a540 2003-09-29 H.J. Lu <hongjiu.lu@intel.com>
* elfxx-ia64.c (elfNN_hpux_backend_symbol_processing): New.
	Handle SHN_IA_64_ANSI_COMMON.
	(elf_backend_section_from_bfd_section): Defined.
2003-09-29 23:25:08 +00:00
Alan Modra 1c0915057e daily update 2003-09-29 00:00:10 +00:00
Alan Modra 029304eb48 daily update 2003-09-28 00:00:10 +00:00
Alan Modra 30a7295910 daily update 2003-09-27 00:00:09 +00:00
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
Alan Modra a9b6ab4d33 daily update 2003-08-27 00:00:05 +00:00
Michael Snyder 2c848f79e9 2003-08-26 Michael Snyder <msnyder@redhat.com>
* cpu-frv.c: Remove unused enum.
2003-08-26 17:13:18 +00:00
Alan Modra dbd8c104d5 daily update 2003-08-26 00:00:06 +00:00
Maciej W. Rozycki 980491e6d5 2003-08-25 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
* reloc.c: Fix documentation for MIPS ELF relocations.
libbfd.h: Regenerate.
bfd-in2.h: Regenerate.
2003-08-25 12:39:14 +00:00
Alan Modra 2ff3acebc0 daily update 2003-08-25 00:00:06 +00:00
Jason Eckhardt 6d1227b86c 2003-08-24 Jason Eckhardt <jle@rice.edu>
* coff-i860.c (CALC_ADDEND): Define to be a no-op.
2003-08-24 20:54:05 +00:00
Jason Eckhardt f680ea79cc 2003-08-24 Jason Eckhardt <jle@rice.edu>
* elf32-i860.c (elf32_i860_relocate_pc16): Subtract 4 and
	shift by 2 before storing the relocated value.
2003-08-24 18:16:46 +00:00
Alan Modra 5c877b7234 daily update 2003-08-24 00:00:06 +00:00
Jason Eckhardt c28b1c2869 2003-08-23 Jason Eckhardt <jle@rice.edu>
[bfd/ChangeLog]
        * coff-i860.c (coff_i860_reloc_nyi): New function.
	(howto_table): Add entries for relocations PAIR, HIGHADJ, HIGH,
	LOWn, SPLITn, and BRADDR.
	(RTYPE2HOWTO): Check that the r_type is within the howto_table
	before trying to access the entry.
	(coff_i860_rtype_to_howto): Likewise.
	(coff_i860_reloc_type_lookup): New function.
	(i860_reloc_processing): New function.
	(coff_bfd_reloc_type_lookup): Define macro.
	(RELOC_PROCESSING): Define macro.
	Minor formatting adjustments.

[include/coff/ChangeLog]
	* coff/i860.h (COFF860_R_PAIR, COFF860_R_LOW0, COFF860_R_LOW1,
	COFF860_R_LOW2, COFF860_R_LOW3, COFF860_R_LOW4, COFF860_R_SPLIT0,
	COFF860_R_SPLIT1, COFF860_R_SPLIT2, COFF860_R_HIGHADJ,
	COFF860_R_BRADDR): Define new relocation constants and document.
	Minor formatting adjustments.
2003-08-23 23:00:09 +00:00
Alan Modra 40a0491a90 * elflink.h (elf_link_add_object_symbols): Don't crash on NULL owner. 2003-08-23 04:10:34 +00:00
Alan Modra 37f2f67a89 daily update 2003-08-23 00:00:05 +00:00
H.J. Lu 69bbc4c090 2003-08-22 H.J. Lu <hongjiu.lu@intel.com>
* elfxx-ia64.c (elfNN_ia64_create_dynamic_sections): Align the
	.got section at 8 bytes.
2003-08-22 23:35:59 +00:00
Alan Modra 23597ff0e8 daily update 2003-08-22 00:00:05 +00:00
Nick Clifton 85db1db4b9 Fix spelling typo. 2003-08-21 16:26:20 +00:00
Nick Clifton 8b9561304c Convert to ISO C90. Tidy up formatting. 2003-08-21 16:20:39 +00:00
Nick Clifton 6c21aa7634 For elf32-hppa-linux, objects can have OSABI=Linux or OSABI=SysV; check for
both.
2003-08-21 14:00:06 +00:00
Nick Clifton 3673a93e66 Updated translations 2003-08-21 13:52:58 +00:00
Alan Modra 9a0b3ef03e daily update 2003-08-21 00:00:05 +00:00
Richard Sandiford 427b80f4a9 * elf64-mips.c (elf_backend_copy_indirect_symbol): Define. 2003-08-20 13:53:42 +00:00
Nick Clifton 560e09e9cc Better handking for unresolved symbols 2003-08-20 08:37:19 +00:00
Alan Modra 8a9cddf46f daily update 2003-08-20 00:00:04 +00:00
Alan Modra 9424b17afa daily update 2003-08-19 00:00:06 +00:00
H.J. Lu 4091ea4e21 2003-08-18 Andreas Schwab <schwab@suse.de>
* libpei.h (bfd_pe_executable_p): Also recognize efi-app
	executables.
2003-08-18 18:26:56 +00:00
Alan Modra 91a2fd1fbe daily update 2003-08-18 00:00:06 +00:00
Hans-Peter Nilsson b0cdc7bcb0 * simple.c (bfd_simple_get_relocated_section_contents): Move
reloc_done hack to before first bfd_section_size call.  Change all
	returns to use new wrapper macro RETURN, restoring sec->reloc_done.
2003-08-17 07:37:33 +00:00
Alan Modra 95173cb290 daily update 2003-08-17 00:00:06 +00:00
Alan Modra c1993d0493 * elf64-ppc.c: Don't include elf/ppc.h. 2003-08-16 13:42:43 +00:00
Alan Modra 53db97b0b3 daily update 2003-08-16 00:00:06 +00:00
Alan Modra 12d4560293 daily update 2003-08-15 00:00:06 +00:00
Richard Sandiford 792b4a532f * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Fix PT_DYNAMIC
code to work with 64-bit bfds.
2003-08-14 09:30:34 +00:00
Alan Modra fdc09da8b5 * dep-in.sed: Remove libintl.h.
* Makefile.am (SRC-POTFILES.in, BLD-POTFILES.in): Unset LC_COLLATE.
	(POTFILES.in): Remove target.
	* Makefile.in: Regenerate.
2003-08-14 07:03:00 +00:00
Alan Modra ef417f4de3 daily update 2003-08-14 00:00:06 +00:00
Alan Modra 51dc90a107 daily update 2003-08-13 00:00:06 +00:00
Alan Modra ee87f2dab8 * elf64-ppc.c (ppc64_elf_next_input_section): Update comment.
(ppc64_elf_relocate_section): For zero sym R_PPC64_TOC relocs,
	use the function sym from the previous reloc.
2003-08-12 05:58:10 +00:00
Alan Modra 262e2d8016 daily update 2003-08-12 00:00:06 +00:00
Jakub Jelinek 15f40dfc73 * elf32-i386.c (elf_i386_relocate_section): Make undefined symbols
fatal if -pie.
	* elf32-s390.c (elf_s390_relocate_section): Likewise.
	* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
	* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
	* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
	* elf64-s390.c (elf_s390_relocate_section): Likewise.
	* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
	* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
	* elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
	* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
	(ppc_elf_relocate_section) <case R_PPC_RELAX32>: Issue fatal error
	on undefined symbols if -pie.
	* elf32-sh.c (sh_elf_relocate_section): Likewise.
2003-08-11 14:26:11 +00:00
Alan Modra 6ab189d5a4 * elf64-ppc.c (ppc64_elf_relocate_section): Add special case for crt1.o
branch to __libc_start_main.
2003-08-11 11:31:01 +00:00
Alan Modra e561512e36 daily update 2003-08-11 00:00:06 +00:00
Alan Modra 73d40e94db daily update 2003-08-10 00:00:06 +00:00
Alan Modra ba2f8de116 daily update 2003-08-09 00:00:07 +00:00
Nick Clifton 3b260895e3 Add MSP430 variants 2003-08-08 10:14:52 +00:00
Alan Modra ffd2286a66 daily update 2003-08-08 00:00:05 +00:00
Alan Modra 9c5bfbb7fd * elfxx-target.h: Remove PTR cast.
* targets.c (bfd_target): Make backend_data const void *.
	* elf-bfd.h: Constify all occurrences of struct elf_backend_data.
	* elf-m10300.c: Likewise.
	* elf.c: Likewise.
	* elf32-hppa.c: Likewise.
	* elf32-i386.c: Likewise.
	* elf32-m68hc1x.c: Likewise.
	* elf32-ppc.c: Likewise.
	* elf32-s390.c: Likewise.
	* elf32-sh.c: Likewise.
	* elf32-sh64.c: Likewise.
	* elf32-sparc.c: Likewise.
	* elf32-xtensa.c: Likewise.
	* elf64-mips.c: Likewise.
	* elf64-ppc.c: Likewise.
	* elf64-s390.c: Likewise.
	* elf64-sh64.c: Likewise.
	* elf64-sparc.c: Likewise.
	* elf64-x86-64.c: Likewise.
	* elfcode.h: Likewise.
	* elfcore.h: Likewise.
	* elflink.c: Likewise.
	* elflink.h: Likewise.
	* elfxx-ia64.c: Likewise.
	* elfxx-mips.c: Likewise.
	* elfxx-mips.h: Likewise.
	* elf.c (prep_headers): Remove useless check for null backend_data.
	* bfd-in2.h: Regenerate.
2003-08-07 08:38:11 +00:00
Alan Modra c39a58e6ff * elf-bfd.h: Remove PARAMS macro. Replace PTR with void *.
(NAME): Use ## rather than CONCAT4 macro.
	* elfcode.h: Remove one remaining PARAMS macro.
	* elf-eh-frame.c: Convert to C90, remove unneeded casts and prototypes.
	* elf-strtab.c: Likewise.
	* elf-hppa.h: Likewise.
	* elf32-hppa.h: Likewise.
	* elf32-hppa.c: Likewise.
	(elf32_hppa_add_symbol_hook): Delete.
	(elf_backend_add_symbol_hook): Don't define.
	* libhppa.h: Convert to C90.  Replace INLINE with inline.
2003-08-07 07:25:34 +00:00
Alan Modra 9a37c57c73 daily update 2003-08-07 00:00:05 +00:00
Alan Modra 97b639ba81 * elf64-ppc.c (ppc_stub_name): Tweak names for better readability.
(ppc64_elf_adjust_dynamic_symbol): Allow copy relocs against
	function descriptors, but warn.
	(ppc_build_one_stub): Remove a couple of vars.  Move code creating
	stub syms so that we can avoid a stub sym if we already have a
	plt sym.  Do not redefine an existing symbol.
	(ppc64_elf_build_stubs): When --emit-stub-syms, print a symbol for
	glink.
2003-08-06 12:23:37 +00:00
Nick Clifton 9e7d479d74 Updated French translations 2003-08-06 10:15:16 +00:00
Nick Clifton 4a21a4925a Fix typo 2003-08-06 09:02:50 +00:00
Alan Modra 77f3d02765 * elflink.c (_bfd_elf_create_dynamic_sections): Mark .dynbss with
SEC_LINKER_CREATED.
2003-08-06 01:27:11 +00:00
Alan Modra 6e15d39180 daily update 2003-08-06 00:00:05 +00:00
Daniel Jacobowitz 50d6c87817 * elf32-arm.h (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
(elf32_arm_final_link_relocate, elf32_arm_relocate_section): Use it.
2003-08-05 16:24:12 +00:00
Nick Clifton 14abcef98a Detect and issue a warning message if the line number table could not be read. 2003-08-05 08:25:17 +00:00
Alan Modra b2764862fa daily update 2003-08-05 00:00:06 +00:00
Nick Clifton 8c6756949e Prefix .gnu.warning section messages with "warning: ". 2003-08-04 11:32:52 +00:00
Alan Modra 268b6b3931 * elfcode.h: Convert to C90, remove unneeded casts and prototypes.
* elfcore.h: Likewise.
	* elflink.c: Likewise.
	* elflink.h: Likewise.
	* elf.c (sym_is_global): Remove INLINE.
	(align_file_position): Replace INLINE with inline.
	* elfcode.h (elf_swap_dyn_in, elf_swap_dyn_out): Remove INLINE.
	(elf_file_p): Replace INLINE with inline.
2003-08-04 09:39:46 +00:00
Alan Modra 4b4f13235f daily update 2003-08-04 00:00:06 +00:00
Alan Modra 392bd7b386 daily update 2003-08-03 00:00:05 +00:00
Kaz Kojima 866f48b717 * elf32-sh.c (sh_elf_check_relocs): Don't set DF_TEXTREL here.
* ld-sh/shared-2.d, ld-sh/textrel1.s, ld-sh/textrel2.s: New test.
2003-08-02 13:46:44 +00:00
Alan Modra ce83f84815 daily update 2003-08-02 00:00:06 +00:00
H.J. Lu 8651fcf94c 2003-08-01 H.J. Lu <hongjiu.lu@intel.com>
* elfxx-ia64.c (get_got): Align the .got section at 8 bytes.
2003-08-01 22:46:16 +00:00
H.J. Lu 37cd262974 2003-08-01 H.J. Lu <hongjiu.lu@intel.com>
* elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Use
	ElfNN_External_Rela instead of Elf64_External_Rela.
2003-08-01 22:42:26 +00:00
Nick Clifton 91fb2a9d47 Add code to catch obsolete configurations and warn about them unless
--enable-obsolete is used.  Use this to mark vax-vms port as obsolete.
2003-08-01 08:35:04 +00:00
Alan Modra d9efd8a93f daily update 2003-08-01 00:00:05 +00:00
Alan Modra e656e36976 * elf32-ppc.c (ppc_elf_install_value): Tidy.
(ppc_elf_relax_section): Remove dead code.  Remove unnecessary casts.
	Formatting.
	* elfxx-target.h: Remove PARAMS macro.  Formatting.
2003-07-31 14:38:15 +00:00
Alan Modra 50bc79368a * elf.c (bfd_section_from_r_symndx): Test for SHN_UNDEF.
* elf64-ppc.c (get_fdh): New function, split out from
	ppc64_elf_edit_opd.
	(ppc64_elf_check_relocs): Use get_fdh.
	(func_desc_adjust): Likewise.  Tidy.
	(ppc64_elf_edit_opd): Tighten reloc checks.  Free local_syms on error
	exit.  Use get_fdh.  Account for superfluous dynamic relocs.
	(ppc64_elf_relocate_section): Warning fix.
2003-07-31 14:34:13 +00:00
Alan Modra c7773400f6 daily update 2003-07-31 00:00:06 +00:00
Jason Eckhardt a62d170c66 2003-07-30 Jason Eckhardt <jle@rice.edu>
* coff-i860.c: Convert to ISO C90.  Remove superflous prototypes.
2003-07-30 21:37:35 +00:00
Jason Eckhardt 7734b6e923 bfd:
2003-07-30  Jason Eckhardt  <jle@rice.edu>

        * elf32-i860.c: Convert to ISO C90.  Remove superflous prototypes.

gas:
2003-07-30  Jason Eckhardt  <jle@rice.edu>

        * config/tc-i860.c: Convert to ISO C90.
2003-07-30 20:24:55 +00:00
Alan Modra 37f4508be1 * elf-hppa.h (elf_hppa_relocate_section): Look up dyn_h for undefweak.
* elf64-hppa.c (elf64_hppa_finalize_dlt): Check h->root.type.
2003-07-30 02:15:07 +00:00
Alan Modra 217aa764fc * elf.c: Convert to C90, remove unnecessary prototypes and casts.
Replace PTR with void *.  Formatting.
	(_bfd_elf_assign_file_position_for_section): Remove INLINE.
	(make_mapping): Likewise.
2003-07-30 02:08:06 +00:00
Alan Modra f827895910 daily update 2003-07-30 00:00:05 +00:00
Alan Modra 494dac0c9f * elf64-ppc.c (func_desc_adjust): Give linker created function
descriptor symbols a size and type.
	(ppc64_elf_relocate_section): Correct lq insn test.
2003-07-29 06:47:10 +00:00
Eric Christopher deaaf2f370 2003-07-28 Eric Christopher <echristo@redhat.com>
* elf32-ppc.c (R_PPC_RELAX32): New relocation.
        (ppc_elf_install_value): New function.
        (ppc_elf_sort_rela): Remove.
        (ppc_elf_relax_section): Rewrite. Remove old relaxation
        and replace with out of range branch stubs.
        (ppc_elf_relocate_section): Handle R_PPC_RELAX32.

2003-07-28  Eric Christopher  <echristo@redhat.com>

        * ppc.h (R_PPC_RELAX32): New. Fake relocation.
2003-07-29 06:42:51 +00:00
Alexandre Oliva 709e685dff * elf-m10300.c (mn10300_elf_relax_section): Take symbol hash table
from input_bfd.
2003-07-29 06:18:40 +00:00
Alan Modra ac400888b3 daily update 2003-07-29 00:00:05 +00:00
Alan Modra 36c506c536 * elf.c (special_sections): Set attributes for .got and .plt. 2003-07-28 14:21:44 +00:00
Alan Modra 7b968b10bd daily update 2003-07-28 00:00:06 +00:00
Alan Modra 5d35169e36 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Ensure no copy relocs
on function descriptors.
	(ELIMINATE_COPY_RELOCS): Expand comment.
	(ppc64_elf_special_sections): Move.  Don't include non-ppc64 sections.
	Do include ".toc1".
2003-07-27 09:05:08 +00:00
Alan Modra 936102220a daily update 2003-07-27 00:00:05 +00:00
H.J. Lu 3cddba1e54 bfd/
2003-07-25  H.J. Lu  <hongjiu.lu@intel.com>

	* elf.c (_bfd_elf_new_section_hook): Set the default section
	type to SHT_NULL.
	(elf_fake_sections): Set the section type based on asect->flags
	if it is SHT_NULL. Don't abort on processor specific section
	types.

gas/

2003-07-25  H.J. Lu  <hongjiu.lu@intel.com>

	* config/obj-elf.c (obj_elf_change_section): Update
	elf_section_type and elf_section_flags only when they are
	specified.
2003-07-26 01:06:27 +00:00
Alan Modra a6f8f4b8d2 daily update 2003-07-26 00:00:06 +00:00
H.J. Lu d622ef4b20 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
* bfd-in2.h: Regenerated.
2003-07-25 14:55:16 +00:00
H.J. Lu 2f89ff8d8e bfd/
2003-07-25  H.J. Lu  <hongjiu.lu@intel.com>

	* elf-bfd.h (bfd_elf_special_section): New.
	(elf_backend_data): Add special_sections, a pointer to
	bfd_elf_special_section.
	(elf_section_type). New.
	(elf_section_flags): New.
	(_bfd_elf_get_sec_type_attr): New.

	* elf.c (_bfd_elf_make_section_from_shdr): Always use the
	real section type/flags.
	(special_sections): New.
	(get_special_section): New.
	(_bfd_elf_get_sec_type_attr): New.
	(_bfd_elf_new_section_hook): Check special_section to set
	elf_section_type and elf_section_flags.
	(elf_fake_sections): Don't use section name to set ELF section
	data.

	* elf32-m32r.c (m32r_elf_special_sections): New.
	(elf_backend_special_sections): Defined.

	* elf32-m68hc11.c (elf32_m68hc11_special_sections): New.
	(elf_backend_special_sections): Defined.

	* elf32-mcore.c (mcore_elf_special_sections): New.
	(elf_backend_special_sections): Defined.

	* elf32-ppc.c (ppc_elf_special_sections): New.
	(elf_backend_special_sections): Defined.

	* elf32-sh64.c (sh64_elf_special_sections): New.
	(elf_backend_special_sections): Defined.

	* elf32-v850.c (v850_elf_special_sections): New.
	(elf_backend_special_sections): Defined.

	* elf32-xtensa.c (elf_xtensa_special_sections): New.
	(elf_backend_special_sections): Defined.

	* elf64-alpha.c (elf64_alpha_special_sections): New.
	(elf_backend_special_sections): Defined.

	* elf64-hppa.c (elf64_hppa_special_sections): New.
	(elf_backend_special_sections): Defined.

	* elf64-ppc.c (ppc64_elf_special_sections): New.
	(elf_backend_special_sections): Defined.

	* elf64-sh64.c (sh64_elf64_special_sections): New.
	(elf_backend_special_sections): Defined.

	* elfxx-ia64.c (elfNN_ia64_special_sections): New.
	(elf_backend_special_sections): Defined.

	* elfxx-mips.c (_bfd_mips_elf_special_sections): New.

	* elfxx-mips.h (_bfd_mips_elf_special_sections): New.
	(elf_backend_special_sections): Defined.

	* elfxx-target.h (elf_backend_special_sections): New. Default
	to NULL.
	(elfNN_bed): Initialize special_sections.

	* section.c (bfd_abs_section): Remove const.
	(bfd_und_section): Likewise.
	(bfd_com_section): Likewise.
	(bfd_ind_section): Likewise.

gas/

2003-07-25  H.J. Lu  <hongjiu.lu@intel.com>

	* config/obj-elf.c (special_sections): Removed.
	(obj_elf_change_section): Call _bfd_elf_get_sec_type_attr. Set
	elf_section_type and elf_section_flags.
	(elf_frob_file): Set SHT_GROUP.

	* config/obj-elf.h (obj_sec_set_private_data): New.

	* config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): Removed.
	* config/tc-ia64.h: Likewise.
	* config/tc-m32r.h: Likewise.
	* config/tc-m68hc11.h: Likewise.
	* config/tc-mcore.h: Likewise.
	* config/tc-mips.h: Likewise.
	* config/tc-ppc.h: Likewise.
	* config/tc-sh64.h: Likewise.
	* config/tc-v850.h: Likewise.
	* config/tc-xtensa.h: Likewise.

	* config/tc-v850.h (SHF_V850_GPREL): Removed.
	(SHF_V850_EPREL): Likewise.
	(SHF_V850_R0REL): Likewise.

	* subsegs.c (subseg_get): Call obj_sec_set_private_data if it
	is defined.

include/elf/

2003-07-25  H.J. Lu  <hongjiu.lu@intel.com>

	* v850.h (SHF_V850_GPREL): New.
	(SHF_V850_EPREL): Likewise.
	(SHF_V850_R0REL): Likewise.
2003-07-25 14:35:56 +00:00
Nick Clifton 2065057979 Include SEC_CODE so that code sections are assigned the LOAD attribute. 2003-07-25 10:50:03 +00:00
Kaz Kojima 09fd220b8e * elf32-sh.c: Convert to C90. Replace PTR with void *.
* elf32-sh64-com.c: Likewise.
	* elf32-sh64.c: Likewise.
	* elf32-sh64.h: Likewise.
	* elf64-sh64.c: Likewise.
2003-07-25 06:19:20 +00:00
Alan Modra 882b74b33c daily update 2003-07-25 00:00:05 +00:00
Kaz Kojima 3d85aebe2a * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
(allocate_dynrelocs): Likewise.
	(sh_elf_relocate_section): Likewise. Use SYMBOL_REFERENCES_LOCAL.
	(sh_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
2003-07-24 11:37:02 +00:00
Nick Clifton 834d807bb8 Updated French translations 2003-07-24 11:16:05 +00:00
Bob Wilson 571b5725d5 * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Make inline and move
near the beginning of the file.  Swap order of arguments.  Call
        _bfd_elf_dynamic_symbol_p with "ignore_protected" set to 0.
        (elf_xtensa_fix_refcounts): Adjust xtensa_elf_dynamic_symbol_p call.
        (elf_xtensa_relocate_section): Likewise.
        (shrink_dynamic_reloc_sections): Likewise.
2003-07-24 00:24:00 +00:00
Bob Wilson b536dc1e25 * elf32-xtensa.c (plt_reloc_count): Fix typo in comment.
(elf_xtensa_size_dynamic_sections): Use elf_discarded_section.
        (elf_xtensa_combine_prop_entries): Avoid returning non-zero without
        first printing an error message.
        (elf_xtensa_finish_dynamic_sections): Likewise.
        (elf_xtensa_discard_info_for_section): Adjust size of .got.loc when
        discarding literal table entries.
        (elf_xtensa_merge_private_bfd_data): Remove newline from error message.
        (elf_xtensa_do_asm_simplify): Likewise.
2003-07-24 00:13:42 +00:00
Alan Modra f330c8387c daily update 2003-07-24 00:00:05 +00:00
Stephane Carrez 7f88833084 * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Avoid crash when
we have a local symbol in common section.
2003-07-23 19:40:23 +00:00
Alan Modra 53878e7ae5 daily update 2003-07-23 00:00:05 +00:00
H.J. Lu ecc27c311f 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (_bfd_elf_dynamic_symbol_p): Don't return TRUE for
	weak symbols.
2003-07-22 15:52:44 +00:00