From owner-freebsd-questions@FreeBSD.ORG Wed Jun 18 06:41:06 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B874D37B401; Wed, 18 Jun 2003 06:41:06 -0700 (PDT) Received: from gilliam.users.flyingcroc.net (gilliam.users.flyingcroc.net [207.246.128.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id F04EA43FCB; Wed, 18 Jun 2003 06:41:03 -0700 (PDT) (envelope-from joek@mail.flyingcroc.net) Received: from mail.flyingcroc.net (zircon.staff.flyingcroc.net [207.246.150.92])h5IDf2Av015724; Wed, 18 Jun 2003 06:41:03 -0700 (PDT) Message-ID: <3EF06BEE.8030601@mail.flyingcroc.net> Date: Wed, 18 Jun 2003 06:41:02 -0700 From: Joe Kelsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030515 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Stijn Hoop References: <3EEE4717.2090409@mail.flyingcroc.net> <1055804020.79093.2.camel@rushlight.kf8nh.apk.net> <3EEF19D5.9040706@mail.flyingcroc.net> <20030618082506.GA23083@pcwin002.win.tue.nl> In-Reply-To: <20030618082506.GA23083@pcwin002.win.tue.nl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: stable@freebsd.org cc: questions@freebsd.org Subject: Re: Tools to modify shared libraries X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2003 13:41:07 -0000 Stijn Hoop wrote: > On Tue, Jun 17, 2003 at 06:38:29AM -0700, Joe Kelsey wrote: > >>Basically, what I want to do is remove several entries from the *front* >>of the dynamic section. Actually, I would settle for just removing all >>of a certain tag (such as DT_NEEDED) from the dynamic section. > > > I'm very interested, having a working Flash 6 would be great! > > Isn't there a way to change these into bogus dependencies, or dependencies > on a FreeBSD shared object or something? No. I removed the dependencies by manually editing the .so with emacs... Now, here is a list of the undefined symbols beginning with __: 598: 00000000 79 FUNC GLOBAL DEFAULT UND __write@GLIBC_2.0 (4) 939: 00000000 231 FUNC GLOBAL DEFAULT UND __assert_fail@GLIBC_2.0 (2) 1129: 00000000 109 FUNC GLOBAL DEFAULT UND __errno_location@GLIBC_2.0 (4) 1656: 00000000 172 FUNC WEAK DEFAULT UND __deregister_frame_info 1703: 00000000 815 FUNC GLOBAL DEFAULT UND __xstat@GLIBC_2.0 (2) 1952: 00000000 815 FUNC GLOBAL DEFAULT UND __fxstat@GLIBC_2.0 (2) 2133: 00000000 4 OBJECT GLOBAL DEFAULT UND __ctype_toupper@GLIBC_2.0 (2) 2763: 00000000 157 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.1.3 (9) 3161: 00000000 4 OBJECT GLOBAL DEFAULT UND __ctype_b@GLIBC_2.0 (2) 3319: 00000000 1642 FUNC GLOBAL DEFAULT UND __strtoul_internal@GLIBC_2.0 (2) 3376: 00000000 26 FUNC GLOBAL DEFAULT UND __terminate 3624: 00000000 129 FUNC WEAK DEFAULT UND __register_frame_info 3716: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ The old flash library had these symbols: 34: 00000000 0 NOTYPE GLOBAL DEFAULT UND __builtin_vec_new 36: 00000000 0 NOTYPE GLOBAL DEFAULT UND __builtin_vec_delete 1163: 00000000 0 NOTYPE GLOBAL DEFAULT UND __errno_location flashpluginwrapper provides the two __builtin references. I do not think we need to provide the WEAK symbols. We do need to provide the others, specifically __write, __ctype_toupper, __ctype_b, __assert_failure, __xstate, __fxstate, and __strtoul_internal. Anyone want to start modifying flashpluginwrapper? /Joe