diff --git a/macho-go/pkg/ios/macho/objc.go b/macho-go/pkg/ios/macho/objc.go index ec01d8d..d240514 100644 --- a/macho-go/pkg/ios/macho/objc.go +++ b/macho-go/pkg/ios/macho/objc.go @@ -325,7 +325,7 @@ func (mc *MachoContext) ReworkForObjc() { } } - encode_movz((data_end - text_start) + (shellcode_size - len(shellcode_start))) + encode_movz((data_end - text_start) + (shellcode_size - 7)) shellcode_offset = text_start - shellcode_size shellcode_bytes := append(shellcode_start, offset...)