From owner-freebsd-hackers Fri Mar 5 12:46:34 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 7A58515252 for ; Fri, 5 Mar 1999 12:46:15 -0800 (PST) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.1/8.9.1) with ESMTP id MAA16422; Fri, 5 Mar 1999 12:45:57 -0800 (PST) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.2/8.9.1) id MAA02016; Fri, 5 Mar 1999 12:45:56 -0800 (PST) (envelope-from jdp@polstra.com) Date: Fri, 5 Mar 1999 12:45:56 -0800 (PST) Message-Id: <199903052045.MAA02016@vashon.polstra.com> To: garyj@muc.de Subject: Re: brandelf (necessary?) In-Reply-To: <199903032249.XAA32433@peedub.muc.de> Organization: Polstra & Co., Seattle, WA Cc: hackers@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <199903032249.XAA32433@peedub.muc.de>, Gary Jennejohn wrote: > Christoph Kukulies writes: > >In an environment where FreeBSD needs to run linux binaries > >that are shared with linux systems, would it do harm to brandelf > >these binaries? Or in other words, would it be possible for FreeBSD > >to autodetect that it's a linux ELF binary without having to brand it? > > > > as long as the linuxulator is loaded (linux.ko) it does not seem to be > necessary to brandelf Linux binaries. At least, that's been my experience. If the executables are dynamically linked, the image loader can normally guess their OS type based on the dynamic linker name that's stored in the executable file. But for statically-linked programs, a correct brand is necessary. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Nobody ever went broke underestimating the taste of the American public." -- H. L. Mencken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message