[uClibc] [run] Floating point exception
孙庆君
qingjun.sun at great-road.com
Sun Oct 12 10:05:04 UTC 2003
hello,
using uClibc failed with follow message:
#make
-O0 -g -fPIC -c test_shared.c -o test_shared.o
gcc -O0 -g -fPIC -c test_static.c -o test_static.o
ar -crv libtest_static.a test_static.o
a - test_static.o
gcc -O0 -g -fPIC -shared -o libtest_shared.so -Wl,-soname,libtest_shared.so test_shared.o -L. -ltest_static
gcc -O0 -g -o test test.c -ldl
----------running test--------------
LD_LIBRARY_PATH=`pwd`:. ./test
dlsym success
test_shared1
test_s1
dlsym success
test_shared2
make: *** [run] Floating point exception
but using glibc do the same thing, all ok, why?
the best regards,
Qingjun sun
Attach:
test.tar.gz
Note:
Makefile ----
test_static.c ---- a c file in static lib
test_shared.c ---- a c file in shared lib
test.c ---- first call test_shared1 which in libtest_shared.so (test_shared1 will call test_s1 which in libtest_static.a)
and then main call test_shared2 which in libtest_shared.so (test_shared2 will call test_s2 which in libtest_static.a)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20031012/52b5c777/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tar.gz
Type: application/octet-stream
Size: 1247 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20031012/52b5c777/attachment.obj
More information about the uClibc
mailing list