Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jan 1999 10:52:34 -0500
From:      "Norman C. Rice" <nrice@emu.sourcee.com>
To:        cjclark@home.com
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Linux Em. - 'ELF binary type not known'
Message-ID:  <19990118105234.A18173@emu.sourcee.com>
In-Reply-To: <199901181547.KAA14193@cc942873-a.ewndsr1.nj.home.com>; from Crist J. Clark on Mon, Jan 18, 1999 at 10:47:30AM -0500
References:  <199901181547.KAA14193@cc942873-a.ewndsr1.nj.home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 18, 1999 at 10:47:30AM -0500, Crist J. Clark wrote:
> I am trying to run a Linux binary under FreeBSD,
> 
> % uname -a
> FreeBSD pc252.scitec.com 2.2.7-RELEASE FreeBSD 2.2.7-RELEASE #0: Wed Dec 23 12:12:55 EST 1998     cjc@pc252.scitec.com:/usr/src/sys/compile/PC252  i386
> 
> However, I get the following error when I start the executable,
> 
> % stk
> [1] 6595
> ELF binary type not known

 brandelf -t Linux stk

-- 
Regards,
Norman C. Rice, Jr.


> [1]    Abort trap             /home/agi/STKv4/bin/bin.linux5.i386/stk
> 
> Note that the 'stk' I am calling is a csh script that executes the
> binary producing the errror.
> 
> I am, by no stretch of the imagination, any expert on Linux emulation,
> but I had a look at the begining of the Linux binary,
> 
>         00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F    0123456789ABCDEF
> 
> 000000  7F 45 4C 46 01 01 01 00 00 00 00 00 00 00 00 00    ^?ELF            
> 000010  02 00 03 00 01 00 00 00 5C AD 04 08 34 00 00 00            \   4   
> 000020  24 45 7A 00 00 00 00 00 34 00 20 00 05 00 28 00    $Ez     4     ( 
> 000030  16 00 15 00 06 00 00 00 34 00 00 00 34 80 04 08            4   4   
> 000040  34 80 04 08 A0 00 00 00 A0 00 00 00 05 00 00 00    4               
> 000050  04 00 00 00 03 00 00 00 D4 00 00 00 D4 80 04 08                    
> 000060  D4 80 04 08 13 00 00 00 13 00 00 00 04 00 00 00                    
> 000070  01 00 00 00 01 00 00 00 00 00 00 00 00 80 04 08                    
> 000080  00 80 04 08 40 2E 75 00 40 2E 75 00 05 00 00 00        @.u @.u     
> 000090  00 10 00 00 01 00 00 00 40 2E 75 00 40 BE 79 08            @.u @ y 
> 0000A0  40 BE 79 08 30 15 04 00 04 54 0B 00 06 00 00 00    @ y 0    T      
> 0000B0  00 10 00 00 02 00 00 00 D0 42 79 00 D0 D2 7D 08             By   } 
> 0000C0  D0 D2 7D 08 A0 00 00 00 A0 00 00 00 06 00 00 00      }             
> 0000D0  04 00 00 00 2F 6C 69 62 2F 6C 64 2D 6C 69 6E 75        /lib/ld-linu
> 0000E0  78 2E 73 6F 2E 32 00 00 C5 00 00 00 CF 00 00 00    x.so.2          
> [snip]
> 
> I noticed that I did not have a /compat/linux/lib/ld-linux.so.2 file,
> but rather 1.7.14. A few other libraries farther down in the binary
> were also one version up. I updated the Makefile in my 2.2.7
> /usr/ports and got the latest linux_lib distribution in which the
> numbers match up. However, this has not changed anything. I still get
> the unknown ELF complaint.
> 
> Do I need to update my Linux emulation module for the kernel? How
> would I do that? Would I be best off upgrading the whole kernel? Do I
> need to go to 2.2.8 (not too much of a problem from my 2.2.7 system)?
> Or would I need to go to 3.0 to run this Linux binary?
> 
> Thanks for any help. BTW, should this move to the emulation list? I
> went here since this is not really a 'development' issue.
> -- 
> Crist J. Clark                           cjclark@home.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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