This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[GOLD][PATCH] Added support for R_ARM_V4BX relocation (with interworking)


Hello everyone,

Please find attached a patch that adds a support for R_ARM_V4BX relocation.
This is only the relocation patch, I'll send a patch for the --fix-v4bx/--fix-v4bx-interworking command-line arguments later. 

Best regards,
Viktor.

* gold/arm.cc: Added support for R_ARM_V4BX relocation

(Arm_v4bx_stub): New class.
(DEF_STUBS): Updated definition for v4_veneer_bx.
(Stub_factory::make_arm_v4bx_stub): New method.
(Stub_factory::elf32_arm_stub_v4_veneer_bx): New veneer template.
(Stub_table::~Stub_table()): Clean up v4bx stubs.
(Stub_table::empty()): Handle v4bx stubs.
(Stub_table::add_arm_v4bx_stub()): New method.
(Stub_table::remove_all_arm_v4bx_stubs()): New method.
(Stub_table::find_arm_v4bx_stub()): New method.
(Arm_relobj::glue_owner_stub_table()): Mew method.
(Arm_relobj::set_glue_owner_stub_table()): New method.
(Arm_relocate_functions::v4bx): New method.
(Target_arm::fix_v4bx()): New method.
(Target_arm::Target_arm): Handle R_ARM_V4BX.
(Stub_table::relocate_stubs): Likewise.
(Stub_table::do_write): Likewise.
(Stub_table::update_data_size_and_addralign): Likewise.
(Stub_table::finalize_stubs):  Likewise.
(Arm_output_section::create_stub_group): Likewise.
(Arm_relobj::do_relocate_sections): Likewise.
(Stub_addend_reader<elfcpp::SHT_REL, big_endian>::operator): Likewise.
(Target_arm::Scan::local): Likewise.
(Target_arm::Scan::global): Likewise.
(Target_arm::do_finalize_sections): Likewise.
(Target_arm::Relocate::relocate): Likewise.
(Target_arm::Relocatable_size_for_reloc::get_size_for_reloc): Likewise.
(Target_arm::scan_reloc_for_stub): Likewise.

Attachment: binutils-gold-arm-rel-v4bx_interworking.patch
Description: binutils-gold-arm-rel-v4bx_interworking.patch


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]