1
0
mirror of https://github.com/golang/go synced 2024-09-30 20:28:32 -06:00

cmd/internal/ld: recompute resoff after changing elfreserve

My last update to https://golang.org/cl/9710 missed this.

Change-Id: Ie042032ca307e1065fcf6c402a166f9ff74027e7
Reviewed-on: https://go-review.googlesource.com/9771
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Michael Hudson-Doyle 2015-05-06 12:35:19 +12:00 committed by Ian Lance Taylor
parent 087d5c08f8
commit 96dad7ff3e

View File

@ -1928,6 +1928,7 @@ func Asmbelf(symo int64) {
// in the intermediate object file, not the final shared
// library.
elfreserve *= 3
resoff = elfreserve
sh := elfshname(".note.go.pkg-list")
resoff -= int64(elfgopkgnote(sh, uint64(startva), uint64(resoff)))
}