From 0871af25aaa1a35690afedd5ae74fd63ce351612 Mon Sep 17 00:00:00 2001 From: Wei Guangjing Date: Mon, 25 Jul 2011 12:25:44 -0400 Subject: [PATCH] ld: don't skip first 2 symbols in ldpe. some object files don't has file name symbol. R=golang-dev, lucio.dere, rsc CC=golang-dev https://golang.org/cl/4814051 --- src/cmd/ld/ldpe.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cmd/ld/ldpe.c b/src/cmd/ld/ldpe.c index 049edeb23f6..c2b34eee6b5 100644 --- a/src/cmd/ld/ldpe.c +++ b/src/cmd/ld/ldpe.c @@ -311,8 +311,7 @@ ldpe(Biobuf *f, char *pkg, int64 len, char *pn) } // enter sub-symbols into symbol table. - // frist 2 entry is file name. - for(i=2; inpesym; i++) { + for(i=0; inpesym; i++) { if(obj->pesym[i].name == 0) continue; if(obj->pesym[i].name[0] == '.') //skip section