From owner-freebsd-current Thu Mar 26 12:55:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA22901 for freebsd-current-outgoing; Thu, 26 Mar 1998 12:55:19 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from scsn.net (ppp58.coladlp1.scsn.net [208.133.153.58]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA22864 for ; Thu, 26 Mar 1998 12:55:12 -0800 (PST) (envelope-from dmaddox@scsn.net) Received: (from root@localhost) by scsn.net (8.8.8/8.8.8) id PAA00972; Thu, 26 Mar 1998 15:54:31 GMT (envelope-from root) Message-ID: <19980326155430.29791@scsn.net> Date: Thu, 26 Mar 1998 15:54:30 +0000 From: "Donald J.Maddox" To: Tom , Ollivier Robert Cc: freebsd-current@FreeBSD.ORG Subject: Re: Linux binaries that don't run? Reply-To: dmaddox@scsn.net Mail-Followup-To: Tom , Ollivier Robert , freebsd-current@FreeBSD.ORG References: <19980326002958.A10562@keltia.freenix.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: ; from Tom on Wed, Mar 25, 1998 at 08:26:36PM -0800 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Mar 25, 1998 at 08:26:36PM -0800, Tom wrote: > > On Thu, 26 Mar 1998, Ollivier Robert wrote: > > > According to Tom: > > > ELF binaries need to be branded before use. ELF is a bit stupid in the > > > fact that it doesn't indicate what platform the binary is for. So you > > > need to use brandelf to write the type into the binary, so the loader > > > knows that it is Linux ELF. > > > > Nitpicking: that does concern only _static_ binaries. Dynamic have the > > loader's name encoded and don't need to be "branded". > > Strange. The original poster branded his binary, then ran into problems > because certain libraries couldn't be found. Sounds like dynically linked > to me :) In my experience, when you get a message that an ELF binary type is unknown when running a dynamically linked binary, it usually means that the message is caused not by the loading of the dynamic binary, but rather by that binary trying to load another that is _not_ dynamically linked. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message