本文发表在 rolia.net 枫下论坛est1: file format elf32-i386
Disassembly of section .init:
080482f4 <_init>:
80482f4: 55 push %ebp
80482f5: 89 e5 mov %esp,%ebp
80482f7: 53 push %ebx
80482f8: 83 ec 04 sub $0x4,%esp
80482fb: e8 00 00 00 00 call 8048300 <_init+0xc>
8048300: 5b pop %ebx
8048301: 81 c3 f4 1c 00 00 add $0x1cf4,%ebx
8048307: 8b 93 fc ff ff ff mov -0x4(%ebx),%edx
804830d: 85 d2 test %edx,%edx
804830f: 74 05 je 8048316 <_init+0x22>
8048311: e8 1e 00 00 00 call 8048334 <__gmon_start__@plt>
8048316: e8 e5 00 00 00 call 8048400 <frame_dummy>
804831b: e8 00 02 00 00 call 8048520 <__do_global_ctors_aux>
8048320: 58 pop %eax
8048321: 5b pop %ebx
8048322: c9 leave
8048323: c3 ret
Disassembly of section .plt:
08048324 <__gmon_start__@plt-0x10>:
8048324: ff 35 f8 9f 04 08 pushl 0x8049ff8
804832a: ff 25 fc 9f 04 08 jmp *0x8049ffc
8048330: 00 00 add %al,(%eax)
...
08048334 <__gmon_start__@plt>:
8048334: ff 25 00 a0 04 08 jmp *0x804a000
804833a: 68 00 00 00 00 push $0x0
804833f: e9 e0 ff ff ff jmp 8048324 <_init+0x30>
08048344 <__libc_start_main@plt>:
8048344: ff 25 04 a0 04 08 jmp *0x804a004
804834a: 68 08 00 00 00 push $0x8
804834f: e9 d0 ff ff ff jmp 8048324 <_init+0x30>
08048354 <printf@plt>:
8048354: ff 25 08 a0 04 08 jmp *0x804a008
804835a: 68 10 00 00 00 push $0x10
804835f: e9 c0 ff ff ff jmp 8048324 <_init+0x30>
Disassembly of section .text:
08048370 <_start>:
8048370: 31 ed xor %ebp,%ebp
8048372: 5e pop %esi
8048373: 89 e1 mov %esp,%ecx
8048375: 83 e4 f0 and $0xfffffff0,%esp
8048378: 50 push %eax
8048379: 54 push %esp
804837a: 52 push %edx
804837b: 68 b0 84 04 08 push $0x80484b0
8048380: 68 c0 84 04 08 push $0x80484c0
8048385: 51 push %ecx
8048386: 56 push %esi
8048387: 68 24 84 04 08 push $0x8048424
804838c: e8 b3 ff ff ff call 8048344 <__libc_start_main@plt>
8048391: f4 hlt
8048392: 90 nop
8048393: 90 nop
8048394: 90 nop
8048395: 90 nop
8048396: 90 nop
8048397: 90 nop
8048398: 90 nop
8048399: 90 nop
804839a: 90 nop
804839b: 90 nop
804839c: 90 nop
804839d: 90 nop
804839e: 90 nop
804839f: 90 nop
080483a0 <__do_global_dtors_aux>:
80483a0: 55 push %ebp
80483a1: 89 e5 mov %esp,%ebp
80483a3: 53 push %ebx
80483a4: 83 ec 04 sub $0x4,%esp
80483a7: 80 3d 14 a0 04 08 00 cmpb $0x0,0x804a014
80483ae: 75 40 jne 80483f0 <__do_global_dtors_aux+0x50>
80483b0: 8b 15 18 a0 04 08 mov 0x804a018,%edx
80483b6: b8 18 9f 04 08 mov $0x8049f18,%eax
80483bb: 2d 14 9f 04 08 sub $0x8049f14,%eax
80483c0: c1 f8 02 sar $0x2,%eax
80483c3: 8d 58 ff lea -0x1(%eax),%ebx
80483c6: 39 da cmp %ebx,%edx
80483c8: 73 1f jae 80483e9 <__do_global_dtors_aux+0x49>
80483ca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80483d0: 8d 42 01 lea 0x1(%edx),%eax
80483d3: a3 18 a0 04 08 mov %eax,0x804a018
80483d8: ff 14 85 14 9f 04 08 call *0x8049f14(,%eax,4)
80483df: 8b 15 18 a0 04 08 mov 0x804a018,%edx
80483e5: 39 da cmp %ebx,%edx
80483e7: 72 e7 jb 80483d0 <__do_global_dtors_aux+0x30>
80483e9: c6 05 14 a0 04 08 01 movb $0x1,0x804a014
80483f0: 83 c4 04 add $0x4,%esp
80483f3: 5b pop %ebx
80483f4: 5d pop %ebp
80483f5: c3 ret
80483f6: 8d 76 00 lea 0x0(%esi),%esi
80483f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
08048400 <frame_dummy>:
8048400: 55 push %ebp
8048401: 89 e5 mov %esp,%ebp
8048403: 83 ec 08 sub $0x8,%esp
8048406: a1 1c 9f 04 08 mov 0x8049f1c,%eax
804840b: 85 c0 test %eax,%eax
804840d: 74 12 je 8048421 <frame_dummy+0x21>
804840f: b8 00 00 00 00 mov $0x0,%eax
8048414: 85 c0 test %eax,%eax
8048416: 74 09 je 8048421 <frame_dummy+0x21>
8048418: c7 04 24 1c 9f 04 08 movl $0x8049f1c,(%esp)
804841f: ff d0 call *%eax
8048421: c9 leave
8048422: c3 ret
8048423: 90 nop
08048424 <main>:
8048424: 8d 4c 24 04 lea 0x4(%esp),%ecx
8048428: 83 e4 f0 and $0xfffffff0,%esp
804842b: ff 71 fc pushl -0x4(%ecx)
804842e: 55 push %ebp
804842f: 89 e5 mov %esp,%ebp
8048431: 51 push %ecx
8048432: 83 ec 24 sub $0x24,%esp
8048435: c7 45 f8 14 00 00 00 movl $0x14,-0x8(%ebp)
804843c: c7 45 f4 23 00 00 00 movl $0x23,-0xc(%ebp)
8048443: 8b 55 f4 mov -0xc(%ebp),%edx
8048446: 8b 4d f8 mov -0x8(%ebp),%ecx
8048449: 8d 04 0a lea (%edx,%ecx,1),%eax
804844c: 89 45 f8 mov %eax,-0x8(%ebp)
804844f: 8d 42 01 lea 0x1(%edx),%eax
8048452: 89 45 f4 mov %eax,-0xc(%ebp)
8048455: 8d 41 01 lea 0x1(%ecx),%eax
8048458: 89 45 f8 mov %eax,-0x8(%ebp)
804845b: 8b 45 f4 mov -0xc(%ebp),%eax
804845e: 83 c0 01 add $0x1,%eax
8048461: 89 45 f4 mov %eax,-0xc(%ebp)
8048464: 8b 55 f4 mov -0xc(%ebp),%edx
8048467: 8b 45 f8 mov -0x8(%ebp),%eax
804846a: 83 c0 01 add $0x1,%eax
804846d: 89 45 f8 mov %eax,-0x8(%ebp)
8048470: 8b 45 f8 mov -0x8(%ebp),%eax
8048473: 8d 04 02 lea (%edx,%eax,1),%eax
8048476: 89 45 f4 mov %eax,-0xc(%ebp)
8048479: 8b 45 f4 mov -0xc(%ebp),%eax
804847c: 8b 55 f8 mov -0x8(%ebp),%edx
804847f: 89 44 24 08 mov %eax,0x8(%esp)
8048483: 89 54 24 04 mov %edx,0x4(%esp)
8048487: c7 04 24 70 85 04 08 movl $0x8048570,(%esp)
804848e: e8 c1 fe ff ff call 8048354 <printf@plt>
8048493: b8 00 00 00 00 mov $0x0,%eax
8048498: 83 c4 24 add $0x24,%esp
804849b: 59 pop %ecx
804849c: 5d pop %ebp
804849d: 8d 61 fc lea -0x4(%ecx),%esp
80484a0: c3 ret
80484a1: 90 nop
80484a2: 90 nop
80484a3: 90 nop
80484a4: 90 nop
80484a5: 90 nop
80484a6: 90 nop
80484a7: 90 nop
80484a8: 90 nop
80484a9: 90 nop
80484aa: 90 nop
80484ab: 90 nop
80484ac: 90 nop
80484ad: 90 nop
80484ae: 90 nop
80484af: 90 nop
080484b0 <__libc_csu_fini>:
80484b0: 55 push %ebp
80484b1: 89 e5 mov %esp,%ebp
80484b3: 5d pop %ebp
80484b4: c3 ret
80484b5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80484b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
080484c0 <__libc_csu_init>:
80484c0: 55 push %ebp
80484c1: 89 e5 mov %esp,%ebp
80484c3: 57 push %edi
80484c4: 56 push %esi
80484c5: 53 push %ebx
80484c6: e8 4f 00 00 00 call 804851a <__i686.get_pc_thunk.bx>
80484cb: 81 c3 29 1b 00 00 add $0x1b29,%ebx
80484d1: 83 ec 0c sub $0xc,%esp
80484d4: e8 1b fe ff ff call 80482f4 <_init>
80484d9: 8d bb 18 ff ff ff lea -0xe8(%ebx),%edi
80484df: 8d 83 18 ff ff ff lea -0xe8(%ebx),%eax
80484e5: 29 c7 sub %eax,%edi
80484e7: c1 ff 02 sar $0x2,%edi
80484ea: 85 ff test %edi,%edi
80484ec: 74 24 je 8048512 <__libc_csu_init+0x52>
80484ee: 31 f6 xor %esi,%esi
80484f0: 8b 45 10 mov 0x10(%ebp),%eax
80484f3: 89 44 24 08 mov %eax,0x8(%esp)
80484f7: 8b 45 0c mov 0xc(%ebp),%eax
80484fa: 89 44 24 04 mov %eax,0x4(%esp)
80484fe: 8b 45 08 mov 0x8(%ebp),%eax
8048501: 89 04 24 mov %eax,(%esp)
8048504: ff 94 b3 18 ff ff ff call *-0xe8(%ebx,%esi,4)
804850b: 83 c6 01 add $0x1,%esi
804850e: 39 fe cmp %edi,%esi
8048510: 72 de jb 80484f0 <__libc_csu_init+0x30>
8048512: 83 c4 0c add $0xc,%esp
8048515: 5b pop %ebx
8048516: 5e pop %esi
8048517: 5f pop %edi
8048518: 5d pop %ebp
8048519: c3 ret
0804851a <__i686.get_pc_thunk.bx>:
804851a: 8b 1c 24 mov (%esp),%ebx
804851d: c3 ret
804851e: 90 nop
804851f: 90 nop
08048520 <__do_global_ctors_aux>:
8048520: 55 push %ebp
8048521: 89 e5 mov %esp,%ebp
8048523: 53 push %ebx
8048524: 83 ec 04 sub $0x4,%esp
8048527: a1 0c 9f 04 08 mov 0x8049f0c,%eax
804852c: 83 f8 ff cmp $0xffffffff,%eax
804852f: 74 13 je 8048544 <__do_global_ctors_aux+0x24>
8048531: bb 0c 9f 04 08 mov $0x8049f0c,%ebx
8048536: 66 90 xchg %ax,%ax
8048538: 83 eb 04 sub $0x4,%ebx
804853b: ff d0 call *%eax
804853d: 8b 03 mov (%ebx),%eax
804853f: 83 f8 ff cmp $0xffffffff,%eax
8048542: 75 f4 jne 8048538 <__do_global_ctors_aux+0x18>
8048544: 83 c4 04 add $0x4,%esp
8048547: 5b pop %ebx
8048548: 5d pop %ebp
8048549: c3 ret
804854a: 90 nop
804854b: 90 nop
Disassembly of section .fini:
0804854c <_fini>:
804854c: 55 push %ebp
804854d: 89 e5 mov %esp,%ebp
804854f: 53 push %ebx
8048550: 83 ec 04 sub $0x4,%esp
8048553: e8 00 00 00 00 call 8048558 <_fini+0xc>
8048558: 5b pop %ebx
8048559: 81 c3 9c 1a 00 00 add $0x1a9c,%ebx
804855f: e8 3c fe ff ff call 80483a0 <__do_global_dtors_aux>
8048564: 59 pop %ecx
8048565: 5b pop %ebx
8048566: c9 leave
8048567: c3 ret更多精彩文章及讨论,请光临枫下论坛 rolia.net