This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: documentation for cross compiling.


On Jan  2, 1997, tm <tm@kloo.net> wrote:

> I don't understand the full implications of this change, since I
> haven't looked through newlib yet, but as long as it breaks the
> sh-coff/sh-elf dependency on newlib and enables a full working
> compiler to be built without newlib installed, I'm all for it.

This dependency can't really be broken: GCC is the compiler, and the C
library, expected to supply crt0.o, libc.a and libm.a are supposed to
be newlib, in the case of sh-elf and sh-coff.  Of course, if you use
an alternate C library that supplies crt0.o, libc.a and libm.a such
that they are compatible with those offered by newlib, you can claim
there's no dependence on newlib.  The real point is the issue of
compatibility.  Currently, in order to be compatible, crt0.o must
implement __setup_argv_and_call_main().  If we move this from crt0.o
to crt1.asm, it will no longer be the case.  But all other
dependencies on newlib will remain.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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