<!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> </DIV>
<DIV><FONT size=2>using uClibc failed with follow message:<BR>#make<BR> -O0
-g -fPIC -c test_shared.c -o test_shared.o<BR> gcc -O0 -g -fPIC
-c test_static.c -o test_static.o<BR> ar -crv libtest_static.a
test_static.o<BR> a - test_static.o<BR> gcc -O0 -g -fPIC -shared
-o libtest_shared.so -Wl,-soname,libtest_shared.so test_shared.o -L.
-ltest_static<BR> gcc -O0 -g -o test test.c
-ldl<BR> ----------running
test--------------<BR> LD_LIBRARY_PATH=`pwd`:. ./test<BR> dlsym
success <BR> test_shared1<BR> test_s1 <BR> dlsym success
<BR> test_shared2<BR> make: *** [run] Floating point
exception<BR> <BR>but using glibc do the same thing, all ok,
why?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>the best regards,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV><FONT size=2>
<DIV> Qingjun sun</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR>Attach: <BR> test.tar.gz</DIV>
<DIV> </DIV>
<DIV>Note:<BR> Makefile
----<BR> test_static.c ---- a c file in static
lib<BR> test_shared.c ---- a c file in shared
lib<BR> test.c
---- first call test_shared1 which in libtest_shared.so (test_shared1 will call
test_s1 which in
libtest_static.a)<BR>
and then main call test_shared2 which in libtest_shared.so
(test_shared2 will call test_s2 which in libtest_static.a)</DIV>
<DIV> </DIV>
<DIV></FONT> </DIV></BODY></HTML>