home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8165 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.7 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!rpi!uwm.edu!ogicse!henson!news.u.washington.edu!serval!phys1.physics.wsu.edu!hlu
  2. From: hlu@phys1.physics.wsu.edu (Hongjiu Lu)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Shared Libraries Considered Harmful
  5. Message-ID: <1992Aug13.205728.25720@serval.net.wsu.edu>
  6. Date: 13 Aug 92 20:57:28 GMT
  7. Article-I.D.: serval.1992Aug13.205728.25720
  8. References: <1992Aug12.164218.13155@crd.ge.com> <1992Aug12.182534.12667@unislc.uucp> <1992Aug12.202438.19963@serval.net.wsu.edu> <1992Aug13.124928.13672@crd.ge.com>
  9. Sender: news@serval.net.wsu.edu (USENET News System)
  10. Organization: Washington State University
  11. Lines: 21
  12.  
  13. I am not sure if you can run gdb on binaries linked with the shared libs.
  14. Since gcc 2.2.2, if you compile foo with -g, libg.a will be used instead
  15. of libc.a.
  16.  
  17. -- 
  18. H.J.
  19. Gcc/libc maintainer for Linux.
  20. In article <1992Aug13.124928.13672@crd.ge.com>, davidsen@ariel.crd.GE.COM (william E Davidsen) writes:
  21. |> In article <1992Aug12.202438.19963@serval.net.wsu.edu>, hlu@phys1.physics.wsu.edu (Hongjiu Lu) writes:
  22. |> | I am not sure about that. With jump table, we just added one jump for
  23. |> | each function. If the libs are compiled with -O -fomit-frame-pointer,
  24. |> | I don't think you will notice a thing.
  25. |> 
  26. |>   Of course the debugger doesn't work if you compile the libraries with
  27. |> no frame pointer, and if you get a dump from a procedure called with bad
  28. |> parameters you may not be able to find out what happened. I wouldn't do
  29. |> that personally, but then I wouldn't upgrade my C compiler and library
  30. |> unless there was a good reason, either.
  31. |> -- 
  32. |> bill davidsen, GE Corp. R&D Center; Box 8; Schenectady NY 12345
  33. |>     I admit that when I was in school I wrote COBOL. But I didn't compile.
  34.