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_freebsd.c | |
| parent | 9e360926972b35d2fd4c8f99f22669417876526b (diff) | |
| download | go-git-2c110a11e046920d98fb8b2cb41bfb99a524450b.tar.gz | |
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_freebsd.c')
| -rw-r--r-- | src/pkg/runtime/os_freebsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/os_freebsd.c b/src/pkg/runtime/os_freebsd.c index 794578c208..20f71c41e8 100644 --- a/src/pkg/runtime/os_freebsd.c +++ b/src/pkg/runtime/os_freebsd.c @@ -215,7 +215,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) @@ -226,7 +226,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; |
