[PATCH] [POWERPC] Fix kernel builds with newer gcc versions and -Os

David Miller davem at davemloft.net
Sat May 3 08:30:59 EST 2008


From: Scott Wood <scottwood at freescale.com>
Date: Fri, 02 May 2008 17:16:07 -0500

> If GCC generates a call to a libgcc function that calls a libc function, 
> I'd consider that a pretty serious bug, given that said libc function is 
> likely to consist of GCC-generated code, which could call the same 
> libgcc function, which calls the libc function, etc.

Not really, there are several interfaces in libgcc that need some
runtime help from the C library or the dynamic linker.

For example, EH frame support.

You really don't know what you're talking about.

> I'd say problems are more likely if you use nonstandard implementations 
> of GCC internals...

The kernel is a special environment.  Therefore even if you start
linking with libgcc, it is inevitable that you will need some
changed local version for some of those routines in the kernel.



More information about the Linuxppc-dev mailing list