In NASM syntax, we can write jmp $+1
, my question is how to write jmp $+1
using GAS syntax ?
Asked
Active
Viewed 31 times
0

nornor
- 13
- 2
-
1Have you tried `jmp .+1`? – Martin Rosenau Oct 23 '21 at 06:55
-
Note that you're asking how to write a jump to the 2nd byte of the jmp instruction. i.e. to use the first byte of the displacement as the start of a new instruction. That's not the same thing as encoding a jump with `rel8 = +1` to skip over the next byte after the instruction. – Peter Cordes Oct 23 '21 at 15:43