Skip to content

Instantly share code, notes, and snippets.

@jlevon
Created March 14, 2020 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlevon/a25a895918f5816db6d222400600915c to your computer and use it in GitHub Desktop.
Save jlevon/a25a895918f5816db6d222400600915c to your computer and use it in GitHub Desktop.
ljmp variants
jlevon@kent:~$ cat a.s
.code64:
ljmp %cs:*0x11223344
rex64 ljmpl %cs:*0x11223344
jlevon@kent:~$ as a.s
jlevon@kent:~$ objdump --disassemble a.out
a.out: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <.code64>:
0: 2e ff 2c 25 44 33 22 ljmp *%cs:0x11223344
7: 11
8: 2e 48 ff 2c 25 44 33 rex.W ljmp *%cs:0x11223344
f: 22 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment