From 7543251e29e59398e36da07dc2d671418b98545a Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 10 Mar 1996 22:42:16 +0000 Subject: Move the elf linux_interp structure from the lkm stub to here so that it can be referenced when the linux emulator is statically compiled into the kernel. --- sys/i386/linux/linux_sysvec.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'sys/i386/linux') diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c index e7a72ae..c6316ae 100644 --- a/sys/i386/linux/linux_sysvec.c +++ b/sys/i386/linux/linux_sysvec.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_sysvec.c,v 1.1 1996/03/02 19:38:01 peter Exp $ + * $Id: linux_sysvec.c,v 1.2 1996/03/10 08:42:48 sos Exp $ */ /* XXX we use functions that might not exist. */ @@ -51,6 +51,7 @@ #include #include #include +#include #include #include #include @@ -398,3 +399,19 @@ struct sysentvec elf_linux_sysvec = { linux_prepsyscall, }; +/* + * Installed either via SYSINIT() or via LKM stubs. + */ +Elf32_Interp_info linux_interp = { + &elf_linux_sysvec, + "/lib/ld-linux.so.1", + "/compat/linux" + }; + +#ifndef LKM +/* + * XXX: this is WRONG, it needs to be SI_SUB_EXEC, but this is just at the + * "proof of concept" stage and will be fixed shortly + */ +SYSINIT(linuxelf, SI_SUB_VFS, SI_ORDER_ANY, elf_insert_interp, &linux_interp); +#endif -- cgit v1.1