-mregparms and system libraries
Posted Jan 24, 2004 19:15 UTC (Sat) by
giraffedata (subscriber, #1954)
In reply to:
Shrinking the kernel with gcc by Duncan
Parent article:
Shrinking the kernel with gcc
Acccording to the GCC manpage, not only must all
modules be built with it (as covered by the article), but so must the main
system libraries, which I take to include glibc, etc. if anything is built with it.
Remember that the manual you're reading isn't specifically for compiling a Linux kernel. It's for compiling any program. Then clearly when it says libraries must be compiled with -mregparm, it means those libraries to which your program links. The typical program is a user space program that links to "system libraries." But the Linux kernel is not typical and does NOT link to glibc (unless it's user mode Linux!). So you're OK there.
You don't link the kernel to glibc (unless it's User Mode Linux), so don't worry about that one.
(
Log in to post comments)