[GOLD][PATCH] Added support for the ARM MOVT/MOVW BREL relocations

Viktor Kutuzov vkutuzov@accesssoftek.com
Wed Jan 27 20:32:00 GMT 2010


Hello everyone,

Please find attached patch that adds a support for the ARM MOVT/MOVW BREL relocations: R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL, R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC, R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL.

Best regards,
Viktor.

* gold/arm.cc: Added support for the ARM relocations: R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL, R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC, R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL.
(Arm_relocate_functions::movw_rel_nc): Renamed (was movw_prel_nc).
(Arm_relocate_functions::movw_rel): New Method.
(Arm_relocate_functions::movt_rel): Renamed (was movt_prel).
(Arm_relocate_functions::thm_movw_rel_nc): Renamed (was thm_movw_prel_nc).
(Arm_relocate_functions::thm_movw_rel): New Method.
(Arm_relocate_functions::thm_movt_rel): Renamed (was thm_movt_prel).
(Target_arm<big_endian>::Scan::local): Handle MOVW_BREL/MOVT_BREL 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-movt-movw-brel.patch
Type: application/octet-stream
Size: 9277 bytes
Desc: binutils-gold-arm-rel-movt-movw-brel.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20100127/142e242a/attachment.obj>


More information about the Binutils mailing list