From owner-freebsd-current@FreeBSD.ORG Sat Dec 24 05:00:21 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5811816A422; Sat, 24 Dec 2005 05:00:21 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA25643D5D; Sat, 24 Dec 2005 05:00:20 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.3/8.13.3/NinthNine) with ESMTP id jBO50Jmb008905; Sat, 24 Dec 2005 14:00:19 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Sat, 24 Dec 2005 14:00:19 +0900 From: Norikatsu Shigemura To: kan@FreeBSD.org, freebsd-current@FreeBSD.org Message-Id: <20051224140019.d2311673.nork@FreeBSD.org> X-Mailer: Sylpheed version 2.2.0beta1 (GTK+ 2.8.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (sakura.ninth-nine.com [219.127.74.121]); Sat, 24 Dec 2005 14:00:19 +0900 (JST) Cc: takawata@FreeBSD.org, nork@FreeBSD.org, ume@FreeBSD.org Subject: Can't resolve defined(?) symbol after ELF symbol versioning X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2005 05:00:21 -0000 Hi rtld masters! I'm restructuring linuxpluginwraapper by supporting ELF symbol versioning. I noticed that there are some problems. 1. I'll never try to support Flash6, and I'll support Flash7. Because Flash6 required some old(2.0.x) freetype2 functions. I tried to make a compat functions, and noticed that I cannot care these functions:-(. *NOTE* This isn't a issue caused by ELF symbol versioning. *NOTE* 2. "T" (the symbol is in the text (code) section) symbol cannot be resolved like following behavior. $ firefox /home/nork/Flash/AYB2.swf LoadPlugin: failed to initialize shared library /usr/X11R6/lib/linux-flashplugin7/libflashplayer.so [/usr/X11R6/lib/linux-flashplugin7/libflashplayer.so: Undefined symbol "_ZN12NetworkASyncD1Ev"] (NOTE)_ZN12NetworkASyncD1Ev = NetworkASync::~NetworkASync() $ nm -DC /usr/X11R6/lib/linux-flashplugin7/libflashplayer.so (snip) 000677e0 T NetworkASync::~NetworkASync() (snip) $ elfdump /usr/X11R6/lib/linux-flashplugin7/libflashplayer.so (snip) entry: 757 st_name: _ZN12NetworkASyncD1Ev st_value: 0x677e0 st_size: 33 st_info: STT_FUNC STB_GLOBAL st_shndx: 10 (snip) # I trying to test with $FreeBSD: src/libexec/rtld-elf/rtld.c,v 1.109 2005/12/18 19:43:32 kan Exp $ linux-flashplugin-7.0r61 FreeBSD nadesico.ninth-nine.com 7.0-CURRENT FreeBSD 7.0-CURRENT #68: Wed Dec 21 20:56:36 JST 2005 nork@nadesico.ninth-nine.com:/usr/obj/usr/src/sys/NADESICO i386 # New codes are in following place: http://people.freebsd.org/~nork/LinuxPluginWrapper.tar.bz2 (NOTE) Alpha-- quality codes, please cd LinuxPluginWrapper/wrappers/browser, and make all install. How about should I fix?