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, Apr 18, 2011 at 12:21 AM, Simon Wright <simon@pushface.org> wrote:
> I'm a newbie at Newlib, so please pardon any stupidities.
>
> I've been trying to build newlib-1.19.0 with GCC-4.6.0 for use with a bare cortex-m3 (under qemu at the moment).
>
> The configurations I've tried include as basis
>
> $ ../newlib-1.19.0/configure Â--target=arm-none-eabi Â--disable-newlib-supplied-syscalls
>
> and with just this I see that libgloss/arm/crt0.S and newlib/libc/sys/arm/crt0.S both compile _mainCRTStartup in ARM mode; which (I think) isn't going to work on the M3. They define FUNC_START as
>

Actually, when I build newlib/gcc toolchain for cortex-m3, I will
disable libgloss. And it have complied code successfully for my board
;-)

Ref: http://www.eluaproject.net/en_tc_cortex.html

-- 
Cheers,
Grissiom


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