[klibc] Adding -nostdlib to REQFLAGS

H. Peter Anvin hpa at zytor.com
Thu Aug 25 10:29:30 PDT 2005


Martin Schlemmer wrote:
> Hi,
> 
> For our hardened profiles (gcc with SSP among things), its specs file
> tries to figure out when it should disable SSP for kernel/whatever
> builds by checking if -nostdlib was passed.  KLIBC however do not pass
> this, so it tries to compile with -fno-stack-protector, and then fails
> to link as it cannot resolve the __guard, etc symbols (in glibc).
> 
>   http://bugs.gentoo.org/show_bug.cgi?id=103437
> 
> Any objection to attached patch?
> 

I'd need to know what other effects -nostdlib has.  If it's purely a 
linker flag it won't have any effect since klibc doesn't use gcc's 
linker, and then it's just fine; if it has other side effects it might 
not be a good thing.

	-hpa



More information about the klibc mailing list