object-code

How can I examine contents of a data section of an ELF file on Linux?

雨燕双飞 提交于 2019-11-27 10:33:18
I've been using objdump to look at assembly code in Linux ELF binaries. Sometimes there is an indirect jump through a jump table that is stored in the rodata (read-only data) section. How to get objdump or any other tool to show me the contents of this data section? I could execute the program and examine the relevant addresses in the debugger, but I don't want to do that because it has to be done interactively. The ideal answer will identify a tool that will not only show me the contents but will let me control the display format, much as od does. hobbs objdump -s -j .rodata exefile gives a

How can I examine contents of a data section of an ELF file on Linux?

被刻印的时光 ゝ 提交于 2019-11-26 15:13:40
问题 I've been using objdump to look at assembly code in Linux ELF binaries. Sometimes there is an indirect jump through a jump table that is stored in the rodata (read-only data) section. How to get objdump or any other tool to show me the contents of this data section? I could execute the program and examine the relevant addresses in the debugger, but I don't want to do that because it has to be done interactively. The ideal answer will identify a tool that will not only show me the contents but

Assembly code vs Machine code vs Object code?

五迷三道 提交于 2019-11-26 09:04:45
问题 What is the difference between object code, machine code and assembly code? Can you give a visual example of their difference? 回答1: Machine code is binary (1's and 0's) code that can be executed directly by the CPU. If you were to open a machine code file in a text editor you would see garbage, including unprintable characters (no, not those unprintable characters ;) ). Object code is a portion of machine code that hasn't yet been linked into a complete program. It's the machine code for one