From owner-freebsd-questions@FreeBSD.ORG Sat Dec 18 15:23:16 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EDA51065670 for ; Sat, 18 Dec 2010 15:23:16 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id CA2998FC12 for ; Sat, 18 Dec 2010 15:23:15 +0000 (UTC) Received: from ncsd.bris.ac.uk ([137.222.10.59] helo=ncs.bris.ac.uk) by dirg.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1PTycs-0007mz-Dm; Sat, 18 Dec 2010 15:23:14 +0000 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1PTycr-0005le-Uy; Sat, 18 Dec 2010 15:23:14 +0000 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4) with ESMTP id oBIFNDLZ042684; Sat, 18 Dec 2010 15:23:13 GMT (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4/Submit) id oBIFNDuk042683; Sat, 18 Dec 2010 15:23:13 GMT (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Sat, 18 Dec 2010 15:23:13 +0000 From: Anton Shterenlikht To: Tijl Coosemans Message-ID: <20101218152313.GA42662@mech-cluster241.men.bris.ac.uk> Mail-Followup-To: Tijl Coosemans , Anton Shterenlikht , freebsd-questions@freebsd.org References: <20101129130415.GA47982@mech-cluster241.men.bris.ac.uk> <201012061406.31522.tijl@coosemans.org> <20101206151630.GB55368@mech-cluster241.men.bris.ac.uk> <201012151858.58520.tijl@coosemans.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201012151858.58520.tijl@coosemans.org> User-Agent: Mutt/1.4.2.3i Cc: Anton Shterenlikht , freebsd-questions@freebsd.org Subject: Re: binutils problem? WAS [Re: static linking error: ELF binary type "0" not known. Exec format error. Binary file not executable.] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Dec 2010 15:23:16 -0000 On Wed, Dec 15, 2010 at 06:58:50PM +0100, Tijl Coosemans wrote: > On Monday 06 December 2010 16:16:30 Anton Shterenlikht wrote: > > On Mon, Dec 06, 2010 at 02:06:22PM +0100, Tijl Coosemans wrote: > >> On Monday 29 November 2010 14:04:16 Anton Shterenlikht wrote: > >>> ----- Forwarded message from Marcel Moolenaar ----- > >>>> On Nov 10, 2010, at 5:32 AM, Anton Shterenlikht wrote: > >>>>> [ia64] > >>>>> ia64% file a.out > >>>>> a.out: ELF 64-bit LSB executable, IA-64, version 1 (SYSV), statically > >>>>> linked, not stripped > >>>>> > >>>>> [amd64] > >>>>> amd64% file a.out > >>>>> a.out: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), > >>>>> statically linked, for FreeBSD 9.0 (900023), not stripped > >>>> > >>>> The branding on ia64 is wrong. The executable is not marked as being > >>>> a FreeBSD executable. It's declared as SYSV, whereas on amd64 it's > >>>> properly declared as FreeBSD. > >>>> > >>>> This is a binutils problem. > >>> > >>> Anybody here can explain better what Marcel meant > >>> by "binutils problem", and how to fix it? > >>> > >>> I've binutils-2.20.1_3 installed from devel/binutils. > >> > >> As a workaround you could manually brand the executable: > >> brandelf -f 9 a.out > > > > this works fine. > > A fix has been committed to CURRENT, 8-STABLE and 7-STABLE. You should > no longer have to brand executables manually. yes, just checked, many thanks. anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423