From e9047d1fc29abe809cec69ca4aa73a8942934635 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Fri, 12 Sep 2008 12:17:13 -0700 Subject: fix silly portability bug R=gri OCL=15238 CL=15238 --- src/runtime/rt2_amd64.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/runtime/rt2_amd64.c') diff --git a/src/runtime/rt2_amd64.c b/src/runtime/rt2_amd64.c index 2943ac0d36..b7c3b11109 100644 --- a/src/runtime/rt2_amd64.c +++ b/src/runtime/rt2_amd64.c @@ -94,11 +94,10 @@ int32 inlinetrap(int32 sig, byte* pc) { extern void etext(); - extern void _rt0_amd64_darwin(); if(sig != 5) /* SIGTRAP */ return 0; - if(pc-2 < (byte*)_rt0_amd64_darwin || pc >= (byte*)etext) + if(pc-2 < startsym || pc >= (byte*)etext) return 0; if(pc[-2] != 0xcd) /* INTB */ return 0; -- cgit v1.3-5-g9baa