]> Cypherpunks repositories - gostls13.git/commitdiff
ld: remove duplicate bss definitions
authorRuss Cox <rsc@golang.org>
Tue, 23 Aug 2011 03:23:57 +0000 (23:23 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 23 Aug 2011 03:23:57 +0000 (23:23 -0400)
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

src/cmd/ld/symtab.c

index 60e146b354eea9233d709dcdd5b6f560d554e4e0..00413af0094710bcdb425e38e8a18722e3cefb14 100644 (file)
 #include       "../ld/lib.h"
 #include       "../ld/elf.h"
 
-char *elfstrdat;
-int elfstrsize;
-int maxelfstr;
-int elftextsh;
+static int maxelfstr;
 
 int
 putelfstr(char *s)