ld -r could generate multiple section symbols for the same section,
but with different values, we have to take that into account.
Fixes #3322.
Part of issue 3261.
For CL
5822049.
R=golang-dev, iant, rsc, iant
CC=golang-dev
https://golang.org/cl/
5823059
rp->add = le64(rsect->base+rp->off);
break;
}
+ // ld -r could generate multiple section symbols for the
+ // same section but with different values, we have to take
+ // that into account
+ if (obj->pesym[symindex].name[0] == '.')
+ rp->add += obj->pesym[symindex].value;
}
qsort(r, rsect->sh.NumberOfRelocations, sizeof r[0], rbyoff);