summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/proc.c
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2014-08-27 20:15:05 -0400
committerMatthew Dempsky <mdempsky@google.com>2014-08-27 20:15:05 -0400
commit5be0c6ab4d892d245c7b710d2e37adc462744ba4 (patch)
treea1c218b0996d3ced338fdb2d19668ae132b41f4c /src/pkg/runtime/proc.c
parent9f83f9dedbd9665766ca4641d6ea77a471c750a7 (diff)
downloadgo-5be0c6ab4d892d245c7b710d2e37adc462744ba4.tar.gz
cmd/{ld,link,objdump}, runtime, debug/gosym: move linker-defined symbols into runtime package
Fixes issue 8092. LGTM=rsc R=iant, rsc CC=golang-codereviews https://codereview.appspot.com/126790043 Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/pkg/runtime/proc.c')
-rw-r--r--src/pkg/runtime/proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c
index 756f86bd9..a692dfd2c 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)