Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!sdd.hp.com!samsung!munnari.oz.au!metro!ipso!runxtsa!brucee From: brucee@runxtsa.runx.oz.au (Bruce Evans) Newsgroups: comp.os.minix Subject: Re: "makelib from bruce evans" Message-ID: <2371@runxtsa.runx.oz.au> Date: 6 Oct 90 19:56:18 GMT References: <1566@hslrswi.UUCP> Organization: RUNX Unix Timeshare. Sydney, Australia. Lines: 16 In article <1566@hslrswi.UUCP> schuerch@hslrswi.UUCP (Heinz Christoph Schuerch) writes: >I'm trying to build libraries with the makelib-script from bruce >evans, which was in bcclib.tar. >... > > zip1 xyz 15 1 It's actually zap1. This writes the byte '\001' at offset 15 in the file xyz. You can write zap1.c faster than I can post it :-). The magic offset is for a priority byte in the object file header. Normally the priority is 0. Priority 1 is used for stub routines such as a version of _exit() that does not reference stdio. This feature is unportable and not really supported so I haven't documented it properly. It's best not to write libraries that depend on linkage tricks. -- Bruce Evans (evans@syd.dit.csiro.au)