Date: Mon, 3 Jul 2006 00:16:55 -0400 (EDT) From: Daniel Eischen <deischen@freebsd.org> To: Norikatsu Shigemura <nork@freebsd.org> Cc: Alexander@Leidinger.net, kabaev@gmail.com, current@freebsd.org Subject: Re: Linux-flashplugin7 & rtld - RFC Message-ID: <Pine.GSO.4.64.0607030015470.4162@sea.ntplx.net> In-Reply-To: <20060702225411.4bd0e2dd.nork@FreeBSD.org> References: <44986777.6070601@FreeBSD.org> <20060621061437.GA53019@fit.vutbr.cz> <ygeodwn2fea.wl%ume@mahoroba.org> <2265.211.18.249.19.1150871779.squirrel@mail.ninth-nine.com> <20060621121114.h6udocel5wsgg8sg@netchild.homeip.net> <2692.219.127.74.121.1150885501.squirrel@mail.ninth-nine.com> <20060621155053.d6lseiz8z4ow8wo8@netchild.homeip.net> <Pine.GSO.4.64.0606211204300.23942@sea.ntplx.net> <20060623013106.d4397e26.nork@FreeBSD.org> <Pine.GSO.4.64.0606221244240.427@sea.ntplx.net> <20060622230416.3907a848@kan.dnsalias.net> <20060625191405.d0e78240.nork@FreeBSD.org> <Pine.GSO.4.64.0606261426570.23995@sea.ntplx.net> <20060702225411.4bd0e2dd.nork@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 2 Jul 2006, Norikatsu Shigemura wrote: > On Mon, 26 Jun 2006 15:06:33 -0400 (EDT) > Daniel Eischen <deischen@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@LIBTHREAD_1_0 (13) > : > 70: 00000f80 94 FUNC LOCAL DEFAULT 11 pthread_mutex_init@GLIBC_2.0 > : > These are good. > > So it should be fixed like following: > flash7.so: flash7.map ${FLASH7OBJ} > ${CC} -shared -o $@ ${CFLAGS} ${FLASH7OBJ} \ > -Wl,--version-script=flash7.map -lc -lm -lpthread -lstdc++ > ~~~~ Yes, I tried that also, but I couldn't get it to work. -- DE
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.64.0607030015470.4162>