From owner-freebsd-current Fri Nov 8 18:24: 0 2002 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 15F4E37B401 for ; Fri, 8 Nov 2002 18:23:59 -0800 (PST) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id A24DA43E7B for ; Fri, 8 Nov 2002 18:23:58 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.12.6/8.12.6) with ESMTP id gA92Nt8A063722; Fri, 8 Nov 2002 18:23:55 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.12.6/8.12.6/Submit) id gA92NnJZ063721; Fri, 8 Nov 2002 18:23:49 -0800 (PST) Date: Fri, 8 Nov 2002 18:23:49 -0800 From: Steve Kargl To: Brooks Davis Cc: "M. Warner Losh" , eischen@pcnet1.pcnet.com, ataraxia@cox.net, current@FreeBSD.ORG Subject: Re: [PATCH] note the __sF change in src/UPDATING Message-ID: <20021109022349.GA63634@troutmask.apl.washington.edu> References: <20021108.142609.112624839.imp@bsdimp.com> <20021108.161606.79869853.imp@bsdimp.com> <20021108170523.B10496@Odin.AC.HMC.Edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021108170523.B10496@Odin.AC.HMC.Edu> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Nov 08, 2002 at 05:05:23PM -0800, Brooks Davis wrote: > On Fri, Nov 08, 2002 at 04:16:06PM -0700, M. Warner Losh wrote: > > I'd love for there to be a way to know which binaries use __sF. > > The following script run on your bin, sbin, lib, and libexec directories > does a pretty decent job of finding files that contain refrences to __sF > and listing the ports that use them (depend on portupgrade). > > #!/bin/sh > > sym=__sF > > for file in $*; do > if [ -n "`nm ${file} 2>&1 | egrep " ${sym}$"`" ]; then > echo ${file} `pkg_which $file` > fi > done nm doesn't work on shared libraries. You can use strings to find __sF in shared libs. troutmask:kargl[201] cd /mnt/usr/lib/ troutmask:kargl[202] nm libm.a | grep sF U __sF troutmask:kargl[203] nm libm.so.2 | grep sF nm: libm.so.2: no symbols troutmask:kargl[204] strings libm.so.2 | grep sF __sF -- Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message