From 96dad7ff3ea15327b386c6497e171b119db33ee3 Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Wed, 6 May 2015 12:35:19 +1200 Subject: [PATCH] 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 --- src/cmd/internal/ld/elf.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/internal/ld/elf.go b/src/cmd/internal/ld/elf.go index ab87be60ed..5c17b2da6f 100644 --- a/src/cmd/internal/ld/elf.go +++ b/src/cmd/internal/ld/elf.go @@ -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))) }