Date: Fri, 05 Jun 1998 18:41:34 +0800 From: Peter Wemm <peter@netplex.com.au> To: =?koi8-r?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.pp.ru> Cc: John Birrell <jb@cimlogic.com.au>, Peter Wemm <peter@netplex.com.au>, current@FreeBSD.ORG Subject: Re: lorder problem: aout vs. elf Message-ID: <199806051041.SAA00714@spinner.netplex.com.au> In-Reply-To: Your message of "Fri, 05 Jun 1998 12:55:23 %2B0400." <19980605125523.A28805@nagual.pp.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
=?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 <peter@netplex.com.au> Netplex Consulting To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806051041.SAA00714>