[PATCH ARM/THUMB] replace mov with movs in crt0.S

Richard Earnshaw rearnsha@arm.com
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...
> 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)


<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.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: crt0.patch
URL: <http://sourceware.org/pipermail/newlib/attachments/20111129/47c55a42/attachment.ksh>

More information about the Newlib mailing list