From owner-freebsd-questions@FreeBSD.ORG Mon Jun 16 15:53:43 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 4759837B401; Mon, 16 Jun 2003 15:53:41 -0700 (PDT) Received: from ece.cmu.edu (ECE.CMU.EDU [128.2.136.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9A8F43F85; Mon, 16 Jun 2003 15:53:40 -0700 (PDT) (envelope-from allbery@ece.cmu.edu) Received: from rushlight (allbery@[205.201.8.182]) (authenticated) by ece.cmu.edu (8.11.0/8.10.2) with ESMTP id h5GMrc327165; Mon, 16 Jun 2003 18:53:38 -0400 (EDT) From: "Brandon S. Allbery " KF8NH To: Joe Kelsey In-Reply-To: <3EEE4717.2090409@mail.flyingcroc.net> References: <3EEE4717.2090409@mail.flyingcroc.net> Content-Type: text/plain Organization: Message-Id: <1055804020.79093.2.camel@rushlight.kf8nh.apk.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 16 Jun 2003 18:53:40 -0400 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: Mon, 16 Jun 2003 22:53:43 -0000 On Mon, 2003-06-16 at 18:39, Joe Kelsey wrote: > Has anyone ever come across general-purpose tools for modifying shared > libraries? What I want to do is to edit the list of "needed" shared > libraries to correct the common mistakes that developers make in > creating shared objects with large lists of shared libraries. GNU objcopy --- but it's a bit *too* general; you'd need to extract the .dynamic section, edit it using some binary editing tool, and re-add it. I doubt there are any tools of the kind you're looking for because the details are too different between different systypes; even if someone had developed one, it's just as likely to be for Linux or Solaris as for *BSD, and as a result wouldn't be particularly useful. -- brandon s allbery [openafs/solaris/japh/freebsd] allbery@kf8nh.apk.net system administrator [linux/heimdal/too many hats] allbery@ece.cmu.edu electrical and computer engineering KF8NH carnegie mellon university [better check the oblivious first -ke6sls]