Package rekall :: Module compatibility
[frames] | no frames]

Source Code for Module rekall.compatibility

 1  # Fix bugs in dependent libraries. 
 2   
 3  # Fix bug in pyelftools. 
 4  from elftools.elf import elffile 
 5   
 6  # pyelftools does not officially support ARM but this seems to work anyway. 
 7   
 8   
9 -class ELFFile(elffile.ELFFile):
10 - def get_machine_arch(self):
11 result = super(ELFFile, self).get_machine_arch() 12 if result == "ARM": 13 result = "MIPS" 14 15 return result
16 17 elffile.ELFFile = ELFFile 18