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.