diff --git a/modify_binary_darwin.go b/modify_binary_darwin.go index 6c16988..4117bc6 100644 --- a/modify_binary_darwin.go +++ b/modify_binary_darwin.go @@ -4,7 +4,7 @@ import "syscall" func modifyBinary(target uintptr, bytes []byte) { function := entryAddress(target, len(bytes)) - err := mprotectCrossPage(target, len(bytes), syscall.PROT_READ|syscall.PROT_WRITE|syscall.PROT_EXEC) + err := mprotectCrossPage(target, len(bytes), syscall.PROT_READ|syscall.PROT_WRITE) if err != nil { panic(err) }