diff options
Diffstat (limited to '1000-all-implement-plugin-build-mode-for-riscv64.patch')
-rw-r--r-- | 1000-all-implement-plugin-build-mode-for-riscv64.patch | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/1000-all-implement-plugin-build-mode-for-riscv64.patch b/1000-all-implement-plugin-build-mode-for-riscv64.patch index be28f8f..5b30f76 100644 --- a/1000-all-implement-plugin-build-mode-for-riscv64.patch +++ b/1000-all-implement-plugin-build-mode-for-riscv64.patch @@ -1,4 +1,4 @@ -From 3adb57d3e689f0c3da7a26df52e9218afb18d94f Mon Sep 17 00:00:00 2001 +From cdc95607940b2acb66cb184dec08d4cc8a469042 Mon Sep 17 00:00:00 2001 From: Meng Zhuo <mengzhuo1203@gmail.com> Date: Thu, 12 Sep 2024 20:15:56 +0800 Subject: [PATCH] all: implement plugin build mode for riscv64 @@ -18,10 +18,10 @@ TryBot-Bypass: Joel Sing <joel@sing.id.au> 5 files changed, 152 insertions(+), 3 deletions(-) diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go -index 0ffcabe416..b1e3929113 100644 +index b137c7db7990bd..6199dbbb93cdcc 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go -@@ -1659,7 +1659,7 @@ func buildModeSupported(compiler, buildmode, goos, goarch string) bool { +@@ -1767,7 +1767,7 @@ func buildModeSupported(compiler, buildmode, goos, goarch string) bool { case "plugin": switch platform { @@ -31,10 +31,10 @@ index 0ffcabe416..b1e3929113 100644 "darwin/amd64", "darwin/arm64", "freebsd/amd64": diff --git a/src/cmd/internal/obj/riscv/obj.go b/src/cmd/internal/obj/riscv/obj.go -index 2055f4836e..44a2246e1f 100644 +index 3a4ab556f7df2b..c41d99c0c7a659 100644 --- a/src/cmd/internal/obj/riscv/obj.go +++ b/src/cmd/internal/obj/riscv/obj.go -@@ -177,6 +177,127 @@ func progedit(ctxt *obj.Link, p *obj.Prog, newprog obj.ProgAlloc) { +@@ -157,6 +157,127 @@ func progedit(ctxt *obj.Link, p *obj.Prog, newprog obj.ProgAlloc) { p.From.Offset = 0 } } @@ -163,7 +163,7 @@ index 2055f4836e..44a2246e1f 100644 // addrToReg extracts the register from an Addr, handling special Addr.Names. diff --git a/src/cmd/link/internal/riscv64/asm.go b/src/cmd/link/internal/riscv64/asm.go -index 6a4dd01240..a9583d21aa 100644 +index 8e5d5be41ec0dd..527f09e17c7dba 100644 --- a/src/cmd/link/internal/riscv64/asm.go +++ b/src/cmd/link/internal/riscv64/asm.go @@ -20,7 +20,26 @@ import ( @@ -195,10 +195,10 @@ index 6a4dd01240..a9583d21aa 100644 func findHI20Reloc(ldr *loader.Loader, s loader.Sym, val int64) *loader.Reloc { outer := ldr.OuterSym(s) diff --git a/src/internal/platform/supported.go b/src/internal/platform/supported.go -index a774247e6b..bad1a6c9c4 100644 +index e864c37d6897d4..702a255e4cd928 100644 --- a/src/internal/platform/supported.go +++ b/src/internal/platform/supported.go -@@ -207,7 +207,7 @@ func BuildModeSupported(compiler, buildmode, goos, goarch string) bool { +@@ -208,7 +208,7 @@ func BuildModeSupported(compiler, buildmode, goos, goarch string) bool { case "plugin": switch platform { @@ -208,10 +208,10 @@ index a774247e6b..bad1a6c9c4 100644 "darwin/amd64", "darwin/arm64", "freebsd/amd64": diff --git a/src/runtime/asm_riscv64.s b/src/runtime/asm_riscv64.s -index 491635b1cf..231564aca2 100644 +index ef654a3a229e09..71b32304d7b0ae 100644 --- a/src/runtime/asm_riscv64.s +++ b/src/runtime/asm_riscv64.s -@@ -542,6 +542,15 @@ TEXT runtime·goexit(SB),NOSPLIT|NOFRAME|TOPFRAME,$0-0 +@@ -541,6 +541,15 @@ TEXT runtime·goexit(SB),NOSPLIT|NOFRAME|TOPFRAME,$0-0 // traceback from goexit1 must hit code range of goexit MOV ZERO, ZERO // NOP @@ -227,6 +227,3 @@ index 491635b1cf..231564aca2 100644 // func cgocallback(fn, frame unsafe.Pointer, ctxt uintptr) // See cgocall.go for more details. TEXT ·cgocallback(SB),NOSPLIT,$24-24 --- -2.48.1.windows.1 - |