From: qmuntal
Date: Sat, 9 Dec 2023 00:03:32 +0000 (+0100)
Subject: doc: document SEH changes
X-Git-Tag: go1.22rc1~41
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e872807e2b7d74ba4ac474e697027a9318439d04;p=gostls13.git
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
---
diff --git a/doc/go1.22.html b/doc/go1.22.html
index f21c774ef1..3c67dee3bb 100644
--- a/doc/go1.22.html
+++ b/doc/go1.22.html
@@ -239,6 +239,17 @@ defer func() {
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