how to jump in GCC inline asm without passing the value to a register?
this code
__asm__("jmp %0"::"r"(&_start))
generates:
mov eax,0x1011
jmp eax
but instead i want
jmp 0x1011
or just jmp +0x11,
- tried using
"m"instead of"r"and produces:memory input 0 is not directly addressable.
how can i just obtain a jump instruction without the overhead of using a register? Is this even possible with GCC inline asm?