Skip to content

Instantly share code, notes, and snippets.

@jkutner
Last active December 8, 2015 15:29
Show Gist options
  • Save jkutner/39b85cf979351eaf78c7 to your computer and use it in GitHub Desktop.
Save jkutner/39b85cf979351eaf78c7 to your computer and use it in GitHub Desktop.
[vagrant@vagrant-freebsd-10 ~]$ mjruby -v
ELF binary type "0" not known.
-bash: /home/vagrant/jruby/jruby-9.0.4.0/bin/mjruby: cannot execute binary file: Exec format error
[vagrant@vagrant-freebsd-10 ~]$ readelf -e jruby/jruby-9.0.4.0/bin/mjruby
ELF Header:
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0x401d40
Start of program headers: 64 (bytes into file)
Start of section headers: 383096 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 9
Size of section headers: 64 (bytes)
Number of section headers: 30
Section header string table index: 27
...
[vagrant@vagrant-freebsd-10 ~]$ brandelf -l
known ELF types are: FreeBSD(9) Linux(3) Solaris(6) SVR4(0)
[vagrant@vagrant-freebsd-10 ~]$ brandelf -f 9 jruby/jruby-9.0.4.0/bin/mjruby
[vagrant@vagrant-freebsd-10 ~]$ mjruby -v
ELF interpreter /lib64/ld-linux-x86-64.so.2 not found
Abort trap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment