Re: [arm-gnu] RE: illegal instruction ARMv7 on omap3evm, with -mthumb option
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [arm-gnu] RE: illegal instruction ARMv7 on omap3evm, with -mthumb option
- To: Stuart Waugh <stuart@xxxxxxx>
- Subject: Re: [arm-gnu] RE: illegal instruction ARMv7 on omap3evm, with -mthumb option
- From: Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
- Date: Mon, 24 May 2010 15:06:47 -0700
Stuart Waugh wrote:
>> It generates Thumb-2 code if you specify -march=armv7-a and -mthumb.
>> It never generates ARM mode code if you specify -mthumb.
>
> Does that mean it generates only ARM if I do not specify -mthumb?
Yes.
> Without that option, why do I still see when I run readelf on the generated executable
> TAG_THUMB_ISA_use: Thumb-2 ?
You are probably linking in at least one Thumb-2 object file, perhaps
something from one of the run-time libraries.
--
Mark Mitchell
CodeSourcery
mark@xxxxxxxxxxxxxxxx
(650) 331-3385 x713