Building for cortex-m3
Richard Earnshaw
rearnsha@arm.com
Mon Apr 18 15:35:00 GMT 2011
On Mon, 2011-04-18 at 01:52 +0100, Simon Wright wrote:
> Jon suggested I rebuild newlib with GCC. I withdraw my remarks about multilib and crt0.o (which may have been down to leaving -mthumb out of the ld command) but crt0.o is still miscompiled: objdump -D says
>
> $ arm-none-eabi-objdump -D crt0.o
>
> crt0.o: file format elf32-littlearm
>
> Disassembly of section .text:
>
> 00000000 <_mainCRTStartup>:
> 0: e59f30d0 ldr r3, [pc, #208] ; d8 <change_back+0x8>
> 4: e3530000 cmp r3, #0
> ....
>
> which is ARM code, isn't it?
Yes, that's ARM code. Newlib hasn't been ported to v6-M and v7-M (ie
Cortex-M) yet.
R.
More information about the Newlib
mailing list