diff options
| author | Matthew Dempsky <mdempsky@google.com> | 2014-08-27 20:15:05 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-08-27 20:15:05 -0400 |
| commit | 2c110a11e046920d98fb8b2cb41bfb99a524450b (patch) | |
| tree | d6301647f0bada159de5fc95a234b7c2d4309a40 /src/pkg/runtime/proc.c | |
| parent | 9e360926972b35d2fd4c8f99f22669417876526b (diff) | |
| download | go-2c110a11e046920d98fb8b2cb41bfb99a524450b.tar.xz | |
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
Diffstat (limited to 'src/pkg/runtime/proc.c')
| -rw-r--r-- | src/pkg/runtime/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
