From 7ac20853fc3437647c4abfc3236e5c380bf5e68d Mon Sep 17 00:00:00 2001 From: Anthony Martin Date: Wed, 10 Apr 2013 18:47:58 -0700 Subject: [PATCH] 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 --- src/cmd/ld/symtab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {