home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / utils / bug / 2356 < prev    next >
Encoding:
Text File  |  1993-01-08  |  2.1 KB  |  65 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!csv.warwick.ac.uk!cudcv
  3. From: cudcv@csv.warwick.ac.uk (Rob McMahon)
  4. Subject: nm version 2.0 - behaviour of -o on multiple libraries
  5. Message-ID: <1ijr8bINNfm1@sprocket.csv.warwick.ac.uk>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: Computing Services, University of Warwick, UK
  8. Distribution: gnu
  9. Date: Fri, 8 Jan 1993 12:15:07 GMT
  10. Approved: bug-gnu-utils@prep.ai.mit.edu
  11. Lines: 52
  12.  
  13. binutils-2.0, SunOS 4.1.3, SPARCserver 690.
  14.  
  15. For `nm -o libX*.a', GNU nm produces output like
  16.  
  17. ------------------------------------------------------------------------------
  18. libX11.a:
  19.  
  20. Context.o:
  21. Context.o:00000000 t _ResizeTable
  22. Context.o:000002e4 T _XDeleteContext
  23. Context.o:00000260 T _XFindContext
  24. Context.o:00000138 T _XSaveContext
  25. Context.o:000000cc t __XFreeContextDB
  26. Context.o:         U _calloc
  27. Context.o:         U _free
  28. Context.o:         U _malloc
  29. Context.o:00000000 t gcc2_compiled.
  30.  
  31. Depths.o:
  32. Depths.o:00000000 T _XListDepths
  33. ...
  34. ------------------------------------------------------------------------------
  35.  
  36. whereas Sun's nm gives
  37.  
  38. ------------------------------------------------------------------------------
  39. libX11.a:
  40. libX11.a:Context.o:00000000 t _ResizeTable
  41. libX11.a:Context.o:000002e4 T _XDeleteContext
  42. libX11.a:Context.o:00000260 T _XFindContext
  43. libX11.a:Context.o:00000138 T _XSaveContext
  44. libX11.a:Context.o:000000cc t __XFreeContextDB
  45. libX11.a:Context.o:         U _calloc
  46. libX11.a:Context.o:         U _free
  47. libX11.a:Context.o:         U _malloc
  48. libX11.a:Context.o:00000000 t gcc2_compiled.
  49. libX11.a:Depths.o:00000000 T _XListDepths
  50. ...
  51. ------------------------------------------------------------------------------
  52.  
  53. I find the latter behaviour far superior.  My normal use of -o is for grepping
  54. for a symbol, and if the output doesn't contain the filename, I'm no better
  55. off.
  56.  
  57. Cheers,
  58.  
  59. Rob
  60. -- 
  61. UUCP:   ...!mcsun!uknet!warwick!cudcv    PHONE:  +44 203 523037
  62. JANET:  cudcv@uk.ac.warwick             INET:   cudcv@warwick.ac.uk
  63. Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England
  64.  
  65.