Subject: Re: Linux binaries compiled with libc-5.2.16
To: Koji Imada - je4owb/2 <koji@bimota.imada.math.human.nagoya-u.ac.jp>
From: Randy Terbush <randy@zyzzyva.com>
List: port-i386
Date: 12/24/1995 09:19:23
>  >> Has anyone else been able to run binaries with this library
>  >> dependency?  I am not having any problem with 5.0.9 requirements,
>  >> but the latest Linux Java fails to run with the 5.2.16 requirement.

I'm including below a patch that Frank van der Linden posted
to this list a week or so ago. This is required to get the Linux
Java JDK running. (at this time)

You will also need the latest patches that Frank made to the Linux
compat code to implement writev() system call.

Wouldn't it be nice to have a native Java.....


*** exec_elf.c.orig	Tue Sep 19 15:28:06 1995
--- exec_elf.c	Tue Dec 12 22:09:38 1995
***************
*** 279,284 ****
--- 279,291 ----
           * to two and hope :-(
           * We also assume that the text is r-x, and data is rwx or rw-.
           */
+ 
+ 	extern struct emul emul_linux_elf;
+ 
+ 	if (epp->ep_emul == &emul_linux_elf &&
+ 	    prot == (VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE))
+ 		prot &= ~VM_PROT_WRITE;
+ 
  	switch (prot) {
  	case (VM_PROT_READ | VM_PROT_EXECUTE):
  		if (epp->ep_tsize != ELF32_NO_ADDR)