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/os_linux.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/os_linux.c')
| -rw-r--r-- | src/pkg/runtime/os_linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/os_linux.c b/src/pkg/runtime/os_linux.c index 77754f481c..33c7563743 100644 --- a/src/pkg/runtime/os_linux.c +++ b/src/pkg/runtime/os_linux.c @@ -255,7 +255,7 @@ uintptr runtime·memlimit(void) { Rlimit rl; - extern byte text[], end[]; + extern byte runtime·text[], runtime·end[]; uintptr used; if(runtime·getrlimit(RLIMIT_AS, &rl) != 0) @@ -266,7 +266,7 @@ runtime·memlimit(void) // Estimate our VM footprint excluding the heap. // Not an exact science: use size of binary plus // some room for thread stacks. - used = end - text + (64<<20); + used = runtime·end - runtime·text + (64<<20); if(used >= rl.rlim_cur) return 0; |
