aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/go-patches/0012-runtime-adjust-address-calculation-in-identifying-ab.patch
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-12-22 21:20:09 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-01-04 13:33:10 +0100
commit2c9d5a47ca33eb69d40bc81a8c93aa97e18cc785 (patch)
tree669fd06c641188e5f410576fe8d3020413d66b64 /go-patches/0012-runtime-adjust-address-calculation-in-identifying-ab.patch
parentconf: rename migration to migration_windows (diff)
downloadwireguard-windows-2c9d5a47ca33eb69d40bc81a8c93aa97e18cc785.tar.xz
wireguard-windows-2c9d5a47ca33eb69d40bc81a8c93aa97e18cc785.zip
build: update to go 1.16 beta1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'go-patches/0012-runtime-adjust-address-calculation-in-identifying-ab.patch')
-rw-r--r--go-patches/0012-runtime-adjust-address-calculation-in-identifying-ab.patch44
1 files changed, 0 insertions, 44 deletions
diff --git a/go-patches/0012-runtime-adjust-address-calculation-in-identifying-ab.patch b/go-patches/0012-runtime-adjust-address-calculation-in-identifying-ab.patch
deleted file mode 100644
index 38fcbb9b..00000000
--- a/go-patches/0012-runtime-adjust-address-calculation-in-identifying-ab.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From 8ec41fee1e6ef074ef74e56fe079c70c8a1d0548 Mon Sep 17 00:00:00 2001
-From: "Jason A. Donenfeld" <Jason@zx2c4.com>
-Date: Fri, 27 Nov 2020 22:07:23 +0100
-Subject: [PATCH 12/14] runtime: adjust address calculation in identifying
- abort on windows/arm
-
-Apparently we're being called on arm 1 byte off, just like on 386 and
-amd64, so unify the handler for isAbortPC.
-
-Fixes #42859.
-Updates #29050.
-
-Change-Id: I97fffeb4a33d93ca3397ce1c9ba2b05137f391ca
----
- src/runtime/signal_windows.go | 13 +++----------
- 1 file changed, 3 insertions(+), 10 deletions(-)
-
-diff --git a/src/runtime/signal_windows.go b/src/runtime/signal_windows.go
-index d123276d3e..8db24fb805 100644
---- a/src/runtime/signal_windows.go
-+++ b/src/runtime/signal_windows.go
-@@ -43,16 +43,9 @@ func initExceptionHandler() {
- //
- //go:nosplit
- func isAbort(r *context) bool {
-- switch GOARCH {
-- case "386", "amd64":
-- // In the case of an abort, the exception IP is one byte after
-- // the INT3 (this differs from UNIX OSes).
-- return isAbortPC(r.ip() - 1)
-- case "arm":
-- return isAbortPC(r.ip())
-- default:
-- return false
-- }
-+ // In the case of an abort, the exception IP is one byte after
-+ // the INT3 (this differs from UNIX OSes).
-+ return isAbortPC(r.ip() - 1)
- }
-
- // isgoexception reports whether this exception should be translated
---
-2.29.2
-