]> Cypherpunks repositories - gostls13.git/commit
cmd/link: align .reloc block starts by 32 bits for PE target
authorThan McIntosh <thanm@google.com>
Mon, 1 Jul 2024 16:11:33 +0000 (16:11 +0000)
committerThan McIntosh <thanm@google.com>
Mon, 1 Jul 2024 19:15:10 +0000 (19:15 +0000)
commitf71c00b6165177dbcc5d40ff5f4731d297ee6090
tree759b86075078a2b74092eb7aa93844718b510210
parentd3c93f2f00fe40eb6f8b0bf9c81b15ddd9872119
cmd/link: align .reloc block starts by 32 bits for PE target

Tweak the code that emits the PE ".reloc" section on Windows to ensure
that each relocation block is 32-bit aligned, which is required by the
PE standard.

Fixes #68260.

Change-Id: I39b75a7491b00fa97871aebb90d3be0ec09f9c40
Reviewed-on: https://go-review.googlesource.com/c/go/+/595896
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/link/internal/ld/pe.go