On 13/04/12 11:58, Mans Rullgard wrote:
> On 13 April 2012 11:47, Richard Earnshaw <richard.earns...@arm.com> wrote:
>> On 12/04/12 20:10, Allen Martin wrote:
>>> I have a cross toolchain I configured with "--with-arch=armv7-a 
>>> --with-cpu=cortex-a9 --with-tune=cortex-a9" and I want the linker to emit 
>>> armv4t compatible thumb interworking, but I can't seem to get it to.
>>>
>>> I noticed that if I create a armv4t toolchain with "--with-arch=armv4t 
>>> --with-cpu=arm7tdmi --with-tune=arm7tdmi" and then I pass "--use-blx" to 
>>> the linker it will emit armv7 thumb interworking.  There doesn't seem to be 
>>> any inverse "--no-use-blx" type switch though.  Is this a bug/limitation of 
>>> the linker or am I misunderstanding something?
>>>
>>
>> it's all in the friendly manual :-)
>>
>> The option you need is --fix-v4bx.
>
> That option is for supporting pre-thumb cores, which is not necessary
> here.

Oops, misread the question.  Sorry.

To get v4t style interworking you need to ensure all your objects are
built for v4t.  The use of blx should only occur if the linker detects
an object file in the input list that already contains support for blx
(for example, because it was compiled with v5 or later).

R.


--
Richard Earnshaw             Email: richard.earns...@arm.com
Engineering Manager          Phone: +44 1223 400569 (Direct + VoiceMail)
OpenSource Tools             Switchboard: +44 1223 400400
ARM Ltd                      Fax: +44 1223 400410
110 Fulbourn Rd              Web: http://www.arm.com/
Cambridge, UK. CB1 9NJ

-- IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium.  Thank you.


_______________________________________________
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-toolchain

Reply via email to