diff options
| author | qmuntal <quimmuntal@gmail.com> | 2026-02-10 14:21:15 +0100 |
|---|---|---|
| committer | Quim Muntal <quimmuntal@gmail.com> | 2026-03-06 12:53:54 -0800 |
| commit | bbed50aaa3033c9be6a5268268a7faf226be9de0 (patch) | |
| tree | 335144950658578925c8236d8e5dca77b46738b6 /test/codegen | |
| parent | de5c138eef88685442dc71e36dd98d66b885a605 (diff) | |
| download | go-bbed50aaa3033c9be6a5268268a7faf226be9de0.tar.xz | |
cmd/link: sort .pdata by function start address
Loosely based on CL 678795.
The PE/COFF spec requires RUNTIME_FUNCTION entries in the .pdata
section to be ordered by their function start address. Previously
the linker emitted them in symbol order.
An unsorted table triggers the MSVC linker error:
fatal error LNK1223: invalid or corrupt file: file contains invalid
.pdata contributions
Fixes #65116.
Change-Id: I589cb4e6787a9edb34400b56e60fe23065b59162
Reviewed-on: https://go-review.googlesource.com/c/go/+/743820
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'test/codegen')
0 files changed, 0 insertions, 0 deletions
