mirror of
https://github.com/LukeFZ/Il2CppInspectorRedux.git
synced 2025-12-12 06:19:58 +05:00
Ghidra: Only reset image base to zero for ELF binaries
This commit is contained in:
@@ -47,7 +47,9 @@ def SetHeaderComment(addr, text):
|
|||||||
setPlateComment(toAddr(addr), text)
|
setPlateComment(toAddr(addr), text)
|
||||||
|
|
||||||
def CustomInitializer():
|
def CustomInitializer():
|
||||||
# Do we need this for PE/MachO?
|
# Ghidra sets the image base for ELF to 0x100000 for some reason
|
||||||
|
# https://github.com/NationalSecurityAgency/ghidra/issues/1020
|
||||||
|
if currentProgram.getExecutableFormat().endswith('(ELF)'):
|
||||||
currentProgram.setImageBase(toAddr(0), True)
|
currentProgram.setImageBase(toAddr(0), True)
|
||||||
|
|
||||||
def GetScriptDirectory():
|
def GetScriptDirectory():
|
||||||
|
|||||||
Reference in New Issue
Block a user