I’m working on Linux and I’ve just heard that there was a command objcopy, I’ve found the relative command on my x86_64 PC: x86_64-linux-gnu-objcopy. With its help, I can convert a file into an obj file: x86_64-linux-gnu-objcopy -I binary -O elf64-x86-64 custom.config custom.config.o The file custom.config is a human-readable file. It contains two lines: Now I can execute objdump -x
Tag: objdump
Getting only hexa decimal byte values from the disassembly of a compiled library
I have used objdump to disassemble all the functions in a compiled library file and written the output to a text file. In the text file the output of function called clear_bit is as follows. The output of an another function set_bit is as follows-: Similar to the above two functions, this output.txt contains disassembly of more than 100 such
objdump -t /usr/bin/sort command shows no symbols
If I try objdump -t /usr/bin/sort command it says no symbols. But it seems to work on my programs. What is the reason for this? Answer The symbols of /usr/bin/sort has been removed, e.g. with the strip program – for most executables the symbol table is not needed (or only needed for debugging). Here is a bit more info.