From owner-freebsd-questions@FreeBSD.ORG Mon Dec 6 13:06:36 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 A87531065674 for ; Mon, 6 Dec 2010 13:06:36 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay011.isp.belgacom.be (mailrelay011.isp.belgacom.be [195.238.6.178]) by mx1.freebsd.org (Postfix) with ESMTP id 3B7058FC1A for ; Mon, 6 Dec 2010 13:06:35 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAFtt/Exbsc6j/2dsb2JhbACjNXK8boVJBJYO Received: from 163.206-177-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.177.206.163]) by relay.skynet.be with ESMTP; 06 Dec 2010 14:06:34 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.4/8.14.4) with ESMTP id oB6D6XGi003333; Mon, 6 Dec 2010 14:06:34 +0100 (CET) (envelope-from tijl@coosemans.org) From: Tijl Coosemans To: Anton Shterenlikht Date: Mon, 6 Dec 2010 14:06:22 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-PRERELEASE; KDE/4.5.2; i386; ; ) References: <20101129130415.GA47982@mech-cluster241.men.bris.ac.uk> In-Reply-To: <20101129130415.GA47982@mech-cluster241.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2169787.mSeIB6y8Ly"; protocol="application/pgp-signature"; micalg=pgp-sha256 Content-Transfer-Encoding: 7bit Message-Id: <201012061406.31522.tijl@coosemans.org> Cc: 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: Mon, 06 Dec 2010 13:06:36 -0000 --nextPart2169787.mSeIB6y8Ly Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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=20 >>> a.out: ELF 64-bit LSB executable, IA-64, version 1 (SYSV), statically >>> linked, not stripped >>>=20 >>> [amd64] >>> amd64% file a.out=20 >>> a.out: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), >>> statically linked, for FreeBSD 9.0 (900023), not stripped >>=20 >> 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. >>=20 >> This is a binutils problem. > > Anybody here can explain better what Marcel meant > by "binutils problem", and how to fix it? >=20 > 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 --nextPart2169787.mSeIB6y8Ly Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iF4EABEIAAYFAkz839cACgkQfoCS2CCgtiuD8QD9F/67z7Ono8aNV++ShoFSr/Ma t0a9B1oPrsWI//nOU7AA/0UU0dHcQmhmf4DIdFKw014y14DpYOfXMFdhhHJ/EdWq =Qgu7 -----END PGP SIGNATURE----- --nextPart2169787.mSeIB6y8Ly--