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

See the CrossGCC FAQ for lots more information.


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: mips-elf target newlib


Try something like this:
- Build newlib with "configure --target=mips-elf --prefix=$PREFIX ;
make; make install"
- Build final gcc with "configure --target=mips-elf --prefix=$PREFIX
--with-newlib; make; make install"
- Build your program with "mips-elf-gcc -T pmon.ld hello.c"

To actually get the hello world output may require you to write the
low level output routines for libgloss if PMON doesn't work for your
board.


On 4/11/06, Niklaus <niklaus@gmail.com> wrote:
> Hi,
>  I have built binutils and gcc (bootstrap --without-headers) for the
> target=mips-elf ,
>  .
>  Now i have to compile newlib for the same architecture. How do i do
> it . Has anyone here done it before.
>
> Usually for linux systems , i copy the kernel headers of the target
> architecture into the proper directory , then compile glibc with that
> headers for the target and then build complete gcc.
>
> But now i am wondering for bare-metal mips-elf target , how to build
> newlib and install headers and complete gcc. how do i produce a hello
> world executable like i did for glibc.
>
> Regards
> Nik

--
For unsubscribe information see http://sourceware.org/lists.html#faq


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