[GOLD][PATCH] Added support for the ARM group relocations

Viktor Kutuzov vkutuzov@accesssoftek.com
Mon Jan 25 21:06:00 GMT 2010


Hello everyone,
Please find attached a patch that adds a support for the ARM group relocations: R_ARM_ALU_PC_Gx/R_ARM_ALU_SB_Gx/R_ARM_ALU_*_NC, R_ARM_LDR_PC_Gx/R_ARM_LDR_SB_Gx, R_ARM_LDRS_PC_Gx/R_ARM_LDRS_PC_Gx and R_ARM_LDC_PC_Gx/R_ARM_LDC_SB_Gx (26 relocs).

Best regards,
Viktor.

* gold/arm.cc: Added support for ARM group relocations.
(Target_arm::reloc_needs_sym_origin): New method.
(Arm_relocate_functions::calc_grp_kn): New method.
(Arm_relocate_functions::calc_grp_residual): New method.
(Arm_relocate_functions::calc_grp_gn): New method.
(Arm_relocate_functions::arm_grp_alu): New Method.
(Arm_relocate_functions::arm_grp_ldr): New Method.
(Arm_relocate_functions::arm_grp_ldrs): New Method.
(Arm_relocate_functions::arm_grp_ldc): New Method.
(Target_arm<big_endian>::Scan::local): Handle the ARM group relocations.
(Target_arm<big_endian>::Scan::global): Likewise.
(Target_arm<big_endian>::Relocate::relocate): Likewise.
(Target_arm<big_endian>::Relocatable_size_for_reloc::get_size_for_reloc): Likewise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-gold-arm-rel-group-relocations.patch
Type: application/octet-stream
Size: 24158 bytes
Desc: binutils-gold-arm-rel-group-relocations.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20100125/36875b94/attachment.obj>


More information about the Binutils mailing list