Questions tagged [readelf]

readelf displays information about ELF object files

readelf displays information about Executable and Linkable Format object files. It performs a similar function to objdump but it goes into more detail and it exists independently of the BFD library, so if there is a bug in BFD then readelf will not be affected.

On Linux, two widely available implementations exist:

138 questions
-1
votes
2 answers

ELF Program Headers and Virtual Address

I'm understanding ELF and its program headers. When I read an ELF using readelf with file type as DYN. I see virtual address value in Program Headers is actually from kernel Virtual address space. Elf file type is DYN (Shared object file) Entry…
shivank
  • 67
  • 1
  • 10
-1
votes
1 answer

Why can I not read Big Endian ELF files the same way as Little Endian files in C++?

Essentially, I am doing something similar to https://wiki.osdev.org/ELF_Tutorial, where I load the data into structs and read the various sections by their offsets. The host is little endian and I'm trying to analyze files that were cross-compiled…
srujzs
  • 340
  • 3
  • 14
-2
votes
2 answers

How to find the address of a symbol in a .so file

Hi I am trying to find the absolute address of a symbol(like a function name) in a .so file. I tried nm -gDC myLib.so and objdump -TC myLib.so, but I didn't find the address. Symbol table '.symtab' contains 91 entries: 59: 0000000000000000 0…
Qiyang Li
  • 109
  • 2
  • 9
1 2 3
9
10