This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH ARM/THUMB] replace mov with movs in crt0.S
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Thomas Klein <th dot r dot klein at web dot de>
- Cc: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Wed, 23 Nov 2011 18:18:57 +0000
- Subject: Re: [PATCH ARM/THUMB] replace mov with movs in crt0.S
- References: <4ECCFF37.5020205@web.de> <4ECD01A6.1020002@arm.com> <4ECD3A63.8080108@web.de>
On 23/11/11 18:24, Thomas Klein wrote:
> The ARM7TDMI machine usually starting with a crt0 in ARM similar the one
> in arm-elf-eabi/newlib.
> The Cortex-M3 machine starts with a THUMB2 crt0 similare the one in
> arm-elf-eabi/thumb/thumb2/newlib
> When running a test thumb program in arm-sim the crt0 of
> arm-elf-eabi/thumb/newlib is used.
> And at least with this I have had the problem.
> The simulator did not like the MOV lo, lo.
> Using MOVS lo, lo instead helps.
>
So can you send me the output of
readelf -A crt0.o
For the object file that you think is incorrectly built please.
> If this problem is been created by myself. Since usually no
> THUMB/Interwork crt0 would be created
> and only a ARM or THUMB2 crt0 would exist.
> Then I have to say sorry for the trouble I made.
I'm not trying to suggest that, I'm just trying to understand what's
going on here. It looks to me as though the permutation you're using
should be using legacy syntax and I don't, yet, understand why you are
seeing the problem you are reporting.
R.