1
rated 0 times
[
1]
[
0]
/ answers: 1 / hits: 1303
/ 2 Years ago, sun, february 13, 2022, 8:47:56
I would like to get a list of libraries requested by Gridwars executable.
I one year ago used ldd but
moi@myComputer:/opt/gridwars/gridwars_lin$ ldd gridwars
not a dynamic executable
After browsing the Internet, I found
moi@myComputer:/opt/gridwars/gridwars_lin$ readelf -d gridwars
Dynamic section at offset 0x70014 contains 27 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libX11.so.6]
0x00000001 (NEEDED) Shared library: [libGL.so.1]
0x00000001 (NEEDED) Shared library: [libGLU.so.1]
0x00000001 (NEEDED) Shared library: [libXxf86vm.so.1]
0x00000001 (NEEDED) Shared library: [libstdc++.so.5]
0x00000001 (NEEDED) Shared library: [libm.so.6]
0x00000001 (NEEDED) Shared library: [libpthread.so.0]
0x00000001 (NEEDED) Shared library: [libc.so.6]
0x0000000c (INIT) 0x804a284
0x0000000d (FINI) 0x80b29bd
0x00000004 (HASH) 0x8048168
0x00000005 (STRTAB) 0x8049268
0x00000006 (SYMTAB) 0x8048678
0x0000000a (STRSZ) 2091 (bytes)
0x0000000b (SYMENT) 16 (bytes)
0x00000015 (DEBUG) 0x0
0x00000003 (PLTGOT) 0x80b811c
0x00000002 (PLTRELSZ) 1408 (bytes)
0x00000014 (PLTREL) REL
0x00000017 (JMPREL) 0x8049d04
0x00000011 (REL) 0x8049cd4
0x00000012 (RELSZ) 48 (bytes)
0x00000013 (RELENT) 8 (bytes)
0x6ffffffe (VERNEED) 0x8049c14
0x6fffffff (VERNEEDNUM) 4
0x6ffffff0 (VERSYM) 0x8049a94
0x00000000 (NULL) 0x0
Right I have a list of the requested shared objects. But this still cause me some trouble : I cannot understand two things...
As proposed in comment, we may want to run file utility on the executable.
moi@mycomputer:/opt/gridwars/gridwars_lin$ file gridwars
gridwars: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.0, stripped
How can I check if one ".so" file/shared object is available?
Why the hell the gridwars executable is not an executable? I remember the thing to be a executable and even having found a magic command in three letters that list requested shared objects and if there were available.
Thanks for any help.
More From » executable