From e872807e2b7d74ba4ac474e697027a9318439d04 Mon Sep 17 00:00:00 2001 From: qmuntal Date: Sat, 9 Dec 2023 01:03:32 +0100 Subject: [PATCH] doc: document SEH changes For #57302. For #61422. Change-Id: Iee4e6600bf473eb982d0cb7330f7b2c1b48b9e13 Reviewed-on: https://go-review.googlesource.com/c/go/+/548575 Reviewed-by: Cherry Mui LUCI-TryBot-Result: Go LUCI Reviewed-by: Than McIntosh Reviewed-by: Dmitri Shuralyov --- doc/go1.22.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/go1.22.html b/doc/go1.22.html index f21c774ef13777..3c67dee3bb52f4 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -239,6 +239,17 @@

Linker

build ID.

+

+ On Windows, when building with -linkmode=internal, the linker now + preserves SEH information from C object files by copying the .pdata + and .xdata sections into the final binary. + This helps with debugging and profiling binaries using native tools, such as WinDbg. + Note that until now, C functions' SEH exception handlers were not being honored, + so this change may cause some programs to behave differently. + -linkmode=external is not affected by this change, as external linkers + already preserve SEH information. +

+

Bootstrap