From owner-freebsd-hackers Wed Oct 16 01:36:48 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA21994 for hackers-outgoing; Wed, 16 Oct 1996 01:36:48 -0700 (PDT) Received: from ra.dkuug.dk (ra.dkuug.dk [193.88.44.193]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id BAA21987; Wed, 16 Oct 1996 01:36:45 -0700 (PDT) Received: (from sos@localhost) by ra.dkuug.dk (8.6.12/8.6.12) id KAA20912; Wed, 16 Oct 1996 10:36:14 +0200 Message-Id: <199610160836.KAA20912@ra.dkuug.dk> Subject: Re: Linux compat issue(s) To: jdp@polstra.com (John Polstra) Date: Wed, 16 Oct 1996 10:36:13 +0200 (MET DST) Cc: sos@FreeBSD.org, hackers@FreeBSD.org In-Reply-To: <199610160011.RAA08338@austin.polstra.com> from "John Polstra" at Oct 15, 96 05:11:26 pm From: sos@FreeBSD.org Reply-to: sos@FreeBSD.org X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk In reply to John Polstra who wrote: > > > I propose that we use some unused space in the ELF header. The ELF > > header starts with a 16byte char field, where only the first 8 are > > used in all the ELF/i386 incarnations I've seen, so we can put a > > 8 char text here for the platform (that can easily be seen with > > the file(1) cmd too). Simple, easy, nice hack, works.... > > This is the kind of hack that I've argued against all along. But I > suppose it may be the only choice, if we want to be able to brand an > existing file. We can't use my Note section idea, because adding a > header to the program header part of the file shifts everything else > down in the file, changes the addresses of things in the program, and > so forth. It would be easy to add it in the link phase, but we are not > reasonably going to be able to control the link phase. > > It _is_ starting to sound like I agree with you, isn't it? :-) Yep, I told you so :) Well, I'll see if I can get a couble of hours and implement this in the kernel & the emulator. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Soren Schmidt (sos@FreeBSD.org) FreeBSD Core Team So much code to hack -- so little time.