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/malloc.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/malloc.c')
-rw-r--r-- | src/pkg/runtime/malloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/malloc.c b/src/pkg/runtime/malloc.c index ca8ebf5dd6..913d8ac26b 100644 --- a/src/pkg/runtime/malloc.c +++ b/src/pkg/runtime/malloc.c @@ -125,7 +125,7 @@ runtime·mallocinit(void) { byte *p, *p1; uintptr arena_size, bitmap_size, spans_size, p_size; - extern byte end[]; + extern byte runtime·end[]; uintptr limit; uint64 i; bool reserved; @@ -232,7 +232,7 @@ runtime·mallocinit(void) // So adjust it upward a little bit ourselves: 1/4 MB to get // away from the running binary image and then round up // to a MB boundary. - p = (byte*)ROUND((uintptr)end + (1<<18), 1<<20); + p = (byte*)ROUND((uintptr)runtime·end + (1<<18), 1<<20); p_size = bitmap_size + spans_size + arena_size + PageSize; p = runtime·SysReserve(p, p_size, &reserved); if(p == nil) |