aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/goobj
diff options
context:
space:
mode:
authorqmuntal <quimmuntal@gmail.com>2023-01-16 16:21:48 +0100
committerQuim Muntal <quimmuntal@gmail.com>2023-04-05 19:44:37 +0000
commit76ac54b50ea39bbb1389ecfed71f4f0991cb4289 (patch)
tree5c14d62f6a442fc72a011b68a247fc7730b184a6 /src/cmd/internal/goobj
parentd15fcbc79f252fe5c01e099ab89b58f1de61df32 (diff)
downloadgo-76ac54b50ea39bbb1389ecfed71f4f0991cb4289.tar.xz
cmd/internal/obj: generate SEH aux symbols for windows/amd64
This CL updates the Go compiler so it generate SEH unwind info [1] as a function auxiliary symbol when building for windows/amd64. A follow up CL will teach the Go linker how to assemble these codes into the PE .xdata section. Updates #57302 [1] https://learn.microsoft.com/en-us/cpp/build/exception-handling-x64#struct-unwind_info Change-Id: I40ae0437bfee326c1a67c2b5e1496f0bf3ecea17 Reviewed-on: https://go-review.googlesource.com/c/go/+/461749 Reviewed-by: Davis Goodin <dagood@microsoft.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com> Run-TryBot: Quim Muntal <quimmuntal@gmail.com>
Diffstat (limited to 'src/cmd/internal/goobj')
-rw-r--r--src/cmd/internal/goobj/objfile.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/internal/goobj/objfile.go b/src/cmd/internal/goobj/objfile.go
index 0364f856cf..64d453abdc 100644
--- a/src/cmd/internal/goobj/objfile.go
+++ b/src/cmd/internal/goobj/objfile.go
@@ -443,6 +443,7 @@ const (
AuxPcinline
AuxPcdata
AuxWasmImport
+ AuxSehUnwindInfo
)
func (a *Aux) Type() uint8 { return a[0] }