binutils problem? WAS [Re: static linking error: ELF binary type "0" not known. Exec format error. Binary file not executable.]

Tijl Coosemans tijl at coosemans.org
Wed Dec 15 17:59:04 UTC 2010


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 at mac.com> -----
>>>> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20101215/eb8cf49d/attachment.pgp


More information about the freebsd-questions mailing list