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