This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Porting newlib
On Sat, 2009-05-02 at 14:22 +0200, Marshall B. Rogers wrote:
> I've never done anything like this myself, but this page should have
> the information you need:
> http://wiki.osdev.org/Porting_Newlib
> Hope it helps.
I think the crt0.S on that page is a little too thin. You may also want
to fill the BSS section with 0x00 and call __init prior to main in order
to invoke static constructors and the like.
AG
>
> Regards,
> Marshall
>
> On Sat, May 2, 2009 at 2:19 PM, Venkataramanan Kumar
> <gcc.venkat31@gmail.com> wrote:
> > I am trying to build run time C library for my 32 bit RISC. I have
> > ported the GCC compiler, the libgcc.a library and binutils.
> >
> > I want to build some applications using the ported GCC tool chain. I
> > am planning to run them in GDB.
> >
> > My search in the web said that I need to crt0.s.
> >
> > Can you brief me on crt0.s and on porting newlib. My architeture is MIPS based.
> >
> > Regards,
> > Venkat
> >