]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/ld: recompute resoff after changing elfreserve
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Wed, 6 May 2015 00:35:19 +0000 (12:35 +1200)
committerIan Lance Taylor <iant@golang.org>
Wed, 6 May 2015 00:56:15 +0000 (00:56 +0000)
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>
src/cmd/internal/ld/elf.go

index ab87be60ed3710f8c13c4ab0ce7e0ea53118a143..5c17b2da6f979a6cc8177e61b8e470686056cf05 100644 (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)))
                }