Skip to content

Commit

Permalink
doc: document SEH changes
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
qmuntal authored and ezz-no committed Feb 17, 2024
1 parent 52ef207 commit b0b7810
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/go1.22.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,17 @@ <h2 id="linker">Linker</h2>
build ID.
</p>

<p><!-- CL 534555 -->
On Windows, when building with <code>-linkmode=internal</code>, the linker now
preserves SEH information from C object files by copying the <code>.pdata</code>
and <code>.xdata</code> 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.
<code>-linkmode=external</code> is not affected by this change, as external linkers
already preserve SEH information.
</p>

<h2 id="bootstrap">Bootstrap</h2>

<p>
Expand Down

0 comments on commit b0b7810

Please sign in to comment.