From 2c110a11e046920d98fb8b2cb41bfb99a524450b Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Wed, 27 Aug 2014 20:15:05 -0400 Subject: cmd/{ld,link,objdump}, runtime, debug/gosym: move linker-defined symbols into runtime package Fixes #8092. LGTM=rsc R=iant, rsc CC=golang-codereviews https://golang.org/cl/126790043 --- src/pkg/runtime/proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pkg/runtime/proc.c') diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c index 756f86bd99..a692dfd2cf 100644 --- a/src/pkg/runtime/proc.c +++ b/src/pkg/runtime/proc.c @@ -2407,7 +2407,7 @@ static struct { static void System(void) {} static void ExternalCode(void) {} static void GC(void) {} -extern byte etext[]; +extern byte runtime·etext[]; // Called if we receive a SIGPROF signal. void @@ -2532,7 +2532,7 @@ runtime·sigprof(uint8 *pc, uint8 *sp, uint8 *lr, G *gp, M *mp) // If all of the above has failed, account it against abstract "System" or "GC". n = 2; // "ExternalCode" is better than "etext". - if((uintptr)pc > (uintptr)etext) + if((uintptr)pc > (uintptr)runtime·etext) pc = (byte*)ExternalCode + PCQuantum; stk[0] = (uintptr)pc; if(mp->gcing || mp->helpgc) -- cgit v1.3