Hideto Ishibashi wrote:
>
> Hello everyone on this mailing list.
>
> David J. Christini posted the following message:
>
> You need to use `gcc' with a `compile only option(-c)'.
> And then, use `ld' for linking with these parameters:
> `-L/usr/lib -r -Bstatic -lc -lm'.
>
> The point is `-Bstatic'; that means "gcc links objects and
> libraries staticaly." And you get the sin(), exp() and such
> library functions included into your module.
I used your options and got the following messages on insmod:
rt_module: unresolved symbol __divdi3
rt_module: unresolved symbol fputs
rt_module: unresolved symbol __assert_fail
To eliminated the last two lines I used the option
-static instead of -Bstatis (BTW: what's the difference?)
The solve the __divdi3 -problem I added
-L/usr/lib/gcc-lib/i486-linux/2.7.2.3/ -lgcc.
Kay =8^)
|\/\/\/|
| | Kay-Ulrich Scholl |
| | [EMAIL PROTECTED] |
| (o)(o) Forschungszentrum Informatik |
C _) Haid-und Neu-Str. 10-14 |
| ,___| D-76131 Karlsruhe |
| / 0721/9654-218 |
/____\ FAX: 0721 / 9654 - 209 |
/ \ -----------------------------------------+
--- [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/