From owner-freebsd-hackers Wed Apr 10 09:46:12 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA19429 for hackers-outgoing; Wed, 10 Apr 1996 09:46:12 -0700 (PDT) Received: from rocky.sri.MT.net (rocky.sri.MT.net [204.182.243.10]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id JAA19422 for ; Wed, 10 Apr 1996 09:46:10 -0700 (PDT) Received: (from nate@localhost) by rocky.sri.MT.net (8.6.12/8.6.12) id KAA01583; Wed, 10 Apr 1996 10:45:50 -0600 Date: Wed, 10 Apr 1996 10:45:50 -0600 From: Nate Williams Message-Id: <199604101645.KAA01583@rocky.sri.MT.net> To: Michael Smith Cc: hackers@FreeBSD.ORG Subject: Re: DOS emulator; seek linker guru 8) In-Reply-To: <199604101628.BAA24172@genesis.atrad.adelaide.edu.au> References: <199604101628.BAA24172@genesis.atrad.adelaide.edu.au> Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > The scenario is this : most of the emulator code goes into a module > called "doscmd.kernel". This has a private crt0.o module, and its > own main() function. It's linked as : > > doscmd.kernel: crt0.o ${OBJS} > ld -N -T 110000 -o doscmd.kernel ${LDFLAGS} crt0.o ${OBJS} ${LDADD} Try adding -Bstatic to the link line and see if that helps. Since none of the dynamic link code is used (it's normally in the system crt0.o file), static linking should work. Nate