Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Jul 2006 22:54:11 +0900
From:      Norikatsu Shigemura <nork@FreeBSD.org>
To:        Daniel Eischen <deischen@FreeBSD.org>
Cc:        Alexander@Leidinger.net, current@FreeBSD.org, nork@FreeBSD.org, kabaev@gmail.com
Subject:   Re: Linux-flashplugin7 & rtld - RFC
Message-ID:  <20060702225411.4bd0e2dd.nork@FreeBSD.org>
In-Reply-To: <Pine.GSO.4.64.0606261426570.23995@sea.ntplx.net>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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++
		                               ~~~~



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060702225411.4bd0e2dd.nork>