This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] ld: add switch to disable use of BLX instructions
On 13/04/12 18:06, Allen Martin wrote:
>> As I've explained on a copy of this patch that you posted to the
>> linaro
>> lists, this is wrong. You need to identify why the linker thinks it
>> is
>> OK to use BLX. It should only do that if it finds an object (or a
>> library member) in your link set that already indicates that using
>> BLX
>> is ok.
>
> Thanks Richard, is there anything from the output of readelf or objdump I could be looking for to help me track this down?
>
Yes, you can use 'readelf -A'. You'll get something like the following
out for each object file:
.../readelf -A asm.o
Attribute Section: aeabi
File Attributes
Tag_CPU_name: "ARM7TDMI"
Tag_CPU_arch: v4T
Tag_ARM_ISA_use: Yes
Tag_THUMB_ISA_use: Thumb-1
R.