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
This commit is contained in:
Matthew Dempsky 2014-08-27 20:15:05 -04:00 committed by Russ Cox
parent 9e36092697
commit 2c110a11e0
36 changed files with 229 additions and 193 deletions

View file

@ -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)