Re: [x86 setup 16/33] String-handling functions for the new x86 setup code.

From: Segher Boessenkool
Date: Tue Jul 10 2007 - 17:15:00 EST


Nope. The builtins not only vary between gcc versions, but they also
have a nasty tendency to generate calls to library functions, sometimes
libgcc functions. Hence -ffreestanding.

-ffreestanding will still generate calls to libgcc functions.
-ffreestanding doesn't disable _all_ of the C library, either.

No, it doesn't, but it does inhibit builtin functions, and so provides a
bit more ABI stability.

Yes, Linux should definitely be compiled with -ffreestanding,
it isn't a hosted application after all ;-)


Segher

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/