From: Russ Cox Date: Tue, 23 Aug 2011 03:23:57 +0000 (-0400) Subject: ld: remove duplicate bss definitions X-Git-Tag: weekly.2011-09-01~125 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3554325937de6c725ebb6227eed0c36bd4f909c2;p=gostls13.git ld: remove duplicate bss definitions The EXTERN lines in elf.h already define these. That's not a problem for most C compilers, but apparently it is for some copies of the OS X linker. Fixes #2167. R=golang-dev, iant CC=golang-dev https://golang.org/cl/4936044 --- diff --git a/src/cmd/ld/symtab.c b/src/cmd/ld/symtab.c index 60e146b354..00413af009 100644 --- a/src/cmd/ld/symtab.c +++ b/src/cmd/ld/symtab.c @@ -34,10 +34,7 @@ #include "../ld/lib.h" #include "../ld/elf.h" -char *elfstrdat; -int elfstrsize; -int maxelfstr; -int elftextsh; +static int maxelfstr; int putelfstr(char *s)