Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jun 2003 06:41:02 -0700
From:      Joe Kelsey <joek@mail.flyingcroc.net>
To:        Stijn Hoop <stijn@win.tue.nl>
Cc:        questions@freebsd.org
Subject:   Re: Tools to modify shared libraries
Message-ID:  <3EF06BEE.8030601@mail.flyingcroc.net>
In-Reply-To: <20030618082506.GA23083@pcwin002.win.tue.nl>
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>

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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EF06BEE.8030601>