[PATCH ARM/THUMB] replace mov with movs in crt0.S
Jeff Johnston
jjohnstn@redhat.com
Tue Nov 29 10:41:00 GMT 2011
Richard,
I'm not very keen on keeping the sys/arm stuff in newlib. Is it
possible to start changing gcc to use libgloss by default? Regarding
your patch, is there a corresponding change required for libgloss/arm?
-- Jeff J.
On 11/25/2011 10:33 AM, Richard Earnshaw wrote:
> On 24/11/11 15:31, Richard Earnshaw wrote:
>>
>> And the reason I'm not seeing this is because my copy of newlib is out
>> of date :-(
>>
>> Hold on...
>>
>> R.
>>
>>
>
> So it turns out that Thomas' patch is substantially correct, but it's
> not all that is needed. To get the build attributes correct we also
> need to force the assembler to behave when building thumb1 code. The
> attached patch merges Thomas' changes plus some of my own to ensure that
> this is done (and also fixes up a case where SWI was being incorrectly
> generated for an M-class core)
>
> R.
>
>
> <date> Richard Earnshaw<rearnsha@arm.com>
> Thomas Klein<th.r.klein@web.de>
>
> * sys/arm/crt0.S: Manually set the target architecture when
> compiling for Thumb1 on EABI targets.
> Don't use SWI on M-profile cores.
> Avoid v6-only Thumb-1 MOV instruction.
>
More information about the Newlib
mailing list