mirror of
https://github.com/golang/go
synced 2024-11-21 20:24:50 -07:00
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
This commit is contained in:
parent
2aa2ceb873
commit
0871af25aa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user