Skip to content

Commit

Permalink
hardcoding endianness for x86,64 and arm,64
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy committed Jan 8, 2022
1 parent 6514ad3 commit bca69da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -2305,6 +2305,7 @@ class ARM(Architecture):
function_parameters = ["$r0", "$r1", "$r2", "$r3"]
syscall_register = "$r7"
syscall_instructions = ["swi 0x0", "swi NR"]
endianness = Endianness.LITTLE_ENDIAN

def is_thumb(self):
"""Determine if the machine is currently in THUMB mode."""
Expand Down Expand Up @@ -2554,6 +2555,7 @@ class X86(Architecture):
syscall_register = "$eax"
syscall_instructions = ["sysenter", "int 0x80"]
ptrsize = 4
endianness = Endianness.LITTLE_ENDIAN

def flag_register_to_human(self, val=None):
reg = self.flag_register
Expand Down

0 comments on commit bca69da

Please sign in to comment.