From owner-freebsd-bugs Thu Mar 28 02:53:16 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA16306 for bugs-outgoing; Thu, 28 Mar 1996 02:53:16 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id CAA16277 for ; Thu, 28 Mar 1996 02:52:49 -0800 (PST) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id MAA28818; Thu, 28 Mar 1996 12:52:23 +0200 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id LAA14531; Thu, 28 Mar 1996 11:52:20 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.4/8.6.9) id KAA24169; Thu, 28 Mar 1996 10:45:15 +0100 (MET) From: J Wunsch Message-Id: <199603280945.KAA24169@uriah.heep.sax.de> Subject: Re: kern/1102: Differentiation of FreeBSD & Linux ELF binaries [patch] To: smpatel@wam.umd.edu Date: Thu, 28 Mar 1996 10:45:15 +0100 (MET) Cc: freebsd-bugs@freefall.freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199603271710.JAA09373@freefall.freebsd.org> from "Sujal Patel" at Mar 27, 96 09:10:01 am X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL24 ME8a] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Sujal Patel wrote: > Maybe I was a bit too tired when I wrote this patch, but I don't really > think it's a good idea to let the kernel parse the environment :) Well, doesn't the execve() code have to copy the environment over to the new address space anyway? I remember that Data General did some hacking in their ELF binaries to differentiate between the ``ABI'' and ``DG/UX'' ELF binaries (where they could use several optimizations if not using the m88k ABI). So i figure there is some `flags' field inside ELF that can be (ab)used. The question is: do Linux and SVR4 ELF binaries differentiate in any way? (We could certainly differentiate our own binaries, but we'll also have to determine 3rd party programs.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)