🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Rob McMahon Fri, 08 Jan 1993 12:15
nm version 2.0 - behaviour of -o on multiple libraries
#1282
Author: Rob McMahon
Date: Fri, 08 Jan 1993 12:15
51 lines
2168 bytes
binutils-2.0, SunOS 4.1.3, SPARCserver 690.

For `nm -o libX*.a', GNU nm produces output like

------------------------------------------------------------------------------
libX11.a:

Context.o:
Context.o:00000000 t _ResizeTable
Context.o:000002e4 T _XDeleteContext
Context.o:00000260 T _XFindContext
Context.o:00000138 T _XSaveContext
Context.o:000000cc t __XFreeContextDB
Context.o:         U _calloc
Context.o:         U _free
Context.o:         U _malloc
Context.o:00000000 t gcc2_compiled.

Depths.o:
Depths.o:00000000 T _XListDepths
...
------------------------------------------------------------------------------

whereas Sun's nm gives

------------------------------------------------------------------------------
libX11.a:
libX11.a:Context.o:00000000 t _ResizeTable
libX11.a:Context.o:000002e4 T _XDeleteContext
libX11.a:Context.o:00000260 T _XFindContext
libX11.a:Context.o:00000138 T _XSaveContext
libX11.a:Context.o:000000cc t __XFreeContextDB
libX11.a:Context.o:         U _calloc
libX11.a:Context.o:         U _free
libX11.a:Context.o:         U _malloc
libX11.a:Context.o:00000000 t gcc2_compiled.
libX11.a:Depths.o:00000000 T _XListDepths
...
------------------------------------------------------------------------------

I find the latter behaviour far superior.  My normal use of -o is for grepping
for a symbol, and if the output doesn't contain the filename, I'm no better
off.

Cheers,

Rob
-- 
UUCP:   ...!mcsun!uknet!warwick!cudcv	PHONE:  +44 203 523037
JANET:  cudcv@uk.ac.warwick             INET:   cudcv@warwick.ac.uk
Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England
Re: nm version 2.0 - behaviour of -o on multiple libraries
#1288
Author: bothner
Date: Sat, 09 Jan 1993 10:21
11 lines
1026 bytes
I sort of agree with your point, but I don't feel like making
changes in the interface without knowing what if anything standards
say on the issue.  Note that SVR4 (and Solaris2) does *not* act as
you request.  Now, we can be better than SVR4, but that requires
sitting down and thinking about what the various options should
do, and what the output should look like.  It also requires research
into standards and existing implementations.  We don't have time for
this, but would welcome a volunteer to do this.

	--Per Bothner
Cygnus Support     bothner@cygnus.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads