aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2004-12-10 * elf.c (bfd_elf_sym_name): Add symtab_hdr param.Alan Modra6-10/+13
(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 * elf.c (bfd_elf_sym_name): Rename from bfd_elf_local_sym_name.Alan Modra6-8/+18
(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 * elf.c (bfd_elf_local_sym_name): Avoid crashes with invalidJakub Jelinek2-1/+9
st_shndx on STT_SECTION sections.
2004-12-09daily updateAlan Modra1-1/+1
2004-12-09 * elfcode.h (elf_slurp_reloc_table_from_section): Don't canonicalizeDaniel Jacobowitz2-5/+6
ELF section symbols.
2004-12-09 * elfxx-mips.c (mips_elf_calculate_relocation): For R_MIPS_JALR,Ian Lance Taylor2-4/+40
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 * elfn32-mips.c (elf_mips_howto_table_rela): Change dst_mask ofIan Lance Taylor2-1/+4
R_MIPS_JALR entry to 0.
2004-12-09 * archures.c: Define bfd_mach_mips9000.Ian Lance Taylor6-0/+23
* 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-08daily updateAlan Modra1-1/+1
2004-12-08 * elfxx-mips.c (mips_elf_calculate_relocation): Test for R_MIPS_26Ian Lance Taylor2-1/+9
overflow.
2004-12-07daily updateAlan Modra1-1/+1
2004-12-07 * netbsd-core.c (netbsd_core_file_p): Make `i' unsigned.Ben Elliston2-1/+6
2004-12-07 Suggested by Fergal Daly <fergal@esatclear.ie>:Daniel Jacobowitz2-1/+21
* simple.c (simple_dummy_multiple_definition): New function. (bfd_simple_get_relocated_section_contents): Use it.
2004-12-06daily updateAlan Modra1-1/+1
2004-12-05daily updateAlan Modra1-1/+1
2004-12-04daily updateAlan Modra1-1/+1
2004-12-03daily updateAlan Modra1-1/+1
2004-12-03bfd/Jan Beulich2-3/+34
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-02daily updateAlan Modra1-1/+1
2004-12-022004-12-01 Paul Brook <paul@codesourcery.com>Paul Brook2-1/+14
* 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-012004-12-01 Paul Brook <paul@codesourcery.com>Paul Brook2-0/+11
bfd/ * elflink.c (elf_link_add_object_symbols): Make symbols from discarded sections undefined. ld/testsuite/ * ld-elf/group1.d: New test. * ld-elf/group.ld, ld-elf/group1a.s, ld-elf/group1b.s: New test.
2004-12-01daily updateAlan Modra1-1/+1
2004-11-30daily updateAlan Modra1-1/+1
2004-11-302004-11-30 Paul Brook <paul@codesourcery.com>Paul Brook4-82/+37
bfd/ * elf32-arm.c (struct elf32_arm_link_hash_table): Remove no_pipeline_knowledge (elf32_arm_link_hash_table_create): Ditto. (bfd_elf32_arm_process_before_allocation): Ditto. (elf32_arm_final_link_relocate): Ditto. Remove oabi relocation handling. * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update prototype. * bfd-in2.h: Regenerate. ld/ * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
2004-11-30 * elf32-hppa.c (elf32_hppa_grok_prstatus): New function.Alan Modra2-0/+70
(elf32_hppa_grok_psinfo): New function. (elf_backend_grok_prstatus): Define. (elf_backend_grok_psinfo): Define.
2004-11-29daily updateAlan Modra1-1/+1
2004-11-28daily updateAlan Modra1-1/+1
2004-11-27daily updateAlan Modra1-1/+1
2004-11-26daily updateAlan Modra1-1/+1
2004-11-25daily updateAlan Modra1-1/+1
2004-11-252004-11-24 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-0/+8
PR 574: * elfcode.h (elf_slurp_symbol_table): Handle STT_TLS.
2004-11-252004-11-24 Paul Brook <paul@codesourcery.com>Paul Brook2-4/+25
bfd/ * elf.c (assign_section_numbers): Number SHT_GROUP sections first. gas/testsuite/ * gas/elf/group0a.d: Adjust expected secion ordering. * gas/elf/group1a.d: Ditto. * gas/elf/section4.d: Ditto.
2004-11-24daily updateAlan Modra1-1/+1
2004-11-242004-11-24 Paul Brook <paul@codesourcery.com>Paul Brook2-0/+84
bfd/ * elf32-arm.c (elf32_arm_swap_symbol_in): New function. (elf32_arm_swap_symbol_out): New function. (elf32_arm_size_info): Add. (elf_backend_size_info): Define. ld/testsuite/ * ld-arm/mixed-lib.sym: Update for THUMB_FUNC change.
2004-11-23daily updateAlan Modra1-1/+1
2004-11-22daily updateAlan Modra1-1/+1
2004-11-21daily updateAlan Modra1-1/+1
2004-11-20daily updateAlan Modra1-1/+1
2004-11-20 * hpux-core.c (hpux_core_core_file_p): Use offsetof macro in calls toDave Anglin2-9/+17
make_bfd_asection.
2004-11-19daily updateAlan Modra1-1/+1
2004-11-19 * elf32-arm.c (elf32_arm_finish_dynamic_sections): Warning fix.Alan Modra4-6/+11
* elf32-iq2000.c (iq2000_reloc_type_lookup): C90 function decl. * nlmcode.h (nlm_write_object_contents): Warning fix.
2004-11-19 * elf32-xtensa.c (ebb_propose_action): Fix argument order.Bob Wilson2-1/+5
2004-11-18daily updateAlan Modra1-1/+1
2004-11-17daily updateAlan Modra1-1/+1
2004-11-17bfd/Daniel Jacobowitz2-36/+206
* elf32-arm.c (PLT_THUMB_STUB_SIZE): Define. (elf32_arm_plt_thumb_stub): New. (struct elf32_arm_link_hash_entry): Add plt_thumb_refcount and plt_got_offset. (elf32_arm_link_hash_traverse): Fix typo. (elf32_arm_link_hash_table): Add obfd. (elf32_arm_link_hash_newfunc): Initialize new fields. (elf32_arm_copy_indirect_symbol): Copy plt_thumb_refcount. (elf32_arm_link_hash_table_create): Initialize obfd. (record_arm_to_thumb_glue): Mark the glue as a local ARM function. (record_thumb_to_arm_glue): Mark the glue as a local Thumb function. (bfd_elf32_arm_get_bfd_for_interworking): Verify that the interworking BFD is not dynamic. (bfd_elf32_arm_process_before_allocation): Handle R_ARM_PLT32. Do not emit glue for PLT references. (elf32_arm_final_link_relocate): Handle Thumb functions. Do not emit glue for PLT references. Support the Thumb PLT prefix. (elf32_arm_gc_sweep_hook): Handle R_ARM_THM_PC22 and plt_thumb_refcount. (elf32_arm_check_relocs): Likewise. (elf32_arm_adjust_dynamic_symbol): Handle Thumb functions and plt_thumb_refcount. (allocate_dynrelocs): Handle Thumb PLT references. (elf32_arm_finish_dynamic_symbol): Likewise. (elf32_arm_symbol_processing): New function. (elf_backend_symbol_processing): Define. opcodes/ * arm-dis.c (WORD_ADDRESS): Define. (print_insn): Use it. Correct big-endian end-of-section handling. gas/testsuite/ * gas/arm/mapping.d: Expect F markers for Thumb code. * gas/arm/unwind.d: Update big-endian pattern. ld/ * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use a dynamic object for stubs. ld/testsuite/ * ld-arm/mixed-app.d, ld-arm/mixed-app.r, ld-arm/mixed-app.s, ld-arm/mixed-app.sym, ld-arm/mixed-lib.d, ld-arm/mixed-lib.r, ld-arm/mixed-lib.s, ld-arm/mixed-lib.sym, ld-arm/arm-dyn.ld, ld-arm/arm-lib.ld: New files. * ld-arm/arm-app-abs32.d, ld-arm/arm-app-abs32.r, ld-arm/arm-app.d, ld-arm/arm-app.r, ld-arm/arm-lib-plt32.d, ld-arm/arm-lib-plt32.r, ld-arm/arm-lib.d, ld-arm/arm-lib.r, ld-arm/arm-static-app.d, ld-arm/arm-static-app.r: Update for big-endian. * ld-arm/arm-elf.exp: Run the new tests.
2004-11-16daily updateAlan Modra1-1/+1
2004-11-16 * elf-bfd.h (eh_cie_fde): Add new fields: add_augmentation_size andRichard Sandiford3-55/+184
add_fde_encoding. Remove need_relative. * elf-eh-frame.c (extra_augmentation_string_bytes) (extra_augmentation_data_bytes, size_of_output_cie_fde): New functions. (_bfd_elf_discard_section_eh_frame): Consider changing the FDE encoding in cases where the CIE has no existing 'R' augmentation. Use size_of_output_cie_fde when assigning offsets. Use the final offset as the new section size. (_bfd_elf_eh_frame_section_offset): Remove need_relative handling. Account for any extra augmentation bytes in the returned offset. (_bfd_elf_write_section_eh_frame): Rework so that the entries are moved before being modified. Pad growing entries with DW_CFA_nops. Add 'z' and 'R' augmentations as directed by add_augmentation_size and add_fde_encoding.
2004-11-16 * elf32-arm.c (elf32_arm_relocate_section): UseMark Mitchell2-1/+9
arm_real_reloc_type.
2004-11-16 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Return earlyRichard Sandiford2-100/+96
for discard relocations; don't add an R_MIPS_NONE to the main body of .rel.dyn.
2004-11-15bfd/Paul Brook5-156/+227
* elf-bfd.h (_bfd_elf_slurp_version_tables): Update prototype. * elf.c (_bfd_elf_print_private_bfd_data): Pass extra argument. (_bfd_elf_slurp_version_tables): Add extra argument. Create extra default version definition for unversioned symbols. * elfcode.h (elf_slurp_symbol_table): Pass extra argument. * elflink.c (elf_link_add_object_symbols): Pass extra argument to _bfd_elf_slurp_version_tables. Set default version for unversioned imported symbols. include/ * bfdlink.h (bfd_link_info): Add default_imported_symver. ld/ * ld.texinfo: Document --default-imported-symver. * ldmain.c (main): Set link_info.default_imported_symver. * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER. (ld_options): Add --default-imported-symver. (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.