From owner-freebsd-hackers Sat Jul 27 09:15:52 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA18074 for hackers-outgoing; Sat, 27 Jul 1996 09:15:52 -0700 (PDT) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id JAA18063 for ; Sat, 27 Jul 1996 09:15:49 -0700 (PDT) Received: (from root@localhost) by dyson.iquest.net (8.7.5/8.6.9) id LAA11370; Sat, 27 Jul 1996 11:14:09 -0500 (EST) From: "John S. Dyson" Message-Id: <199607271614.LAA11370@dyson.iquest.net> Subject: Re: So will this run or not :-) To: joerg_wunsch@uriah.heep.sax.de Date: Sat, 27 Jul 1996 11:14:09 -0500 (EST) Cc: freebsd-hackers@FreeBSD.ORG, rminnich@Sarnoff.COM In-Reply-To: <199607271031.MAA29771@uriah.heep.sax.de> from "J Wunsch" at Jul 27, 96 12:31:11 pm Reply-To: dyson@FreeBSD.ORG X-Mailer: ELM [version 2.4 PL24 ME8] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > As Ron G. Minnich wrote: > > > I have a file which needs to have text at a fairly high place. So i do: > > Why? > > > p0 24% make > > cc -o zclient -T 100000 zclient.o ../lib/libzounds.a > > This is certainly wrong. The -T option is a `special purpose' one, > and i think only used to link the kernel by now. > > The exact mapping of the text and data segment is a matter of the > kernel (imgact_aout.c, i suppose), and nothing you can simply change > by relinking the binary to another address. > I was just looking at the a.out format, and there appears to be no explicit indication of where the a.out is mapped. If there was (perhaps like in ELF) we could accomodate it. So, it appears that the a.out format simply doesn't/can't tell us (except by magic number.) John