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

  1. Path: sparky!uunet!wupost!gumby!destroyer!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!unidui!du9ds3!veit
  2. From: veit@du9ds3.uni-duisburg.de (Holger Veit)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: Shared Libs for X11?, was Re: 386bsd -- The New Newsgroup
  5. Date: 15 Sep 92 12:57:46 GMT
  6. Organization: Uni-Duisburg FB9 Datenverarbeitung
  7. Lines: 42
  8. Message-ID: <veit.716561866@du9ds3>
  9. 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>
  10. Reply-To: veit@du9ds3.uni-duisburg.de
  11. NNTP-Posting-Host: du9ds3.uni-duisburg.de
  12.  
  13. In <1992Sep14.232949.9093@bby.com.au> gnb@duke.bby.com.au (Gregory N. Bond) writes:
  14.  
  15. >>>>>> On 12 Sep 92 09:48:11 GMT, veit@du9ds3.uni-duisburg.de (Holger Veit) said:
  16.  
  17. >>> The program loader (kern_execve) resolves the lib references to the
  18. >>> shared area, and makes the program's shared data segment
  19. >>> copy-on-write so that it does not influence the memory of the
  20. >>> library server.
  21.  
  22. >The kernel is probably the wrong place to put all this.  (kern_execve
  23. >is hairy enough; witness the number of patches).  Instead, do it like
  24. >SunOs does: include just enough stuff in the prolog to mmap() in a
  25. >dynamic linker (/usr/lib/ld.so) written in PIC (with no global data)
  26. >and jump to it.  Have it do all the fixups, then return.  Unmmap it
  27. >and call the main() routine.
  28.  
  29. >This could be done completely independant of the kernel.
  30.  
  31. >Greg.
  32. >--
  33. >Gregory Bond <gnb@bby.com.au> Burdett Buckeridge & Young Ltd Melbourne Australia
  34. >``USL has never sold long distance.  You're going after the wrong men in black 
  35. >  hats.  (Or, in the case of Plan 9, black space suits)'' - Tom Limoncelli
  36.  
  37. This is what I originally intended; I'm just sitting in front of a Sparc,
  38. and curiously watch what it is doing...:-). There are two possible problems:
  39. 1. What will Sun say about using (or reverse-engineering) their solution
  40.    (in the light of AT&T vs. BSDI/UCB...)?
  41. 2. It is rumoured that the whole Sun DL stuff depends on or contains 
  42.    self-modifying code, which caused/s problems with SunOS look-alikes 
  43.    like Solbourne OS/MP (was fixed by some strange patch in OS/MP). I don't
  44.    know whether this is needed (I suppose, not), but it make me think that
  45.    this can be not a clean solution.
  46.  
  47. What is "the net's" opinion?
  48.  
  49. Holger
  50. -- 
  51. |  |   / Dr. Holger Veit         | INTERNET: veit@du9ds3.uni-duisburg.de
  52. |__|  /  University of Duisburg  | BITNET: veit%du9ds3.uni-duisburg.de@UNIDO
  53. |  | /   Dept. of Electr. Eng.   | "No, my programs are not BUGGY, these are
  54. |  |/    Inst. f. Dataprocessing |          just unexpected FEATURES"
  55.