Tagged Questions

I'm writing a little program which trace all the syscall and calls of a binary file (elf) using ptrace (singlestep, getregs, pick_text, opcodes comparison, etc).
So far I've succeed to trace syscalls ...

I am working on a project where our verification test scripts need to locate symbol addresses within the build of software being tested. This might be used for setting breakpoints or reading static ...

I have a number of executables which link against a single lib path. For instance, the executable foo links against (say) libboost_system.so and libfoo.so, the latter of which I build myself. I place ...

I need to know how to find the total sizes for each of the section headers in a readelf file. The SIZE column tells me how much memory each section is taking up but I need to know how much total space ...

I'm including several libraries with gcc (-llapacke -llapack -lcblas) and I'm receiving "undefined reference" errors unless I explicitly link to the static version of one them (lapacke). I'm trying to ...

I have an elf file, and when I use readelf -h filename I get the entry point.
Now, lets say I want to calculate this address by myself [Using assembly, but the language isn't important].
How can I do ...

Assuming that you have the name of a symbol ( demangled or not ) and the name of a library dynamically linked to others, you want to find out which library is able to resolve that symbol.
I tried to ...

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 ...

I have a small static library compiled by (linux) gcc 4.8.2 with -fvisibility=hidden which is linked to a shared library (I have two versions, gcc one with C code and ifort one with Fortran code). The ...

I build a program and it works well(I mean that I can run this program). But when I use "readelf" to check whether there is debug information,errors come:
readelf: Error: Not an ELF file - it has the ...

We have tools like objdump, readelf, and dumbin to show executable file contents.
But when an executable file is loaded into memory (a process is created), the segments in memory is usually different ...

I use the Windows XP Operating System.
I cann't understand the logic by which readelf displays structures and unions.
Is there any method to extract all structures and unions from the ELF file using ...

I am working on a C program (under Linux ) that relies on shared libraries as plugins.
I provide each plugin with several functions from a static library of mine. In order to change the workflow of ...

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 ...

Is there a way to generate a list of C++ methods being called for an executable? I have a dynamic library and would like to see how many of the methods are being called from the executable. I can see ...

In my understanding, ELF header is for program execution view.
section is for linker's view.
but linux command 'readelf' shows that there are
memory access permission flag for each section (AWX)
and ...