Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 1996 09:10:01 -0800 (PST)
From:      Sujal Patel <smpatel@wam.umd.edu>
To:        freebsd-bugs
Subject:   Re: kern/1102: Differentiation of FreeBSD & Linux ELF binaries [patch]
Message-ID:  <199603271710.JAA09373@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/1102; it has been noted by GNATS.

From: Sujal Patel <smpatel@wam.umd.edu>
To: Sujal Patel <smpatel@xi.dorm.umd.edu>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/1102: Differentiation of FreeBSD & Linux ELF binaries [patch]
Date: Wed, 27 Mar 1996 12:01:42 -0500 (EST)

 On Tue, 26 Mar 1996, Sujal Patel wrote:
 
 > >Synopsis:       Differentiation of FreeBSD & Linux ELF binaries [patch]
 >
 > 3.  Follow the "interp" sections hints (current behavior) unless the
 > environment variable COMPAT_SYSVEC exists.  If the variable exists, it
 > overrides the sysvec in the "interp" section.  This means that we can now
 > invoke Linux ELF binaries by:
 >
 > (export COMPAT_SYSVEC=linux; linux.helloworld.elf.static)
 
 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 :)
 
 How about instead of that, add an extra argument to the execve() syscall
 (to hold the emulation type requested), and then have libc pass in the
 emulation type requested (by reading the COMPAT_SYSVEC environment
 variable).  Also, the libc exec() and friends can strip out the
 COMPAT_SYSVEC environment variable, so it is not inherited by the
 processes children (which is probably the desired behavior?).
 
 Comments?
 
 
 Sujal
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603271710.JAA09373>