readelf displays information about ELF object files

18
votes
4answers
9k views

ldd equivalent on android

I have a libTest.so that does not load on some devices. logcat is absolutely useless.Using arm-linux-androideabi-readelf.exe -d libTest.so I was able to see all required libs that libTest.so needs. I ...
10
votes
1answer
2k views

Where is the “Section to segment mapping” stored in ELF files?

As part of trying to write a compiler completely from scratch, I'm currently working on the part the handles ELF files.After skimming through several articles and specifications about them, I still ...
0
votes
1answer
201 views

Incorrect function size inside ARM ELF object

readelf output of the object file:Symbol table '.symtab' contains 15 entries:Num: Value Size Type Bind Vis Ndx Name0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: ...
24
votes
1answer
8k views

readelf vs. objdump: why are both needed

I need to learn about the ELF file layout for a project I am working on and I noticed the existence of these tools.Why do all Linux distributions include both readelf and objdump? Do these tools ...
5
votes
1answer
2k views

How to extract function prototypes from an elf file?

I have not been successful in finding an answer on this question.Using GDB, I can use the command "call" to get the prototype of a function.Example:(gdb) call fn$1={void (int, int)} 0x8048414 &...
4
votes
2answers
713 views

why /lib32/libc.so.6 has two “fopen” symbol in it?

nm -D /lib32/libc.so.6 | grep '\<fopen\>'0005d0c0 T fopen00109750 T fopenreadelf -s /lib32/libc.so.6 | egrep '0005d0c0|00109750'181: 0005d0c0 50 FUNC GLOBAL DEFAULT 12 fopen@@...
1
vote
1answer
547 views

Meanings of mips flags from readelf command?

I have executed the command "readelf -h test" ("test" is my binary program) on linux, and got following text:ELF header:Magic: 7f 45 4c 46 ....Data: 2's complement, little endian......
0
votes
1answer
3k views

objdump/readelf get variables information

I need to get the information about global variables from a compiled c program. I asked a similar question in here.The problem that I have now is that the program where I am trying to extract the ...

angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,