]> Cypherpunks repositories - gostls13.git/commit
cmd/link: don't overalign ELF reloc sections
authorIan Lance Taylor <iant@golang.org>
Fri, 2 Dec 2016 06:48:52 +0000 (22:48 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 2 Dec 2016 07:13:18 +0000 (07:13 +0000)
commit130ad87ab7b02a87401246d4a5f0c3f00fc7d709
treeb6012bcfd597cb1e26d877755c35781f5d1d0d19
parent9e0f3a14591586fcfd876d7801b5f3e4fc1998b5
cmd/link: don't overalign ELF reloc sections

Internal linking on an ELF system creates two reloc sections, which
must be adjacent. The default is to base section alignment on the
section size, but doing that for ELF reloc sections can introduce a
gap. Set the reloc section alignment explicitly to avoid that.

Fixes #18044.

Change-Id: I8ccc131e60937d30c5f715a34c7803258833fc2f
Reviewed-on: https://go-review.googlesource.com/33872
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/go_test.go
src/cmd/link/internal/ld/data.go