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

  1. Path: sparky!uunet!munnari.oz.au!mel.dit.csiro.au!yarra!yarrina.connect.com.au!melba.bby.oz.au!gnb
  2. From: gnb@duke.bby.com.au (Gregory N. Bond)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: Shared Libs for X11?, was Re: 386bsd -- The New Newsgroup
  5. Message-ID: <1992Sep14.232949.9093@bby.com.au>
  6. Date: 14 Sep 92 23:29:49 GMT
  7. References: <18iprpINNg6e@agate.berkeley.edu> <1992Sep8.200625.2894@socrates.umd.edu>
  8.     <veit.716026274@du9ds3> <18lkkkINN14d@agate.berkeley.edu>
  9.     <veit.716107923@du9ds3> <7dnL02y821gh01@JUTS.ccc.amdahl.com>
  10.     <veit.716291291@du9ds3>
  11. Sender: usenet@bby.com.au (news READER id)
  12. Organization: Burdett, Buckeridge & Young, Melbourne, Australia
  13. Lines: 21
  14. In-Reply-To: veit@du9ds3.uni-duisburg.de's message of 12 Sep 92 09:48:11 GMT
  15. Nntp-Posting-Host: duke
  16.  
  17. >>>>> On 12 Sep 92 09:48:11 GMT, veit@du9ds3.uni-duisburg.de (Holger Veit) said:
  18.  
  19. >> The program loader (kern_execve) resolves the lib references to the
  20. >> shared area, and makes the program's shared data segment
  21. >> copy-on-write so that it does not influence the memory of the
  22. >> library server.
  23.  
  24. The kernel is probably the wrong place to put all this.  (kern_execve
  25. is hairy enough; witness the number of patches).  Instead, do it like
  26. SunOs does: include just enough stuff in the prolog to mmap() in a
  27. dynamic linker (/usr/lib/ld.so) written in PIC (with no global data)
  28. and jump to it.  Have it do all the fixups, then return.  Unmmap it
  29. and call the main() routine.
  30.  
  31. This could be done completely independant of the kernel.
  32.  
  33. Greg.
  34. --
  35. Gregory Bond <gnb@bby.com.au> Burdett Buckeridge & Young Ltd Melbourne Australia
  36. ``USL has never sold long distance.  You're going after the wrong men in black 
  37.   hats.  (Or, in the case of Plan 9, black space suits)'' - Tom Limoncelli
  38.