question about libc.a libgcc.a

From: Hai Xu (xhai@CLEMSON.EDU)
Date: Fri Jul 27 2001 - 13:55:59 EST


Dear all,

I am focus on a device driver. I compile it to a model.o and try to insmod
it to kernel. But when do so, I will get:

unresolved symbol: __udividi3
unresolved symbol: __umoddi3

As someone tell me, I have to link the libgcc.a to my model.o. I did it but
I when I try to insmod the model.o, I will get segamentation fault.

The following are my link libraries.
#LIBS =
$(MATLAB_ROOT)/rtw/c/lib/$(ARCH)/lrtwLib.a -L/usr/lib/gcc-lib/i386-redhat-li
nux/2.96 -lgcc -L/usr/lib -lm -lc $(EXT_LIB) $(S_FUNCTIONS_LIB)
$(INSTRUMENT_LIBS)

Please give me some ideas about it.

Thanks in advance
Hai Xu

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jul 31 2001 - 21:00:34 EST