[PATCH ARM/THUMB] replace mov with movs in crt0.S
Tue Nov 29 08:53:00 GMT 2011
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...
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)
<date> Richard Earnshaw <email@example.com>
Thomas Klein <firstname.lastname@example.org>
* 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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Newlib