Skip to content

Commit

Permalink
ld: don't skip first 2 symbols in ldpe.
Browse files Browse the repository at this point in the history
some object files don't has file name symbol.

R=golang-dev, lucio.dere, rsc
CC=golang-dev
https://golang.org/cl/4814051
  • Loading branch information
wgj-zz authored and rsc committed Jul 25, 2011
1 parent 2aa2ceb commit 0871af2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cmd/ld/ldpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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; i<obj->npesym; i++) {
for(i=0; i<obj->npesym; i++) {
if(obj->pesym[i].name == 0)
continue;
if(obj->pesym[i].name[0] == '.') //skip section
Expand Down

0 comments on commit 0871af2

Please sign in to comment.