Created
June 28, 2018 04:45
-
-
Save fragamus/261299b22b5f803b3b4c870567c1f687 to your computer and use it in GitHub Desktop.
patchelf help needed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I need to patchelf this pre-built binary to run on my 64 bit intel nixos machine: | |
$ file foo | |
ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.0.0, stripped | |
$ readelf -d foo | |
Dynamic section at offset 0x128f8 contains 21 entries: | |
Tag Type Name/Value | |
0x00000001 (NEEDED) Shared library: [libm.so.6] | |
0x00000001 (NEEDED) Shared library: [libc.so.6] | |
0x0000000c (INIT) 0x804862c | |
0x0000000d (FINI) 0x8057c1c | |
0x00000004 (HASH) 0x8048128 | |
0x00000005 (STRTAB) 0x80483b8 | |
0x00000006 (SYMTAB) 0x80481e8 | |
0x0000000a (STRSZ) 286 (bytes) | |
0x0000000b (SYMENT) 16 (bytes) | |
0x00000015 (DEBUG) 0x0 | |
0x00000003 (PLTGOT) 0x805b9d8 | |
0x00000002 (PLTRELSZ) 192 (bytes) | |
0x00000014 (PLTREL) REL | |
0x00000017 (JMPREL) 0x804856c | |
0x00000011 (REL) 0x8048554 | |
0x00000012 (RELSZ) 24 (bytes) | |
0x00000013 (RELENT) 8 (bytes) | |
0x6ffffffe (VERNEED) 0x8048524 | |
0x6fffffff (VERNEEDNUM) 1 | |
0x6ffffff0 (VERSYM) 0x80484ea | |
0x00000000 (NULL) 0x0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment