From 2c110a11e046920d98fb8b2cb41bfb99a524450b Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Wed, 27 Aug 2014 20:15:05 -0400 Subject: 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 --- src/pkg/runtime/malloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pkg/runtime/malloc.c') 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) -- cgit v1.3