assembly jmp to hard-coded address with gcc
assembly jmp to hard-coded address with gcc
- Subject: assembly jmp to hard-coded address with gcc
- From: Aron-Zvi <email@hidden>
- Date: Wed, 12 Aug 2009 02:30:49 +0300
Hey guys,
I'm trying to compile the following program with gcc using -fasm-blocks on OS X:
asm void trampoline(void)
{
push 0x66666666
push 0x66666666
jmp 0x66666666
}
gcc fails with "suffix or operands invalid for `jmp'".
The code will be copied into memory and the addresses will be fixed later on. How can I get the above to compile?
Thanks in advance,
Aron-Zvi
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden