-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move arch info into seperate component, rename x86 archs
- Loading branch information
Showing
39 changed files
with
175 additions
and
106 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Aarch64Info: | ||
nop_bytes = b"\x1f\x20\x03\xd5" | ||
nop_size = 4 | ||
jmp_asm = "b {dst}" | ||
jmp_size = 4 | ||
call_asm = "bl {dst}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Amd64Info: | ||
nop_bytes = b"\x90" | ||
nop_size = 1 | ||
jmp_asm = "jmp {dst}" | ||
jmp_size = 6 | ||
call_asm = "call {dst}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class ArmInfo: | ||
nop_bytes = b"\x00\xF0\x20\xE3" # TODO: thumb | ||
nop_size = 4 | ||
jmp_asm = "b {dst}" | ||
jmp_size = 4 | ||
call_asm = "bl {dst}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class MipsInfo: | ||
nop_bytes = b"\x00\x00\x00\x00" | ||
nop_size = 4 | ||
jmp_asm = "j {dst}" | ||
# NOTE: keystone will always add nop for branch delay slot, so include it in size | ||
jmp_size = 8 | ||
call_asm = "jal {dst}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Mips64Info: | ||
nop_bytes = b"\x00\x00\x00\x00" | ||
nop_size = 4 | ||
jmp_asm = "j {dst}" | ||
# NOTE: keystone will always add nop for branch delay slot, so include it in size | ||
jmp_size = 8 | ||
call_asm = "jal {dst}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class PpcInfo: | ||
nop_bytes = b"\x60\x00\x00\x00" | ||
nop_size = 4 | ||
jmp_asm = "b {dst}" | ||
jmp_size = 4 | ||
call_asm = "bl {dst}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Ppc64Info: | ||
nop_bytes = b"\x60\x00\x00\x00" | ||
nop_size = 4 | ||
jmp_asm = "b {dst}" | ||
jmp_size = 4 | ||
call_asm = "bl {dst}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class PpcVleInfo: | ||
nop_bytes = b"\x01\x00\x00\x00" | ||
nop_size = 4 | ||
jmp_asm = "b {dst}" | ||
jmp_size = 4 | ||
call_asm = "bl {dst}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class SparcInfo: | ||
nop_bytes = b"\x01\x00\x00\x00" | ||
nop_size = 4 | ||
jmp_asm = "b {dst}\nnop" # nop due to delay slot | ||
jmp_size = 8 | ||
call_asm = "call {dst}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class X86Info: | ||
nop_bytes = b"\x90" | ||
nop_size = 1 | ||
jmp_asm = "jmp {dst}" | ||
jmp_size = 5 | ||
call_asm = "call {dst}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...herex2/targets/elf_x86_64_linux_recomp.py → ...cherex2/targets/elf_amd64_linux_recomp.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.