[GOLD][PATCH] Refactor THUMB branch encoding code to avoid code duplication.
Ian Lance Taylor
iant@google.com
Tue Jan 12 06:00:00 GMT 2010
"Doug Kwan (關振德)" <dougkwan@google.com> writes:
> 2010-01-11 Doug Kwan <dougkwan@google.com>
>
> * arm.cc (Arm_relocate_functions::thumb32_branch_offset,
> Arm_relocate_functions::thumb32_branch_upper,
> Arm_relocate_functions::thumb32_branch_lower,
> Arm_relocate_functions::thumb32_cond_branch_offset,
> Arm_relocate_functions::thumb32_cond_branch_upper,
> Arm_relocate_functions::thumb32_cond_branch_lower,
> Arm_relocate_functions::thm_jump19): New methods to handle THUMB
> branch offset encoding.
> (Arm_relocate_functions::thumb_branch_common): Use new branch
> offset encoding methods to avoid code duplication.
> (Stub_template::Stub_template) Handle THUMB16_SPECIAL_TYPE.
> (Stub_addend_reader::operator()): Use new branch encoding method
> to avoid code duplication.
This is OK.
Thanks.
Ian
More information about the Binutils
mailing list