From owner-freebsd-arch Wed May 8 1:56:36 2002 Delivered-To: freebsd-arch@freebsd.org Received: from fw.wemm.org (12-232-135-171.client.attbi.com [12.232.135.171]) by hub.freebsd.org (Postfix) with ESMTP id 320DC37B403 for ; Wed, 8 May 2002 01:56:25 -0700 (PDT) Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by fw.wemm.org (8.11.6/8.11.6) with ESMTP id g488uP431765 for ; Wed, 8 May 2002 01:56:25 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id CE66B38CC; Wed, 8 May 2002 01:56:24 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Christoph Hellwig Cc: Nathan Hawkins , arch@FreeBSD.ORG Subject: Re: syscall changes to deal with 32->64 changes. In-Reply-To: <20020508091704.A12628@infradead.org> Date: Wed, 08 May 2002 01:56:24 -0700 From: Peter Wemm Message-Id: <20020508085624.CE66B38CC@overcee.wemm.org> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Christoph Hellwig wrote: > On Tue, May 07, 2002 at 11:28:37PM -0700, Peter Wemm wrote: > > syscall. For linux, ELF executables started up in "SVR4 mode" and the > > personality syscall changed it to "linux". > > That's wrong. On Linux ELF binaries start as normal linux processes. > Depending on whether binary emulation is enabled and certain hints are > found (SCO elfmark branding, different interpreter) they are forced to > be foreign personalities. Also if binaries issues syscalls on foreign > syscalls vectors (e.g. lcall27 for Solaris/ix86 or lcall7 for the > i386 SVR3/SVR4 derivates.). Bah, you are correct. The last I looked at the code was around 1.2 era, and looking again: if (strcmp(elf_interpreter,"/usr/lib/libc.so.1") == 0 || strcmp(elf_interpreter,"/usr/lib/ld.so.1") == 0) ibcs2_interpreter = 1; .. current->personality = (ibcs2_interpreter ? PER_SVR4 : PER_LINUX); Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message