This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building for cortex-m3


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]