Commit 0871af25 authored by Wei Guangjing's avatar Wei Guangjing Committed by Russ Cox

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
parent 2aa2ceb8
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment