Objdump
From Linuxintro
Revision as of 20:55, 28 December 2009 by imported>ThorstenStaerk (New page: Nokia-N810-43-7:~# cat main.cpp #include <iostream> int main() { std::cout << "hello world" << std::endl; } Nokia-N810-43-7:~# g\+\+-3.4 main.cpp Now we look at a fixed-length-c...)
Nokia-N810-43-7:~# cat main.cpp #include <iostream> int main() { std::cout << "hello world" << std::endl; } Nokia-N810-43-7:~# g\+\+-3.4 main.cpp
Now we look at a fixed-length-command-set-architecture at the machine code.
Nokia-N810-43-7:~# objdump -d a.out | head a.out: file format elf32-littlearm Disassembly of section .init: 000084f8 <_init>: 84f8: e52de004 str lr, [sp, #-4]! 84fc: e24dd004 sub sp, sp, #4 ; 0x4 8500: eb000035 bl 85dc <call_gmon_start> 8504: e28dd004 add sp, sp, #4 ; 0x4