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