aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/rt2_amd64.c
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2008-09-12 12:17:13 -0700
committerRob Pike <r@golang.org>2008-09-12 12:17:13 -0700
commite9047d1fc29abe809cec69ca4aa73a8942934635 (patch)
treeb4823262e313faa5d791ca57bc452dfbfbe57847 /src/runtime/rt2_amd64.c
parente1a9b6ee77cf7bb2209cd3868ac8661bd75a9a29 (diff)
downloadgo-e9047d1fc29abe809cec69ca4aa73a8942934635.tar.xz
fix silly portability bug
R=gri OCL=15238 CL=15238
Diffstat (limited to 'src/runtime/rt2_amd64.c')
-rw-r--r--src/runtime/rt2_amd64.c3
1 files changed, 1 insertions, 2 deletions
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;