home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / bsd / 5739 < prev    next >
Encoding:
Internet Message Format  |  1992-09-15  |  1.2 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!spool.mu.edu!caen!uakari.primate.wisc.edu!ames!data.nas.nasa.gov!taligent!apple!motcsd!xhost92.csd.mot.com!ajv
  2. From: ajv@xhost92.csd.mot.com
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: Shared Libs for X11?, was Re: 386bsd -- The New Newsgroup
  5. Message-ID: <7104@motcsd.csd.mot.com>
  6. Date: 15 Sep 92 16:32:40 GMT
  7. References: <18iprpINNg6e@agate.berkeley.edu> <1992Sep8.200625.2894@socrates.umd.edu>     <veit.716026274@du9ds3> <18lkkkINN14d@agate.berkeley.edu>     <veit.716107923@du9ds3> <7dnL02y821gh01@JUTS.ccc.amdahl.com>     <veit.716291291@du9ds3> <1992Sep14.232949.9093@bby.com.au>
  8. Sender: usenet@motcsd.csd.mot.com
  9. Lines: 14
  10.  
  11. gnb@duke.bby.com.au (Gregory N. Bond) writes:
  12.  
  13. >...  Instead, do it like
  14. >SunOs does: include just enough stuff in the prolog to mmap() in a
  15. >dynamic linker (/usr/lib/ld.so) written in PIC (with no global data)
  16. >and jump to it.  Have it do all the fixups, then return.  Unmmap it
  17. >and call the main() routine.
  18.  
  19. I thought ld.so was left in, and it got entered as new entry points
  20. were called.  Kind of a lazy relocation scheme.  With the interesting
  21. side effect that your program could die in the middle when it finally
  22. jumped to a symbol which was determined to be "undefined".
  23.  
  24.                 Andy Valencia
  25.