Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foo:
- Relocation information (__TEXT,__text) 5 entries
- address pcrel length extern type scattered symbolnum/value
- 000000ad True long True VANILLA False _printf
- 00000090 False long n/a LOCSDIF True 0x000000c2
- False long n/a PAIR True 0x0000006d
- 00000084 True long False VANILLA False 1 (__TEXT,__text)
- 00000055 True long False VANILLA False 1 (__TEXT,__text)
- (__TEXT,__text) section
- _foo:
- 00000000 pushl %ebp
- 00000001 movl %esp,%ebp
- 00000003 subl $0x10,%esp
- 00000006 movl 0x0c(%ebp),%eax
- 00000009 movl 0x08(%ebp),%ecx
- 0000000c movl %eax,0xfc(%ebp)
- 0000000f movl $0x00000001,0xf0(%ebp)
- 00000016 movl $0x00000002,0xf4(%ebp)
- 0000001d movl $0x00000003,0xf8(%ebp)
- 00000024 movsd 0xf0(%ebp),%xmm0
- 00000029 movsd %xmm0,(%ecx)
- 0000002d movl $0x00000003,0x08(%ecx)
- 00000034 addl $0x10,%esp
- 00000037 popl %ebp
- 00000038 retl $0x0004
- 0000003b nopl _foo(%eax,%eax)
- _bar:
- 00000040 pushl %ebp
- 00000041 movl %esp,%ebp
- 00000043 subl $0x08,%esp
- 00000046 movl 0x08(%ebp),%eax
- 00000049 movl %esp,%ecx
- 0000004b movl %eax,(%ecx)
- 0000004d movl $_foo,0x04(%ecx)
- 00000054 calll _foo
- 00000059 addl $0x04,%esp
- 0000005c popl %ebp
- 0000005d retl $0x0004
- _main:
- 00000060 pushl %ebp
- 00000061 movl %esp,%ebp
- 00000063 pushl %edi
- 00000064 pushl %esi
- 00000065 subl $0x30,%esp
- 00000068 calll 0x0000006d
- 0000006d popl %eax
- 0000006e movl 0x0c(%ebp),%ecx
- 00000071 movl 0x08(%ebp),%edx
- 00000074 leal 0xe0(%ebp),%esi
- 00000077 movl %edx,0xf4(%ebp)
- 0000007a movl %ecx,0xf0(%ebp)
- 0000007d movl %esi,(%esp)
- 00000080 movl %eax,0xdc(%ebp)
- 00000083 calll _bar
- 00000088 subl $0x04,%esp
- 0000008b movl 0xdc(%ebp),%eax
- 0000008e leal 0xc2-0x6d(%eax),%ecx
- 00000094 movl 0xe0(%ebp),%edx
- 00000097 movl 0xe4(%ebp),%esi
- 0000009a movl 0xe8(%ebp),%edi
- 0000009d movl %ecx,(%esp)
- 000000a0 movl %edx,0x04(%esp)
- 000000a4 movl %esi,0x08(%esp)
- 000000a8 movl %edi,0x0c(%esp)
- 000000ac calll _printf
- 000000b1 movl $_foo,%ecx
- 000000b6 movl %eax,0xd8(%ebp)
- 000000b9 movl %ecx,%eax
- 000000bb addl $0x30,%esp
- 000000be popl %esi
- 000000bf popl %edi
- 000000c0 popl %ebp
- 000000c1 ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement