From: Anthony Martin Date: Thu, 11 Apr 2013 01:47:58 +0000 (-0700) Subject: cmd/ld: fix scope of static objects in symbol table X-Git-Tag: go1.1rc2~119 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7ac20853fc3437647c4abfc3236e5c380bf5e68d;p=gostls13.git 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 --- diff --git a/src/cmd/ld/symtab.c b/src/cmd/ld/symtab.c index d8a4645e0d..01b92910e2 100644 --- a/src/cmd/ld/symtab.c +++ b/src/cmd/ld/symtab.c @@ -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 {