aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/go-patches/0002-cmd-link-deal-with-ADDR32NB-relocations-the-same-way.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/0002-cmd-link-deal-with-ADDR32NB-relocations-the-same-way.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/0002-cmd-link-deal-with-ADDR32NB-relocations-the-same-way.patch')
-rw-r--r--go-patches/0002-cmd-link-deal-with-ADDR32NB-relocations-the-same-way.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/go-patches/0002-cmd-link-deal-with-ADDR32NB-relocations-the-same-way.patch b/go-patches/0002-cmd-link-deal-with-ADDR32NB-relocations-the-same-way.patch
deleted file mode 100644
index e260ccd8..00000000
--- a/go-patches/0002-cmd-link-deal-with-ADDR32NB-relocations-the-same-way.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From a0a59fc25f4d8aef3c7bce38c84f04c504745f0e Mon Sep 17 00:00:00 2001
-From: "Jason A. Donenfeld" <Jason@zx2c4.com>
-Date: Sun, 8 Nov 2020 03:09:42 +0100
-Subject: [PATCH 02/14] cmd/link: deal with ADDR32NB relocations the same way
- as ADDR32 on arm
-
-As far as I can tell, the addend is the same for both of these, and in
-this context we don't really care about setting or unsetting the thumb
-selection bit, so just treat these the same way.
-
-Change-Id: I3756c027239f77778c32b317733df9ac92272580
----
- src/cmd/link/internal/loadpe/ldpe.go | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/cmd/link/internal/loadpe/ldpe.go b/src/cmd/link/internal/loadpe/ldpe.go
-index cf76741f43..5839a6a5f2 100644
---- a/src/cmd/link/internal/loadpe/ldpe.go
-+++ b/src/cmd/link/internal/loadpe/ldpe.go
-@@ -308,7 +308,7 @@ func Load(l *loader.Loader, arch *sys.Arch, localSymVersion int, input *bio.Read
-
- rAdd = int64(int32(binary.LittleEndian.Uint32(sectdata[rsect][rOff:])))
-
-- case IMAGE_REL_ARM_ADDR32:
-+ case IMAGE_REL_ARM_ADDR32, IMAGE_REL_ARM_ADDR32NB:
- rType = objabi.R_ADDR
-
- rAdd = int64(int32(binary.LittleEndian.Uint32(sectdata[rsect][rOff:])))
---
-2.29.2
-