Commit Graph

4121 Commits

Author SHA1 Message Date
Alan Modra 3a3f751dac daily update 2004-12-26 23:00:05 +00:00
Alan Modra 5c447fb8ff daily update 2004-12-25 23:00:05 +00:00
Alan Modra 40c00f3da0 daily update 2004-12-24 23:00:08 +00:00
Alan Modra 2c0667804a daily update 2004-12-23 23:00:05 +00:00
Tomer Levi 17a8343285 2004-12-23 Tomer Levi <Tomer.Levi@nsc.com>
* elf32-crx.c (elf32_crx_relax_section): Support 'bcop' relaxation.
2004-12-23 13:48:25 +00:00
Alan Modra 0c4b2fab0b daily update 2004-12-22 23:00:05 +00:00
Kris Warkentin d69f560c9e * elf.c (elfcore_grok_nto_gregs): Change name to elfcore_grok_nto_regs.
Add 'base' argument for constructing register sections.  Reformat.
(elfcore_grok_nto_note): Call elfcore_grok_nto_regs for both
gp and fp regs.  Reformat.
2004-12-22 14:43:44 +00:00
Nick Clifton 750bce0ee1 Add support for the new R_AVR_LDI, R_AVR_6 and R_AVR_6_ADIW relocs for the
LDI, ADIW/SBIW and LDD/STD instructions.
2004-12-22 14:25:42 +00:00
Alan Modra a5db907e36 * elflink.c (_bfd_elf_merge_symbol): Treat old definitions from
as-needed dynamic libs as undefined.
	(elf_link_add_object_symbols): Remove DYN_AS_NEEDED from as-needed
	libs when finding they are needed.
2004-12-22 03:59:26 +00:00
Alan Modra a42599b6fa daily update 2004-12-21 23:00:06 +00:00
Alan Modra ab102f4afe daily update 2004-12-20 23:00:06 +00:00
Ian Lance Taylor d639b1c345 * Makefile.am: Use $(SHELL) whenever we run move-if-change.
* Makefile.in: Rebuild.
2004-12-20 21:22:33 +00:00
Alan Modra 8860955fbe * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add opd_relocs.
(opd_entry_value): Use opd_relocs if available.
	(ppc64_elf_relocate_section): Don't set reloc_done.  Instead
	copy .opd relocations to opd_relocs.
	(ppc64_elf_edit_toc): Set rel_hdr.sh_size after editing relocs.
2004-12-19 23:24:46 +00:00
Alan Modra 22b476cb5a daily update 2004-12-19 23:00:05 +00:00
Alan Modra ec00c00c75 daily update 2004-12-18 23:00:11 +00:00
Alan Modra 062c0f611f daily update 2004-12-17 23:00:05 +00:00
Alan Modra a4789f3bdb daily update 2004-12-16 23:00:05 +00:00
Richard Sandiford 1e50d24d55 include/elf/
* v850.h (R_V850_LO16_SPLIT_OFFSET): New reloc.

bfd/
	* reloc.c (BFD_RELOC_V850_LO16_SPLIT_OFFSET): New bfd_reloc_code_type.
	* elf32-v850.c (v850_elf_howto_table): Add entry for
	R_V850_LO16_SPLIT_OFFSET.
	(v850_elf_reloc_map): Map it to BFD_RELOC_V850_LO16_SPLIT_OFFSET.
	(v850_elf_perform_lo16_relocation): New function, extracted from...
	(v850_elf_perform_relocation): ...here.  Use it to handle
	R_V850_LO16_SPLIT_OFFSET.
	(v850_elf_check_relocs, v850_elf_final_link_relocate): Handle
	R_V850_LO16_SPLIT_OFFSET.
	* libbfd.h, bfd-in2.h: Regenerate.

gas/
	* config/tc-v850.c (handle_lo16): New function.
	(v850_reloc_prefix): Use it to check lo().
	(md_assemble, md_apply_fix3): Handle BFD_RELOC_V850_LO16_SPLIT_OFFSET.

gas/testsuite/
	* gas/v850/split-lo16.{s,d}: New test.
	* gas/v850/v850.exp: Run it.

ld/testsuite/
	* ld-v850: New directory.
2004-12-16 16:56:04 +00:00
Nick Clifton 2fbd2a87e2 Add support for s390x-ibm-tpf target 2004-12-16 16:02:59 +00:00
Alan Modra d7c68bf6b4 daily update 2004-12-15 23:00:13 +00:00
Alan Modra 86b894a3cb daily update 2004-12-14 23:00:06 +00:00
Tomer Levi 063027706a 2004-12-14 Tomer Levi <Tomer.Levi@nsc.com>
* elf32-crx.c (elf32_crx_relax_delete_bytes): Add 'struct bfd_link_info *'
	to prototype, to make hash info available.
	Prevent wrapped symbols from being adjusted twice.
2004-12-14 15:38:04 +00:00
Tomer Levi e3f9830cf4 2004-12-14 Tomer Levi <Tomer.Levi@nsc.com>
* elf32-crx.c (elf32_crx_relax_delete_bytes): Add 'struct bfd_link_info *' to prototype, to make hash info available.
	Prevent wrapped symbols from being adjusted twice.
2004-12-14 15:36:23 +00:00
Richard Sandiford c314987d19 * elfxx-mips.c (mips_elf_calculate_relocation): Don't report an
overflow for calls to undefined weak symbols.
2004-12-14 09:48:20 +00:00
Alan Modra 8f0506a226 daily update 2004-12-13 23:00:05 +00:00
Alan Modra 779de648d7 daily update 2004-12-12 23:00:04 +00:00
Alan Modra 17a53e46b0 daily update 2004-12-11 23:00:04 +00:00
Alan Modra 5c799c0790 bfd/
* elfcode.h (elf_slurp_symbol_table): Use bfd_elf_sym_name so that
	canonical sections syms have a name.

gas/testsuite/
	Update for changed section syms.

ld/testsuite/
	Update for changed section syms.
2004-12-11 04:32:37 +00:00
Alan Modra 645ea6a951 * elf64-ppc.c (opd_entry_value): Don't use cached relocs if they
have been adjusted for output.
	(ppc64_elf_relocate_section): Mark sections with reloc_done.
2004-12-11 03:56:43 +00:00
Alan Modra d6d9b1bd36 daily update 2004-12-10 23:00:05 +00:00
Alan Modra be8dd2ca9e * elf.c (bfd_elf_sym_name): Add symtab_hdr param.
(group_signature): Update call.
	* elf-bfd.h (bfd_elf_sym_name): Update.
	* elf32-ppc.c (ppc_elf_relocate_section): Update.
	* elf64-ppc.c (ppc64_elf_edit_opd, ppc64_elf_edit_toc)
	(ppc64_elf_relocate_section): Update
	* elflink.c (elf_link_input_bfd): Update.
2004-12-10 14:04:58 +00:00
Alan Modra 0e2cfdce25 * elf.c (bfd_elf_sym_name): Rename from bfd_elf_local_sym_name.
(group_signature): Update calls.
	* elf-bfd.h (bfd_elf_sym_name): Update.
	* elf32-ppc.c (ppc_elf_relocate_section): Update.
	* elf64-ppc.c (ppc64_elf_edit_opd, ppc64_elf_edit_toc)
	(ppc64_elf_relocate_section): Update
	* elflink.c (elf_link_input_bfd): Update.
2004-12-10 13:18:40 +00:00
Jakub Jelinek 138f35cc73 * elf.c (bfd_elf_local_sym_name): Avoid crashes with invalid
st_shndx on STT_SECTION sections.
2004-12-10 13:08:03 +00:00
Alan Modra dc9298fc70 daily update 2004-12-09 23:00:24 +00:00
Daniel Jacobowitz f9cfae629f * elfcode.h (elf_slurp_reloc_table_from_section): Don't canonicalize
ELF section symbols.
2004-12-09 16:17:42 +00:00
Ian Lance Taylor 1367d393bb * elfxx-mips.c (mips_elf_calculate_relocation): For R_MIPS_JALR,
return a real value, unless it is a PLT symbol.
	(mips_elf_perform_relocation): On the RM9000, turn a jal into a
	bal if possible.
2004-12-09 07:12:28 +00:00
Ian Lance Taylor 74f79d8d75 * elfn32-mips.c (elf_mips_howto_table_rela): Change dst_mask of
R_MIPS_JALR entry to 0.
2004-12-09 06:32:41 +00:00
Ian Lance Taylor 0d2e43ed77 * archures.c: Define bfd_mach_mips9000.
* elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_9000.
	(mips_set_isa_flags): Handle bfd_mach_mips9000.
	* cpu-mips.c (I_mips9000): Define.
	(arch_info_struct): Add case for bfd_mach_mips9000.
	* aoutx.h (NAME(aout,machine_type)): Handle bfd_mach_mips9000.
	* bfd-in2.h: Regenerate.
2004-12-09 06:08:45 +00:00
Alan Modra a81bcc1045 daily update 2004-12-08 23:00:05 +00:00
Ian Lance Taylor 728b2f2114 * elfxx-mips.c (mips_elf_calculate_relocation): Test for R_MIPS_26
overflow.
2004-12-08 20:27:50 +00:00
Alan Modra 18b05eb7a5 daily update 2004-12-07 23:00:05 +00:00
Ben Elliston 45ab555df7 * netbsd-core.c (netbsd_core_file_p): Make `i' unsigned. 2004-12-07 10:53:44 +00:00
Daniel Jacobowitz 1511ddaff3 Suggested by Fergal Daly <fergal@esatclear.ie>:
* simple.c (simple_dummy_multiple_definition): New function.
	(bfd_simple_get_relocated_section_contents): Use it.
2004-12-07 04:37:56 +00:00
Alan Modra 5f1b1ee7b0 daily update 2004-12-06 23:00:05 +00:00
Alan Modra 41e7f70474 daily update 2004-12-05 23:00:04 +00:00
Alan Modra bb97b34f6a daily update 2004-12-04 23:00:07 +00:00
Alan Modra 7785b0982a daily update 2004-12-03 23:00:06 +00:00
Jan Beulich 5742623224 bfd/
2004-12-03 Jan Beulich  <jbeulich@novell.com>

	* elf.c (elf_find_function): Don't use the last file symbol ever,
	seen, but the last one seen prior to the symbol being reported.
	Don't report a filename at all for global symbols when that might
	be ambiguous/wrong.
2004-12-03 13:59:36 +00:00
Alan Modra febeb2918c daily update 2004-12-02 23:00:05 +00:00
Paul Brook 94a3258fc5 2004-12-01 Paul Brook <paul@codesourcery.com>
* elf32-arm.c (elf32_arm_copy_private_bfd_data): Set EI_OSABI.
	(elf32_arm_post_process_headers): Set EI_OSABI depending on ABI
	version.
2004-12-02 15:05:34 +00:00