On my system (gcc version 4.2.4, Ubuntu) this looks great on hassle-free (insight):
int main ()
{
asm ("jmp 0xbffff994");
return 0;
};
exposure results (insights):
0x8048344: lea 0x4 (% esp),% ecx
- 0x8048348: and $ 0xfffffff0,% esp
- 0x804834b: pushl -0x4 (% ecx)
- 0x804834e: push% ebp
- 0x804834f: mov% esp,% ebp
- 0x8048351: push% ecx
- 0x8048352: jmp 0xbffff994
- 0x8048357: mov $ 0x0,% eax
- 0x804835c: pop% ecx
- 0x804835d: pop% ebp
- 0x804835e: lea -0x4 (% ecx),% esp
- 0x8048361: ret
Liran orevi
source share