From owner-freebsd-hackers Sun Dec 6 20:26:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA13452 for freebsd-hackers-outgoing; Sun, 6 Dec 1998 20:26:09 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA13447 for ; Sun, 6 Dec 1998 20:26:08 -0800 (PST) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id UAA18789; Sun, 6 Dec 1998 20:18:27 -0800 (PST) Received: from bubba.whistle.com( 207.76.205.7) by whistle.com via smap (V2.0) id xma018787; Sun, 6 Dec 98 20:18:13 -0800 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id UAA14502; Sun, 6 Dec 1998 20:18:13 -0800 (PST) From: Archie Cobbs Message-Id: <199812070418.UAA14502@bubba.whistle.com> Subject: Re: getting to -Wunused In-Reply-To: <199812070405.PAA03585@godzilla.zeta.org.au> from Bruce Evans at "Dec 7, 98 03:05:39 pm" To: bde@zeta.org.au (Bruce Evans) Date: Sun, 6 Dec 1998 20:18:13 -0800 (PST) Cc: phk@critter.freebsd.dk, freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Bruce Evans writes: > >By the way, I neede to add "-aout": > > Use `OBJFORMAT=aout kernxref.sh'. Surely there's a way to have the script detect OBJFORMAT automatically. How about this... if file vers.o | grep -q ELF; then OBJFORMAT="elf"; else OBJFORMAT="aout"; fi OBJFORMAT=${OBJFORMAT} nm -gon ... -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message