Subject: Re: RPM very slow... Linux annoys...
To: Hacksaw <hacksaw@user1.channel1.com>
From: Frank van der Linden <frank@fwi.uva.nl>
List: netbsd-help
Date: 12/09/1996 09:50:10
Quoting Hacksaw,
> I'm using NetBSD 1.2.
> I have created a kernel with linux compatibility.
> I have created a directory called /emul/linux. (/emul actually poibts
> to /usr/emul, which is on my large partition.)
> Does anyone have suggestions as to an efficient path to follow?
See the compat_linux(8) manual page. In particular, make sure you have
the right shared libs and runtime linker.
Also, you might need the following patch, which will be in 1.2pl1.
- Frank
*** exec_elf.c.orig Sat Feb 10 13:32:13 1996
--- exec_elf.c Sun Oct 20 13:55:36 1996
***************
*** 405,412 ****
(caddr_t) ph, phsize)) != 0)
goto bad;
! epp->ep_tsize = ELF32_NO_ADDR;
! epp->ep_dsize = ELF32_NO_ADDR;
interp[0] = '\0';
--- 405,412 ----
(caddr_t) ph, phsize)) != 0)
goto bad;
! epp->ep_taddr = epp->ep_tsize = ELF32_NO_ADDR;
! epp->ep_daddr = epp->ep_dsize = ELF32_NO_ADDR;
interp[0] = '\0';
***************
*** 467,472 ****
--- 467,476 ----
if (eh->e_entry >= addr && eh->e_entry < (addr + size)){
epp->ep_taddr = addr;
epp->ep_tsize = size;
+ if (epp->ep_daddr == ELF32_NO_ADDR) {
+ epp->ep_daddr = addr;
+ epp->ep_dsize = size;
+ }
} else {
epp->ep_daddr = addr;
epp->ep_dsize = size;