On Mon, 26 Jun 2006 15:06:33 -0400 (EDT) Daniel Eischen <deischen_at_freebsd.org> wrote: > The check for the object providing the correct version should > still be done, but it needs to be checking the correct (libmap'd) > object. Eureka!!! I understand why my approch should be integrated to libc/libm/ libpthread, and deischen's approch failuer. So I can sperate library from libc/libm/libpthread. deischen's LPW: $ readelf -Ws flash7.so | fgrep open 71: 00001760 54 FUNC LOCAL DEFAULT 11 popen 110: 000025e0 54 FUNC LOCAL DEFAULT 11 iconv_open 185: 00001520 54 FUNC LOCAL DEFAULT 11 fopen 198: 000016e0 54 FUNC LOCAL DEFAULT 11 opendir These are bad. $ readelf -Ws flash7.so | fgrep pthread_ : 27: 00000000 117 FUNC GLOBAL DEFAULT UND _pthread_mutex_init_at_LIBTHREAD_1_0 (13) : 70: 00000f80 94 FUNC LOCAL DEFAULT 11 pthread_mutex_init_at_GLIBC_2.0 : These are good. So it should be fixed like following: flash7.so: flash7.map ${FLASH7OBJ} ${CC} -shared -o $_at_ ${CFLAGS} ${FLASH7OBJ} \ -Wl,--version-script=flash7.map -lc -lm -lpthread -lstdc++ ~~~~Received on Sun Jul 02 2006 - 11:54:16 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:57 UTC