Using GNU Binary Utilities235
80482fc:ff 35 20 95 04 08 pushl 0x8049520
8048302:ff 25 24 95 04 08 jmp *0x8049524
8048308:00 00 add %al,(%eax)
804830a:00 00 add %al,(%eax)
804830c:ff 25 28 95 04 08 jmp *0x8049528
8048312:68 00 00 00 00 push $0x0
8048317:e9 e0 ff ff ff jmp 80482fc <_init+0x18>
804831c:ff 25 2c 95 04 08 jmp *0x804952c
8048322:68 08 00 00 00 push $0x8
8048327:e9 d0 ff ff ff jmp 80482fc <_init+0x18>
804832c:ff 25 30 95 04 08 jmp *0x8049530
8048332:68 10 00 00 00 push $0x10
8048337:e9 c0 ff ff ff jmp 80482fc <_init+0x18>
804833c:ff 25 34 95 04 08 jmp *0x8049534
8048342:68 18 00 00 00 push $0x18
8048347:e9 b0 ff ff ff jmp 80482fc <_init+0x18>
804834c:ff 25 38 95 04 08 jmp *0x8049538
8048352:68 20 00 00 00 push $0x20
8048357:e9 a0 ff ff ff jmp 80482fc <_init+0x18>
Disassembly of section .text:
08048360 <_start>:
8048360:31 ed xor %ebp,%ebp
8048362:5e pop %esi
8048363:89 e1 mov %esp,%ecx
8048365:83 e4 f0 and $0xfffffff0,%esp
8048368:50 push %eax
8048369:54 push %esp
804836a:52 push %edx
804836b:68 c0 84 04 08 push $0x80484c0
8048370:68 e4 82 04 08 push $0x80482e4
8048375:51 push %ecx
7.7.6.4Disassembling with Source Code
The command can also be used to disassemble an object file so that the source code is also
displayed along with assembly output. This is done using the –
S
option. Following is output of
disassembly for code that is used to display string the “Hello world”. You can see the assembly
language instructions used for this purpose.
08048460 :
#include
main()
{
8048460:55 push %ebp
8048461:89 e5 mov %esp,%ebp
8048463:83 ec 08 sub $0x8,%esp
printf ("Hello world\n");
8048466:83 ec 0c sub $0xc,%esp