home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.utils.bug
- Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!csv.warwick.ac.uk!cudcv
- From: cudcv@csv.warwick.ac.uk (Rob McMahon)
- Subject: nm version 2.0 - behaviour of -o on multiple libraries
- Message-ID: <1ijr8bINNfm1@sprocket.csv.warwick.ac.uk>
- Sender: gnulists@ai.mit.edu
- Organization: Computing Services, University of Warwick, UK
- Distribution: gnu
- Date: Fri, 8 Jan 1993 12:15:07 GMT
- Approved: bug-gnu-utils@prep.ai.mit.edu
- Lines: 52
-
- 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
-
-