On Sun, 2 Jul 2006, Norikatsu Shigemura wrote: > 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++ > ~~~~ Yes, I tried that also, but I couldn't get it to work. -- DEReceived on Mon Jul 03 2006 - 02:16:57 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:57 UTC