From owner-freebsd-emulation Sun Nov 14 17:53:37 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from europa.dreamscape.com (europa.dreamscape.com [206.64.128.147]) by hub.freebsd.org (Postfix) with ESMTP id 4CFC214BF9 for ; Sun, 14 Nov 1999 17:53:34 -0800 (PST) (envelope-from krentel@dreamscape.com) Received: from dreamscape.com (sA24-p21.dreamscape.com [209.217.202.213]) by europa.dreamscape.com (8.8.5/8.8.4) with ESMTP id UAA26924 for ; Sun, 14 Nov 1999 20:53:22 -0500 (EST) X-Dreamscape-Track-A: sA24-p21.dreamscape.com [209.217.202.213] X-Dreamscape-Track-B: Sun, 14 Nov 1999 20:53:22 -0500 (EST) Received: (from krentel@localhost) by dreamscape.com (8.9.3/8.9.3) id UAA01121 for freebsd-emulation@freebsd.org; Sun, 14 Nov 1999 20:51:45 -0500 (EST) (envelope-from krentel) Date: Sun, 14 Nov 1999 20:51:45 -0500 (EST) From: "Mark W. Krentel" Message-Id: <199911150151.UAA01121@dreamscape.com> To: freebsd-emulation@freebsd.org Subject: unbranded, static linux binaries Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I think the linux emulation has a problem with linux binaries that are unbranded and compiled statically. They run, but only after being branded type Linux. Unbranded, I get "ELF binary type not known." I'm running 3.3-stable as of Nov 7 and the linux_base-6.0 port from www.freebsd.org/~marcel (which works well) and the linux.ko module is installed. a.out is the "hello, world" program compiled statically in Red Hat 6.0. % file a.out a.out: ELF 32-bit LSB executable, Intel 80386, version 1, statically linked, not stripped % ./a.out ELF binary type not known. Use "brandelf" to brand it. Abort trap % brandelf -t Linux a.out % ./a.out Hello, world % Red Hat doesn't use many static binaries, but I've seen the same behavior with ash.static and rpm. Is it difficult to identify the type of a static binary without a brand, or did someone just forget this case? PR? I searched -emulation, -stable and the PR's for "linux", "brand" and "static" but didn't find anything relevant. --Mark Krentel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message