Path: utzoo!attcan!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!mailrus!purdue!decwrl!hplabs!hp-sdd!ucsdhub!jack!elgar!ford From: ford@elgar.UUCP (Mike "Ford" Ditto) Newsgroups: comp.sys.att Subject: Re: Unix PC ".lib" section (Was Re: UNIXpc per-process VM limit) Keywords: unixpc coff Message-ID: <190@elgar.UUCP> Date: 17 Jun 88 07:05:57 GMT References: <3030@crash.cts.com> <365@manta.UUCP> <1002@umbc3.UMD.EDU> <369@manta.UUCP> <1006@umbc3.UMD.EDU> <179@elgar.UUCP> <104@tarkus.UUCP> Reply-To: ford@kenobi.cts.com (Mike "Ford" Ditto) Organization: Omnicron Data Systems, Bonita, CA Lines: 33 In article <104@tarkus.UUCP> jcs@tarkus.UUCP (John C. Sucilla) writes: >In article <179@elgar.UUCP> ford@kenobi.UUCP (Mike "Ford" Ditto) writes: >>So, evidently, the kernel just looks at the number of sections to >>decide whether to use the shared library or not. > >This can't be entirely true because it's possible to create an optional >header which would give you yet another section and if you retained relocation >info in the output file you have still another valid section. No, the optional header and symbol information are not "sections" in the coff file. The optional header is always present in a.out files, relocation info never is; the symbol information (if present) is never looked at by the kernel. >All you accomplished by doing this is losing the addresses that the .lib >section supplied. In fact, you can create as many sections as you want until >you hit the limit (12, I believe) in the kernel. There are no useful addresses in the .lib section header. It only contains the address of the first location past the end of the bss section, which is where the data for the .lib section would be if there were any. I haven't tried execing an a.out with any non-standard sections, but I'd bet that it either wouldn't load or that the (nscns>3) would just cause the shared library to be used. -=] Ford [=- "Once there were parking lots, (In Real Life: Mike Ditto) now it's a peaceful oasis. ford@kenobi.cts.com This was a Pizza Hut, ...!sdcsvax!crash!kenobi!ford now it's all covered with daisies." -- Talking Heads