<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 5.50.4134.100" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>hello,</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>using uClibc failed with follow message:<BR>#make<BR>&nbsp;-O0 
-g&nbsp; -fPIC -c test_shared.c -o test_shared.o<BR>&nbsp;gcc -O0 -g&nbsp; -fPIC 
-c test_static.c -o test_static.o<BR>&nbsp;ar -crv libtest_static.a 
test_static.o<BR>&nbsp;a - test_static.o<BR>&nbsp;gcc -O0 -g&nbsp; -fPIC -shared 
-o libtest_shared.so -Wl,-soname,libtest_shared.so test_shared.o -L. 
-ltest_static<BR>&nbsp;gcc -O0 -g&nbsp; -o test test.c 
-ldl<BR>&nbsp;----------running 
test--------------<BR>&nbsp;LD_LIBRARY_PATH=`pwd`:. ./test<BR>&nbsp;dlsym 
success <BR>&nbsp;test_shared1<BR>&nbsp;test_s1 <BR>&nbsp;dlsym success 
<BR>&nbsp;test_shared2<BR>&nbsp;make: *** [run] Floating point 
exception<BR>&nbsp;<BR>but using glibc do the same thing, all ok, 
why?</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>the best regards,</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV><FONT size=2>
<DIV>&nbsp;&nbsp;&nbsp; Qingjun sun</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>Attach:&nbsp;<BR>&nbsp;test.tar.gz</DIV>
<DIV>&nbsp;</DIV>
<DIV>Note:<BR>&nbsp;Makefile&nbsp;&nbsp; 
----<BR>&nbsp;test_static.c&nbsp;&nbsp;&nbsp;&nbsp; ---- a c file in static 
lib<BR>&nbsp;test_shared.c&nbsp;&nbsp;&nbsp;&nbsp; ---- a c file in shared 
lib<BR>&nbsp;test.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
---- first call test_shared1 which in libtest_shared.so (test_shared1 will call 
test_s1 which in 
libtest_static.a)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp; and then main call test_shared2 which in libtest_shared.so 
(test_shared2 will call test_s2 which in libtest_static.a)</DIV>
<DIV>&nbsp;</DIV>
<DIV></FONT>&nbsp;</DIV></BODY></HTML>