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


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: [PATCH] Fixes for i686-pc-linux-newlib


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



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