home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9412 < prev    next >
Encoding:
Text File  |  1992-07-25  |  1.5 KB  |  45 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!csfb1!sstakoff
  3. From: sstakoff@csfb1.fir.fbc.com (Stuart Stakoff)
  4. Subject: Re: shared library  listing ?
  5. Message-ID: <Brx831.BDs@csfb1.fir.fbc.com>
  6. Sender: news@csfb1.fir.fbc.com (Usenet News Account)
  7. Reply-To: uunet!csfb1!sstakoff
  8. Organization: First Boston Corporation
  9. References:  <1992Jul23.191045.4043@aquila.sni-usa.com>
  10. Date: Sat, 25 Jul 1992 01:28:12 GMT
  11. Lines: 32
  12.  
  13. In article <1992Jul23.191045.4043@aquila.sni-usa.com>, corrado@abyss.sni-usa.com (Corrado Giacomini) writes:
  14. |> 
  15. |> Does anybody know how can I obtain 
  16. |> the list of the shared library linked by 
  17. |> an executable ?
  18. |> 
  19. |> -----------------------------------------------------
  20. |> Corrado Giaconini        corrado@sni-usa
  21. |>          giacomin@xdnc1.ico.olivetti.com
  22. |> -----------------------------------------------------
  23.  
  24.  
  25. It depends on what system you are running. For example, under SunOS 4.1.x
  26. you would type: ldd a.out
  27.  
  28. On an SGI (IRIX) you would type: nm -L a.out
  29.  
  30. Compilers place information in the executable that tell the loader
  31. which shared libraries to bring in.  In IRIX (and I believe SunOS), this
  32. information is place in the .lib section of the executable. 
  33.  
  34. Good Luck...
  35.  
  36. -- 
  37.  
  38.  
  39.    +-------------------------------------------------------------------+
  40.    |   Stuart A. Stakoff           |      sstakoff@csfb1.fir.fbc.com   |
  41.    |   First Boston Corporation    |      uunet!csfb1!sstakoff         |
  42.    |   (212)909-4926               |      (212)688-0913 - FAX          |
  43.    +-------------------------------------------------------------------+
  44.  
  45.