From 08b6b61214062da92aafcc179e222122c5ef4f74 Mon Sep 17 00:00:00 2001 From: John van Groningen Date: Fri, 11 Jul 2003 11:59:28 +0000 Subject: added stack overflow detection using virtual memory and exceptions --- macho/ptrace.a | 2 ++ 1 file changed, 2 insertions(+) (limited to 'macho/ptrace.a') diff --git a/macho/ptrace.a b/macho/ptrace.a index 05de0e3..4cb6588 100644 --- a/macho/ptrace.a +++ b/macho/ptrace.a @@ -484,6 +484,8 @@ init_profiler: .if 1 lea_ r3,_stack_size lwz r3,0(r3) + addi r3,r3,4095 + rlwinm r3,r3,0,0,31-12 .else li r3, (512*1024) % 65536 addis r3,r3,(512*1024) / 65536 -- cgit v1.2.3