Hi,

> Long long division requires a function call to a function that is
> part of libgcc.  Do to 'executive decision' in the kernel, i.e.,
> it's been that way forever, libgcc is not linked with the kernel.
> (Libgcc _is_ linked with the kernel for most non-i386 architectures,
> however.)  You have the option of making a difference 'executive
> decision', and link your module with libgcc.

It would be a bad idea. Only arm and sh include the libgcc.a, but normally
you never know how libgcc.a is compiled. It's compiled for user space not
for the kernel. AFAIK the latest libgcc.a is compiled with -fpic, but you
can also optimize your compiler for a specific cpu, what currently means
that libgcc.a is optimized for that cpu, what is very bad for cross
compiling environments. So if you want to link anything into the kernel,
you have to check how it was compiled.

bye, Roman

-- [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/

Reply via email to