[PATCH] Fixes for i686-pc-linux-newlib

Jeff Johnston jjohnstn@redhat.com
Thu Jan 12 19:54:00 GMT 2006


Paolo Bonzini wrote:
> 
>> Which headers in particular?
> 
> 
> All those that are needed by the unwinder, because now that is built as 
> well.  newlib still needs glibc headers that it does not provide, right?

Yes.

> 
>> No, you should not be treating the configuration as a cross build.
> 
> 
> Note that the configuration is treated as a cross build only as far as 
> allowing --with-headers.
> 
> On one hand your point is right that libgcov should find the headers if 
> --with-newlib is given; on the other hand, it seems like gcc disables 
> this on purpose, by defining -Dinhibit_libc if it finds --with-newlib.
> 

Gcc should know to build libgcov properly when --with-newlib is 
specified.  Noone from gcc has probably given it any thought before now.

>> The libc/sys/linux code is already LGPL so if you contribute an LGPL 
>> solution, that is ok so long as everything works for a basic program. 
>> Scripts for building x86-linux executables today won't be linking in 
>> crti.o or crtn.o so you might look at making references weak so that 
>> crti/crtn are not always required.
> 
> 
> Yes, thanks.
> 
> Paolo
> 



More information about the Newlib mailing list