Commit 96dad7ff authored by Michael Hudson-Doyle's avatar Michael Hudson-Doyle Committed by Ian Lance Taylor

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/9771Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent 087d5c08
......@@ -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)))
}
......
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