This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Building for cortex-m3
- From: Grissiom <chaos dot proton at gmail dot com>
- To: Simon Wright <simon at pushface dot org>
- Cc: newlib at sourceware dot org
- Date: Mon, 18 Apr 2011 23:35:03 +0800
- Subject: Re: Building for cortex-m3
- References: <11A32281-D4EB-4089-AA6C-979348C4865A@pushface.org>
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