1
0
mirror of https://github.com/golang/go synced 2024-11-13 17:00:22 -07:00

cmd/ld: fix scope of static objects in symbol table

All symbols are currently marked with global scope.
The correct behavior was lost when the symbol table
format was changed.

R=golang-dev, iant, r
CC=golang-dev
https://golang.org/cl/8625043
This commit is contained in:
Anthony Martin 2013-04-10 18:47:58 -07:00
parent bb195f6793
commit 7ac20853fc

View File

@ -347,7 +347,7 @@ putsymb(Sym *s, char *name, int t, vlong v, vlong size, int ver, Sym *typ)
// type byte
if('A' <= t && t <= 'Z')
c = t - 'A';
c = t - 'A' + (ver ? 26 : 0);
else if('a' <= t && t <= 'z')
c = t - 'a' + 26;
else {