Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Dec 2010 18:58:50 +0100
From:      Tijl Coosemans <tijl@coosemans.org>
To:        Anton Shterenlikht <mexas@bristol.ac.uk>
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.]
Message-ID:  <201012151858.58520.tijl@coosemans.org>
In-Reply-To: <20101206151630.GB55368@mech-cluster241.men.bris.ac.uk>
References:  <20101129130415.GA47982@mech-cluster241.men.bris.ac.uk> <201012061406.31522.tijl@coosemans.org> <20101206151630.GB55368@mech-cluster241.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1680145.AXZLOnqFAl
Content-Type: Text/Plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

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 <xcllnt@mac.com> -----
>>>> 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.
>>=20
>> As a workaround you could manually brand the executable:
>> brandelf -f 9 a.out
>=20
> this works fine.

A fix has been committed to CURRENT, 8-STABLE and 7-STABLE. You should
no longer have to brand executables manually.

--nextPart1680145.AXZLOnqFAl
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)

iF4EABEIAAYFAk0JAeIACgkQfoCS2CCgtiuFDwD/VaDCiRJI5PGhqOtn57l7y6E4
QGDrtYaSxrRv6T6hDXUA/Aub+tx9GEmfjAcshlsuEOBcQuSuvVGLF+nsC0I74uSp
=C7kg
-----END PGP SIGNATURE-----

--nextPart1680145.AXZLOnqFAl--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012151858.58520.tijl>