Questions tagged [objdump]

objdump is a program for displaying various information about object files. For instance, it can be used as a disassembler to view executable in assembly form. It is part of the GNU Binutils for fine-grained control over executable and other binary data.

477 questions
0
votes
1 answer

how to see the assembly of libc functions in an elf

how can i see the assembly of standard c library functions in an elf? for example, i have a binary that i have the source code of this binary and i know that printf is called in main function. i want to see the assembly of printf function in this…
taranom
  • 153
  • 2
  • 12
0
votes
0 answers

Python for check debug symbols

I am trying to made multiple platform script for checking if binary has a debug symbols. I want a whole script be written in python. I am wondering to evoke commands like gdb or objdump. for this purpose. What are your suggestions for the efficient…
Przemekeke
  • 81
  • 10
0
votes
0 answers

What's the meaning of 2.2.5 in memcpy@GLIBC_2.2.5?

My glibc version is 2.32-5, but when I "objdump" memcpy implementation, it shows: 00000000000a9280 : fe9ba: 48 8d 05 bf a8 fa ff lea -0x55741(%rip),%rax # a9280 ffc71: 48 8d 05…
Chen Li
  • 4,824
  • 3
  • 28
  • 55
0
votes
1 answer

How to identify an array defined in a shared library?

I'm dealing with an old proprietary shared library -- no source code. The binary contains lots of symbols (thousands), among them an array of character strings I need (several hundred strings). I know, it is there, because strings(1) lists them all…
Mikhail T.
  • 3,043
  • 3
  • 29
  • 46
0
votes
0 answers

How to suppress function names in disassembled output?

When creating the disassembly output of an obj or an exe file, objdump creates function names in angle brackets, like; 0000000000000598 : 598: push rbp 599: push rbx 59a: sub rsp,0x38 59e: lea …
ssd
  • 2,340
  • 5
  • 19
  • 37
0
votes
1 answer

How do I get a compilable result from objdump?

objdump -S --disassemble Test> Test.s Then gcc Test.s Apparently, it does not work. Is there any option I can specify to objdump to get compilable assembly?
Samuel
  • 803
  • 8
  • 17
0
votes
1 answer

Can I get objdump --full-contents to only print the raw text?

I have an object file which with a section containing proper ASCII (or Latin-1?) text. So, if I write: $ objdump -s my_file.so --section=.rodata looks like this (only presenting a few lines from the middle, it's obviously very long): 070a80…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
0
votes
1 answer

Is there a standalone program to get same info from gdb info symbol

If I load a library in to gdb and do info symbol 0xB0153C I get something like function + offset Is there a way to get this same information without gdb? Like some readelf/objdump option? Thanks
TreeWater
  • 761
  • 6
  • 13
0
votes
2 answers

Why are global and static objects stored in the section of bss

I'm studying the sections of a binary file. I used the c++ code below: // test.cpp struct Test { int i; Test(int ii) : i(ii) {} Test() {} }; Test t0{5}; Test t1 = Test(5); Test t2; static Test t3; static Test t4{5}; int i = 1; int…
Yves
  • 11,597
  • 17
  • 83
  • 180
0
votes
0 answers

Why are unknown instuctions there in a file generated by objdump?

I dumped an object file using 'objdump', and found wierd instructions (unknown instructions). The following shows that wierd part. The object file is built with thumb-2 compile option. So, you can find normal 16-bit and 32-bit instructions from…
0
votes
2 answers

Differentiating between rv64imafd and rv64imafdc isa

How can differentiate between a rv64imafd and rv64imafdc binary without executing them? I am using few compiler flags for changing the extensions but I'm not sure how to verify it. I don't want to dump the executable every time for testing on my…
0
votes
1 answer

Cannot reproduce building static library

I create a static library (libxil.a) (more precisely Xilinx's SDK generates a static library from BSP sources) I realized that running make twice on the same sources produces different libxil.a. (The md5sum-s are different): $ make ... $ md5sum…
betontalpfa
  • 3,454
  • 1
  • 33
  • 65
0
votes
1 answer

Why Does the .bss Section Output Show a Large Value Compared to the Memory Map Output?

I'm compiling someone else's code using GCC and the output from GCC shows a large .bss section: text data bss dec 9468 1080 10892 21440 I run the following command to generate information related to each section so I can try and figure…
cDreamer
  • 385
  • 5
  • 18
0
votes
0 answers

Find Symbol Sizes in a Binary

I used objdump -t on the debug-info file of a program to find the address ranges of each function. There are a few functions the bounds of which can not be determined using this method. Because objdump reports 0 for their sizes. These symbols are…
TheAhmad
  • 810
  • 1
  • 9
  • 21
0
votes
1 answer

what does extra symbol and assembly code mean?

I have a simple c file: // filename: test.c void fun() {} Then I compile test.c to libtest.so using commands: gcc -shared -fPIC -Wl,--gc-sections -ffunction-sections -fdata-sections -o libtest.so test.c strip -s ./libtest.so Then use readelf to…
expoter
  • 1,622
  • 17
  • 34