Re: RTLinux and libgcc
Allan Barredo <[email protected]> Sat, 29 Jan 2005 14:21:28 +0800
| Newsgroups | gmane.linux.real-time.rtlinux.general |
|---|---|
| Message-ID | <[email protected]> |
Thank you very much for the reply. I used ld <flags> -r -o <objlist> -L/usr/lib -lm -lc\ /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/libgcc.a in my makefile and it worked. On Thu, 27 Jan 2005 21:27:24 -0500, Evan Brunner <[email protected]> wrote: > This is your problem.. and I think they give a solution.. > > http://www.uwsg.iu.edu/hypermail/linux/kernel/0201.3/0421.html > > Apparently, from what I have gleaned from google, RTLinux modules are > very similar in nature to vanilla kernel modules and you can't carry > dynamic links to any libraries that are not already included inthe > kernel. ( legitimate includes would generally be <linux/*.h> > <asm/*.h> <rtl_*.h> and so on.. ). Pratically everyhting has to be > static, or in your source. > > If I'm wrong, someone tell me. Please. > > Evan > > On Thu, 27 Jan 2005 17:47:23 +0800, Allan Barredo <[email protected]> wrote: > > Hello everyone, > > > > I am using RedHat 9.0 with rtl3.2-pre3 and I can't seem to properly > > link libgcc to my module. > > > > I used > > > > -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/ -lgcc > > > > in my makefile however when I tried to insmod my module, I still get > > the following messages: > > > > unresolved symbol: __udivdi3 > > unresolved symbol: __umoddi3 > > > > Has anyone encountered this problem before? > > > > Any suggestions? > > > > Thanks a lot. > > _______________________________________________ > > Rtl mailing list > > [email protected] > > http://www2.fsmlabs.com/mailman/listinfo/rtl > > > _______________________________________________ Rtl mailing list [email protected] http://www2.fsmlabs.com/mailman/listinfo/rtl