aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMeng Zhuo <mengzhuo@iscas.ac.cn>2025-07-18 11:06:24 +0800
committerJulian Zhu <jz531210@gmail.com>2025-07-19 21:15:12 -0700
commit2363897932cfb279dd8810d2c92438f7ddcfd951 (patch)
tree336da0954591b68d8bdf72c4ab499a4d43992cec /src
parente32255fcc0861727243fca4e94766c0a322954fb (diff)
downloadgo-2363897932cfb279dd8810d2c92438f7ddcfd951.tar.xz
cmd/internal/obj: enable got pcrel itype in fips140 for riscv64
This CL enable R_RISCV_GOT_PCREL_ITYPE in fips140 Fixes #74662 Change-Id: Ic189c4e352517ae74034f207a5f944b610f2eb73 Reviewed-on: https://go-review.googlesource.com/c/go/+/688635 Reviewed-by: Mark Ryan <markdryan@rivosinc.com> Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Carlos Amedee <carlos@golang.org> Reviewed-by: Julian Zhu <jz531210@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/internal/obj/fips140.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/internal/obj/fips140.go b/src/cmd/internal/obj/fips140.go
index eb6ffff009..ea36849a21 100644
--- a/src/cmd/internal/obj/fips140.go
+++ b/src/cmd/internal/obj/fips140.go
@@ -384,6 +384,7 @@ func (s *LSym) checkFIPSReloc(ctxt *Link, rel Reloc) {
objabi.R_RISCV_TLS_IE,
objabi.R_RISCV_TLS_LE,
objabi.R_RISCV_GOT_HI20,
+ objabi.R_RISCV_GOT_PCREL_ITYPE,
objabi.R_RISCV_PCREL_HI20,
objabi.R_RISCV_PCREL_LO12_I,
objabi.R_RISCV_PCREL_LO12_S,