]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: generate SEH aux symbols for windows/amd64
authorqmuntal <quimmuntal@gmail.com>
Mon, 16 Jan 2023 15:21:48 +0000 (16:21 +0100)
committerQuim Muntal <quimmuntal@gmail.com>
Wed, 5 Apr 2023 19:44:37 +0000 (19:44 +0000)
commit76ac54b50ea39bbb1389ecfed71f4f0991cb4289
tree5c14d62f6a442fc72a011b68a247fc7730b184a6
parentd15fcbc79f252fe5c01e099ab89b58f1de61df32
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>
src/cmd/internal/goobj/objfile.go
src/cmd/internal/obj/link.go
src/cmd/internal/obj/objfile.go
src/cmd/internal/obj/plist.go
src/cmd/internal/obj/sym.go
src/cmd/internal/obj/x86/obj6.go
src/cmd/internal/obj/x86/seh.go [new file with mode: 0644]
src/cmd/internal/objabi/symkind.go
src/cmd/internal/objabi/symkind_string.go
src/cmd/link/internal/sym/symkind.go
src/cmd/link/internal/sym/symkind_string.go