On Don, 27 Mai 1999 Kay-Ulrich Scholl wrote:
>I
>f you insmod a module that consist of your own code and the linked gcc,
>every symbol is added to the kernel.
>How do you link only the objects that you really need ?
The linker automagically extracts exactly the object files from the
archive it needs - nothing less, nothing more !
If you do
gcc -c rtprocess.c -o rtprocess_tmp.o
ld -r rtprocess_tmp.o -o rtprocess.o -lgcc
insmod rtprocess.o
you get exactly what you want - esp. rtprocess.o contains all parts from
libgcc it needs, but not the whole libgcc !
Are you sure you wanna do kernel programming without reading an
introduction to programming first ?
Probably you check out the compiler/linker manuals at least :-)
-- Jochen
Heinrich-Heine-Universität Düsseldorf [EMAIL PROTECTED]
Institut für Physikalische Chemie I phone ++49-211-8113681
Universitätsstr. 26.43.02.29 fax ++49-211-8115195
40225 Düsseldorf, Germany www-public.rz.uni-duesseldorf.de/~jochen
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/