From 3554325937de6c725ebb6227eed0c36bd4f909c2 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 22 Aug 2011 23:23:57 -0400 Subject: [PATCH] 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 --- src/cmd/ld/symtab.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/cmd/ld/symtab.c b/src/cmd/ld/symtab.c index 60e146b354e..00413af0094 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)