Skip to content

Commit b0b7810

Browse files
qmuntalezz-no
authored andcommitted
doc: document SEH changes
For golang#57302. For golang#61422. Change-Id: Iee4e6600bf473eb982d0cb7330f7b2c1b48b9e13 Reviewed-on: https://go-review.googlesource.com/c/go/+/548575 Reviewed-by: Cherry Mui <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Than McIntosh <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 52ef207 commit b0b7810

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/go1.22.html

+11
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,17 @@ <h2 id="linker">Linker</h2>
239239
build ID.
240240
</p>
241241

242+
<p><!-- CL 534555 -->
243+
On Windows, when building with <code>-linkmode=internal</code>, the linker now
244+
preserves SEH information from C object files by copying the <code>.pdata</code>
245+
and <code>.xdata</code> sections into the final binary.
246+
This helps with debugging and profiling binaries using native tools, such as WinDbg.
247+
Note that until now, C functions' SEH exception handlers were not being honored,
248+
so this change may cause some programs to behave differently.
249+
<code>-linkmode=external</code> is not affected by this change, as external linkers
250+
already preserve SEH information.
251+
</p>
252+
242253
<h2 id="bootstrap">Bootstrap</h2>
243254

244255
<p>

0 commit comments

Comments
 (0)