]> Cypherpunks repositories - gostls13.git/commit
cmd/link: fix build on plan9/amd64
authorDavid du Colombier <0intro@gmail.com>
Wed, 12 Oct 2016 12:24:39 +0000 (14:24 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 12 Oct 2016 13:14:46 +0000 (13:14 +0000)
commit29c600bba1279d63a40bc99a7e6212d3f0bffa06
tree8ef1c7bd073219c562d455299720f29907486bff
parent6c517df4daa0acaa25a16baeef5ea037c9a0194c
cmd/link: fix build on plan9/amd64

Support for multiple text sections was added in CL 27790.
However, this change broke the build on plan9/amd64.

In relocsym, the R_ADDROFF relocation was changed to
use offsets relative to the start of the first text
section. However, Segtext.Vaddr is the address of
the text segment, while we expect to start from
the first section (text.runtime) of the text segment.

Fixes #17411.

Change-Id: I86bbcbda81cea735b0ecf156eab2e6e5d63acce3
Reviewed-on: https://go-review.googlesource.com/30911
Run-TryBot: David du Colombier <0intro@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/data.go