Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Disassembly of section .text:
- 08048074 <fdizg>:
- void __attribute__((__cdecl__)) dynamic_call(void* func, void* stack, int stacksize);
- int fdizg() {
- 8048074: 83 ec 10 sub $0x10,%esp
- volatile int i=3;
- 8048077: c7 44 24 0c 03 00 00 movl $0x3,0xc(%esp)
- 804807e: 00
- return i;
- 804807f: 8b 44 24 0c mov 0xc(%esp),%eax
- }
- 8048083: 83 c4 10 add $0x10,%esp
- 8048086: c3 ret
- 08048087 <_start>:
- int _start() {
- 8048087: 53 push %ebx
- 8048088: 83 ec 1c sub $0x1c,%esp
- void __attribute__((__cdecl__)) dynamic_call(void* func, void* stack, int stacksize);
- int fdizg() {
- volatile int i=3;
- 804808b: c7 44 24 10 03 00 00 movl $0x3,0x10(%esp)
- 8048092: 00
- return i;
- 8048093: 8b 5c 24 10 mov 0x10(%esp),%ebx
- }
- int _start() {
- int i=fdizg();
- dynamic_call(0,1,2);
- 8048097: 6a 02 push $0x2
- 8048099: 6a 01 push $0x1
- 804809b: 6a 00 push $0x0
- 804809d: e8 07 00 00 00 call 80480a9 <dynamic_call>
- return i;
- }
- 80480a2: 89 d8 mov %ebx,%eax
- 80480a4: 83 c4 28 add $0x28,%esp
- 80480a7: 5b pop %ebx
- 80480a8: c3 ret
- 080480a9 <dynamic_call>:
- .global dynamic_call
- dynamic_call:
- ret
- 80480a9: c3 ret
Advertisement
Add Comment
Please, Sign In to add comment