This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Handle Thumb-2 tail calls to PLT entries
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sourceware dot org, Paul Brook <paul at codesourcery dot com>
- Date: Wed, 01 Aug 2007 18:19:05 +0100
- Subject: Re: Handle Thumb-2 tail calls to PLT entries
- References: <20070730142404.GA1109@caradoc.them.org>
Hi Daniel,
2007-07-30 Paul Brook <paul@codesourcery.com>
* elf32-arm.c (elf32_arm_link_hash_entry): Add
plt_maybe_thumb_refcount.
(elf32_arm_link_hash_newfunc): Set plt_maybe_thumb_refcount.
(elf32_arm_copy_indirect_symbol): Ditto.
(elf32_arm_adjust_dynamic_symbol): Ditto.
(bfd_elf32_arm_process_before_allocation): Handle R_ARM_THM_JUMP24.
(arm_add_to_rel): Ditto.
(elf32_arm_final_link_relocate): Merge R_ARM_THM_JUMP24 with
R_ARM_THM_CALL. Handle R_ARM_THM_JUMP19 against a PLT stub.
(elf32_arm_gc_sweep_hook): Call check_use_blx. Update plt counts
for R_ARM_THM_JUMP24 and R_ARM_THM_JUMP19.
(elf32_arm_check_relocs): Update plt counts for R_ARM_THM_JUMP24
and R_ARM_THM_JUMP19.
(allocate_dynrelocs): Use plt_maybe_thumb_refcount.
(elf32_arm_finish_dynamic_symbol): Ditto.
(elf32_arm_output_plt_map): Ditto.
Approved - please apply.
Cheers
Nick