Commit graph

2169 commits

Author SHA1 Message Date
Alan Modra
94202ba54e daily update 2002-09-14 00:00:04 +00:00
Alan Modra
4cfa75e2b2 daily update 2002-09-13 00:00:05 +00:00
Jakub Jelinek
6a30718d0e * elf32-i386.c (dtpoff_base, tpoff): Don't crash if tls_segment is
NULL.
	(elf_i386_relocate_section): Return false after printing error about
	unresolvable relocation.
2002-09-12 14:01:20 +00:00
Nick Clifton
6cf9e9fe1d Fix handling of R_ARM_THM_PC11 2002-09-12 13:18:57 +00:00
Alan Modra
b2e57ccbb6 daily update 2002-09-12 00:00:05 +00:00
Jeff Law
32ac2c9a75 * elf32-h8300.c (elf32_h8_relax_section): Fix typo. 2002-09-11 19:19:11 +00:00
Nick Clifton
dc43ada5bf Check functionname_ptr and line_ptr before deciding we've found a symbol. 2002-09-11 14:30:53 +00:00
Nick Clifton
e09f439535 Update translations 2002-09-11 13:52:17 +00:00
Alan Modra
470903d0b0 daily update 2002-09-11 00:00:04 +00:00
Nick Clifton
b3018b5f70 Call new functions do_sections, do_sections64, depending on corefile (32-bit
or 64-bit).
2002-09-10 10:39:03 +00:00
Alan Modra
4a386c0bd2 daily update 2002-09-10 00:00:05 +00:00
Richard Henderson
2f21f25e2b * elfxx-ia64.c (elfNN_ia64_relax_section): Handle PCREL21M
and PCREL21F like PCREL21B.
2002-09-09 17:34:07 +00:00
Alan Modra
0b42ccd55f daily update 2002-09-09 00:00:08 +00:00
Alan Modra
78c87cb7e6 daily update 2002-09-08 00:00:04 +00:00
Alan Modra
041386aa43 daily update 2002-09-07 00:00:04 +00:00
Alan Modra
dbbfa733b4 daily update 2002-09-06 00:00:04 +00:00
Alan Modra
8f8429869e daily update 2002-09-05 00:00:03 +00:00
Kevin Buettner
28b94e7ce2 * config.bfd (mips*-*-irix6*): Add new ABI vectors. Make n32 default
vector.
2002-09-04 23:10:59 +00:00
Alan Modra
5731205c28 daily update 2002-09-04 00:00:05 +00:00
Alan Modra
b8bb248ad6 daily update 2002-09-03 00:00:04 +00:00
Nick Clifton
5cec694196 Use helpful names instead of cryptically overloaded bfd_reloc error codes.
Replace caching of external symbols with caching of internal symbols obtained
from calling bfd_elf_get_elf_syms().
Fixup problems with freeing cached allocated memory blocks.
2002-09-02 14:23:43 +00:00
Alan Modra
638524b534 * cpu-pj.c (scan_mach, compatible, arch_info_struct): Remove.
(bfd_pj_arch): Use bfd_default_scan.
	* cpu-v850.c (scan): Remove.
	(N): Use bfd_default_scan.
	* cpu-z8k.c (scan_mach): Remove.
	(arch_info_struct, bfd_z8k_arch): Reorganize so that the default is
	first.  Use bfd_default_scan.
2002-09-02 11:52:01 +00:00
Alan Modra
250d94fd4b * ecoff.c (_bfd_ecoff_set_arch_mach_hook): Don't use hard-coded
bfd_mach constants.
	(ecoff_get_magic): Likewise.
	* elf32-v850.c (v850_elf_object_p): Likewise.
	(v850_elf_final_write_processing): Likewise.
	* mipsbsd.c (MY(set_arch_mach)): Likewise.
	(MY(write_object_contents)): Likewise.
	* coff64-rs6000.c (xcoff64_write_object_contents): Likewise.
	* coffcode.h (coff_write_object_contents): Likewise.
	(coff_set_arch_mach_hook): Add comment describing machine == 0.
	Remove unnecessary "machine" assignments.
	(coff_write_relocs): Test for the absolute section sym by testing
	section and flags.

	* pdp11.c (NAME(aout,machine_type)): Like aoutx.h.
2002-09-02 11:47:42 +00:00
Alan Modra
3b77b1d509 * aoutx.h (NAME(aout,machine_type)): Recognize bfd_mach_i386_i386
and bfd_mach_i386_i386_intel_syntax.
2002-09-02 05:58:55 +00:00
Alan Modra
2fc2fd0100 daily update 2002-09-02 00:00:06 +00:00
Alan Modra
c73618fa9c daily update 2002-09-01 00:00:07 +00:00
Alan Modra
6b9e33ce06 daily update 2002-08-31 00:00:08 +00:00
Dave Anglin
e5b45b8395 * bfd-in.h (align_power): Cast constants to bfd_vma type.
* bfd-in2.h (align_power): Likewise.
2002-08-30 18:36:18 +00:00
Alan Modra
37f45cf898 * Makefile.am: Run "make dep-am".
* Makefile.in: Regenerate.

	* cpu-avr.c (compatible): Don't use hard-coded mach constants.
	* cpu-powerpc.c (powerpc_compatible): Likewise.
	* cpu-rs6000.c (rs6000_compatible): Likewise.
2002-08-30 08:11:44 +00:00
Alan Modra
80977a89c9 daily update 2002-08-30 00:00:04 +00:00
Dave Anglin
51240b8d93 * chew.c (paramstuff, outputdots, perform, bang and usage): Remove
void from function definitions.
2002-08-29 14:37:19 +00:00
Nick Clifton
86aba9dbfa Add linker relaxation to v850 toolchain 2002-08-29 06:49:35 +00:00
Alan Modra
6ba3d7ed59 daily update 2002-08-29 00:00:05 +00:00
Nick Clifton
026df7c5e6 Add TMS320C4x support 2002-08-28 10:38:51 +00:00
Alan Modra
72f227962f daily update 2002-08-28 00:00:04 +00:00
Nick Clifton
88f7bcd5a7 Revert ARM linker patch and apply similar patch to bfd instead 2002-08-27 11:01:55 +00:00
Alan Modra
1af0fa2dd5 daily update 2002-08-27 00:00:04 +00:00
Alan Modra
c8e48751a6 * coffcode.h (coff_set_arch_mach_hook): Handle W65MAGIC. 2002-08-26 09:01:41 +00:00
Alan Modra
2846975ad0 * aoutx.h (NAME(aout,reloc_type_lookup)): Handle BFD_RELOC_8. 2002-08-26 08:46:21 +00:00
Alan Modra
383ca9fbf6 daily update 2002-08-26 00:00:04 +00:00
Alan Modra
6e490d4203 daily update 2002-08-25 00:01:20 +00:00
Alan Modra
067653c535 * elf32-sh.c (sh_elf_copy_indirect_symbol): New.
(create_got_section, allocate_dynrelocs, readonly_dynrelocs):
	Likewise.
	(struct elf_sh_pcrel_relocs_copied): Removed.
	(struct elf_sh_dyn_relocs): New.
	(struct elf_sh_link_hash_entry): Replace pcrel_relocs_copied
	field with dyn_relocs.
	(struct elf_sh_link_hash_table): Add short-cuts to get dynamic
	sections and sym_sec.
	(sh_elf_link_hash_newfunc): Clear dyn_relocs.
	(sh_elf_link_hash_table_create): Clear shorts-cuts and sym_sec.
	(sh_elf_create_dynamic_sections): Use create_got_section instead
	of _bfd_elf_create_got_section.
	(sh_elf_check_relocs): Likewise.
	(sh_elf_create_dynamic_sections): Use short-cuts to the dynamic
	sections.
	(sh_elf_adjust_dynamic_symbol, sh_elf_size_dynamic_sections,
	sh_elf_relocate_section, sh_elf_check_relocs,
	sh_elf_finish_dynamic_symbol, sh_elf_finish_dynamic_sections):
	Likewise.
	(sh_elf_adjust_dynamic_symbol): Handle nocopyreloc. Keep the
	dynamic relocations and avoiding the copy relocation when we
	didn't find any dynamic relocations in the section which has
	contents or is read-only.
	(WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
	(sh_elf_size_dynamic_sections): Don't reset the size of
	.rela.got section even if dynamic_sections_created flag is off.
	Don't use sh_elf_discard_copies. Scan all input bfd and use
	allocate_dynrelocs. Call readonly_dynrelocs to determine
	whether we need DT_TEXTREL.
	(sh_elf_adjust_dynamic_symbol): Use plt.refcount to determine
	whether the symbol was never referred to.
	(sh_elf_relocate_section): Use WILL_CALL_FINISH_DYNAMIC_SYMBOL.
	(sh_elf_gc_sweep_hook): Fill with the real sweep function.
	(sh_elf_check_relocs): Call create_got_section if the short-cut
	to .got is null. Increment reference counters only instead of
	allocating space on dynamic sections here. Don't conditionalize
	uninitialized got.offset value when marking the symbol as a
	global offset table entry. Keep relocations for symbols satisfied
	by a dynamic library to avoid copy relocations for the symbol.
	Set dynobj field of an elf hash table if needed.
	(sh_elf_finish_dynamic_sections): Handle null section pointer
	correctly.
	(elf_backend_copy_indirect_symbol): Defined.
	(elf_backend_can_refcount): Defined.
2002-08-24 01:44:56 +00:00
Alan Modra
ee828e4278 daily update 2002-08-24 00:00:04 +00:00
Nick Clifton
7e326afc19 Undo previous delta. Add comment explaining why. 2002-08-23 09:42:21 +00:00
Alan Modra
c8614e8e65 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le): Copy
contents of .got.plt[2] to tr0, not address of .got.plt.
	(sh_elf_finish_dynamic_symbol): Do not apply GOT_BIAS when
	patching absolute plt entry. For shmedia plt entry, set bottom bit
	of branch to plt0 as this is a branch to an shmedia instruction.
	* elf64-sh64.c (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le):
	Copy contents of .got.plt[2] to tr0, not address of .got.plt.
	(elf_sh64_plt_entry_be, elf_sh64_plt_entry_le): Use ptrel to
	branch to plt0.
	(sh64_elf64_finish_dynamic_symbol): Do not apply GOT_BIAS when
	patching absolute plt entry. For shmedia plt entry, branch to
	plt0 is now ptrel, so use relative offset.  Set bottom bit of
	branch target as it is a branch to an shmedia instruction.
2002-08-23 08:26:13 +00:00
Alan Modra
3b587c71d7 * elf32-sh.c (sh_elf_finish_dynamic_sections): Set LSB of DT_INIT
value if .init is an SHmedia function.  Similarly for DT_FINI.
	* elf64-sh64.c (sh64_elf64_finish_dynamic_sections): Likewise.
2002-08-23 08:13:12 +00:00
Alan Modra
957dcaa8ef * bfd/elf32-sh.c (sh_elf_size_dynamic_sections): Zero initialize
dynamic section.
	* bfd/elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
2002-08-23 04:23:37 +00:00
Alan Modra
355ac37b68 daily update 2002-08-23 00:00:05 +00:00
Nick Clifton
a4263c47c0 Use a simple byte read when reading the return address register column. 2002-08-22 20:00:14 +00:00
Nick Clifton
db4ed12147 Add powerpc64-*-*bsd* target. 2002-08-22 17:45:36 +00:00