From owner-freebsd-emulation Wed Feb 17 12: 9:57 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from gaia.euronet.nl (gaia.euronet.nl [194.134.0.10]) by hub.freebsd.org (Postfix) with ESMTP id 5ADA1111C3 for ; Wed, 17 Feb 1999 12:09:49 -0800 (PST) (envelope-from marcel@scc.nl) Received: from scones.sup.scc.nl (i430.ztm.euronet.nl [194.134.67.151]) by gaia.euronet.nl (8.8.8/8.8.8) with ESMTP id VAA19481; Wed, 17 Feb 1999 21:09:47 +0100 (MET) Received: from scc.nl (scones.sup.scc.nl [192.168.2.4]) by scones.sup.scc.nl (8.9.2/8.9.1) with ESMTP id VAA01321; Wed, 17 Feb 1999 21:09:42 +0100 (CET) (envelope-from marcel@scc.nl) Message-ID: <36CB2206.4F559F87@scc.nl> Date: Wed, 17 Feb 1999 21:09:42 +0100 From: Marcel Moolenaar Organization: SCC vof X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 3.1-BETA i386) X-Accept-Language: en MIME-Version: 1.0 To: Andre Albsmeier , emulation@freebsd.org Subject: ELF/VM problem [was: Re: linux ELF emulation is kinda broken (fwd)] References: <19990217163703.C2507@internal> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Andre Albsmeier wrote: > > > Tried libc-5.3.12-27.i386.rpm first and than ld.so-1.9.5-8.i386.rpm as well. > > > Unfortunately, nothing has changed. I had later 113 libs reported by ldconfig; > > > before there had been 91 only... I did some kernel debugging and found out that there is something funny going on when ld-linux.so.1 is about to get loaded. Function elf_load_section() in file /sys/kern/imgact_elf.c fails to load the first program header. More specifically, The very first vm_map_insert() in that function fails with error 22 (EINVAL). objdump gives the following information for ld-linux.so.1: ld-linux.so.1: file format elf32-i386 ld-linux.so.1 architecture: i386, flags 0x00000150: HAS_SYMS, DYNAMIC, D_PAGED start address 0x000009f8 Program Header: LOAD off 0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**12 filesz 0x00004e76 memsz 0x00004e76 flags r-x LOAD off 0x00004e78 vaddr 0x00005e78 paddr 0x00005e78 align 2**12 filesz 0x00000170 memsz 0x00000190 flags rw- DYNAMIC off 0x00004f78 vaddr 0x00005f78 paddr 0x00005f78 align 2**2 filesz 0x00000070 memsz 0x00000070 flags rw- [snip] I don't think I'm the one that's going to solve this in the near future, so if someone with enough knowledge about ELF and the VM subsystem can help out, lot's of people are going to be very happy :-) marcel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message