From owner-freebsd-current Fri Jun 5 03:42:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA23268 for freebsd-current-outgoing; Fri, 5 Jun 1998 03:42:19 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from spinner.netplex.com.au (spinner.netplex.com.au [202.12.86.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA23225 for ; Fri, 5 Jun 1998 03:42:05 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from spinner.netplex.com.au (localhost [127.0.0.1]) by spinner.netplex.com.au (8.8.8/8.8.8/Spinner) with ESMTP id SAA00714; Fri, 5 Jun 1998 18:41:35 +0800 (WST) (envelope-from peter@spinner.netplex.com.au) Message-Id: <199806051041.SAA00714@spinner.netplex.com.au> X-Mailer: exmh version 2.0.2 2/24/98 To: =?koi8-r?B?4c7E0sXKIP7F0s7P1w==?= cc: John Birrell , Peter Wemm , current@FreeBSD.ORG Subject: Re: lorder problem: aout vs. elf In-reply-to: Your message of "Fri, 05 Jun 1998 12:55:23 +0400." <19980605125523.A28805@nagual.pp.ru> Date: Fri, 05 Jun 1998 18:41:34 +0800 From: Peter Wemm Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG =?koi8-r?B?4c7E0sXKIP7F0s7P1w==?= wrote: > On Fri, Jun 05, 1998 at 06:49:26PM +1000, John Birrell wrote: > > Peter Wemm wrote: > > > Index: lorder.sh > > > =================================================================== > > > RCS file: /home/ncvs/src/usr.bin/lorder/lorder.sh,v > > > retrieving revision 1.1.1.1 > > > diff -u -r1.1.1.1 lorder.sh > > > --- lorder.sh 1994/05/27 12:32:05 1.1.1.1 > > > +++ lorder.sh 1998/06/05 06:22:06 > > > @@ -37,6 +37,17 @@ > > > PATH=/bin:/usr/bin > > > export PATH > > > > One of the problems with this script is that it assumes it knows best. > > During a make world, the version of nm that should be executed is in > > WORLDTMP. Assuming paths is not good practice. > > Even if this lines will be deleted, there is no /usr/libexec/aout in the > default PATH anycase, only /usr/bin is there. It means that users can't > call f.e. 'size' or 'strings' now. Since default PATH is hardcoded as > #define in paths.h, no simple changes possible (in some cases login.conf > or csh.cshrc PATH settings tricks are not desired). Huh????? We *have* /usr/bin/{ar,nm,aout,ld,as,size,strings,strip,...}, these are links to objformat, which is a redirector to the /usr/lib/ {aout,elf} backend. So, "/usr/bin/nm" gets the system default (either /usr/libexec/aout/nm or /usr/libexec/elf/nm depending on the user's or system preference), while "/ usr/bin/nm -elf" forces execution of /usr/libexec/elf/nm, and the same for -aout. > -- > Andrey A. Chernov > http://www.nagual.pp.ru/~ache/ > MTH/SH/HE S-- W-- N+ PEC>+ D A a++ C G>+ QH+(++) 666+>++ Y > Cheers, -Peter -- Peter Wemm Netplex Consulting To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message