From owner-freebsd-questions@FreeBSD.ORG Tue Jun 17 08:49:24 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 DD33D37B404; Tue, 17 Jun 2003 08:49:24 -0700 (PDT) Received: from gilliam.users.flyingcroc.net (gilliam.users.flyingcroc.net [207.246.128.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32C2D43FA3; Tue, 17 Jun 2003 08:49:24 -0700 (PDT) (envelope-from joek@mail.flyingcroc.net) Received: from mail.flyingcroc.net (zircon.staff.flyingcroc.net [207.246.150.92])h5HFnNAv009551; Tue, 17 Jun 2003 08:49:23 -0700 (PDT) Message-ID: <3EEF3883.1080500@mail.flyingcroc.net> Date: Tue, 17 Jun 2003 08:49:23 -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: Marcel Moolenaar References: <3EEE4717.2090409@mail.flyingcroc.net> <1055804020.79093.2.camel@rushlight.kf8nh.apk.net> <3EEF19D5.9040706@mail.flyingcroc.net> <20030617154208.GA584@dhcp01.pn.xcllnt.net> In-Reply-To: <20030617154208.GA584@dhcp01.pn.xcllnt.net> 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: Tue, 17 Jun 2003 15:49:25 -0000 Marcel Moolenaar 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. > > > It's more constructive to fix the linker than it is to patch the > ELF files created by it. The linker knows which libraries are > really needed and should be able to create the minimal list of > (true) dependencies. > This cannot be accomplished by fixing the linker. The issue is one of attempting to use a *linux* shared library in a native application. Have you ever lookad at the flashpluginwarpper port? It provides a library to perload which intercepts the linux syscalls and translates them to bsd syscalls to allow linux shared libraries (specifically, the linux flash library) in native binaries. This works fine for the old flash plugin since that shared library did not include any DT_NEEDED entires in its .dynamic section. However, the new Flash 6 linux shared library has a number of explicit references to linux-only shared libraries as DT_NEEDED references in its .dynamic section. This prevents us from using the flashpluginwrapper trick to allow use of Flash 6 in native Mozilla. Do you understand now? /Joe