ARMv4-t TLS stub fix
Tue May 31 14:11:00 GMT 2011
The attached patch fixes a bug in the ARMv4t TLS call stubs. We generate the
right kind of stub, then ignore this and splat a blx instruction in there
The ST_BRANCH_TO_ARM isn't strictly necessary at this point (data symbols will
be marked ST_BRANCH_TO_ARM anyway), but that's going to change shortly.
I suspect someone was a bit naughty and created the testcases based on
observed output rather than expected results. The blx is clearly wrong.
Tested on arm-none-eabi
Applied to CVS head.
2011-05-31 Paul Brook <firstname.lastname@example.org>
* elf32-arm.c (arm_stub_is_thumb): Add
(elf32_arm_final_link_relocate): TLS stubs are always ARM.
Handle Thumb stubs.
* ld-arm/tls-longplt.d: Update expected output.
* ld-arm/tls-thumb1.d: Ditto.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3342 bytes
Desc: not available
More information about the Binutils