readelf Questions
2
Solved
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)} 0x80484...
Hillell asked 19/3, 2014 at 8:39
2
I have a requirement on changing certain symbols from shared library (.so) files like below example:
i need to rename symbol abc in .so file to symbol xyz. I have a tool to replace it in header fil...
Ichthyic asked 20/8, 2021 at 6:51
1
Solved
I have some binary .fic files in a proprietary format , I have a wd250hf64.so from this vendor that contains a C++ method CComposanteHyperFile::HExporteXML(wchar_t* const path)
that I can see using...
Theism asked 29/12, 2021 at 23:39
1
Solved
Here's a very simple C++ program:
// main.cpp
int main() {}
My Makefile generates the following command to compile the program.
❯ make
g++ -O0 -fverbose-asm -o main main.cpp
I check wit...
2
Solved
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 sti...
Bevon asked 11/4, 2014 at 17:1
2
Solved
The following is a line from a microprocessor startup file, intended for input into the GNU assembler as:
.section .isr_vector,"a",%progbits
Does the dot at the beginning of the name .isr_vector...
1
register_tm_clones and deregister_tm_clones are referencing memory addresses past the end of my RW sections. How is this memory tracked?
Example: In the example below deregister_tm_clones referenc...
Cousins asked 22/12, 2016 at 1:25
4
Solved
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...
Risser asked 20/3, 2013 at 20:32
1
I want to read .plt section of an ELF binary and get all the virtual addresses of external functions.
Disassembly of section .plt:
0000000000400400 <puts@plt-0x10>:
400400: ff 35 02 0c 20...
Garygarza asked 3/6, 2015 at 19:35
1
Solved
For example:
<0><b>: Abbrev Number: 1 (DW_TAG_compile_unit)
<c> DW_AT_producer : (indirect string, offset: 0xe): GNU C1
1 5.4.0 20160609 -masm=intel -m32 -mtune=generic -march=...
1
Problem scenario:
In simple words, do we have a Trace32 command to read symbols (and its contents) from ELF file that was loaded on to target ? We have this special case where application specific ...
Ramiah asked 28/11, 2016 at 3:55
1
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 ...
3
Solved
Im writing a script for extracting all the functions (written by user) in a binary.
The following shell script extracts my function names as well as some library functions which start with __.
read...
1
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...
Superintend asked 14/6, 2012 at 19:15
1
Solved
I need to get the global symbols from a compiled c program file. What I use is the linux command readelf -s filePath when I use that command this is what I get:
I draw a blue rectangle to show t...
1
Solved
Suppose we have a shared library named libtest.so, there is one function "foo" in it
use the strip to discards all symbols from libtest.so
$strip libtest.so
so ,now if we use:
$nm libtest.so
...
1
Solved
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 c...
1
Solved
I'm trying to load an elf file into a MIPS simulator I made. The problem I'm having is that I don't quite understand the meaning behind the elf section header offset. When I do a segment dump, segm...
Percutaneous asked 19/7, 2010 at 13:58
1
© 2022 - 2024 — McMap. All rights reserved.