fix: check cputype
This commit is contained in:
parent
1b3eb467a7
commit
c805fc56b3
@ -472,7 +472,7 @@ func (mc *MachoContext) ReworkForObjc() {
|
||||
main_offset := int(mc.entryoff)
|
||||
var shellcode_offset int
|
||||
|
||||
if mc.header.cputype == 12{
|
||||
if (mc.header.cputype & 0xff) == 12{
|
||||
shellcode = []uint32{
|
||||
0x10000008,
|
||||
0, // x9 = (offset end of __DATA) - (offset shellcode)
|
||||
|
Loading…
Reference in New Issue
Block a user