]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/obj: enable got pcrel itype in fips140 for riscv64
authorMeng Zhuo <mengzhuo@iscas.ac.cn>
Fri, 18 Jul 2025 03:06:24 +0000 (11:06 +0800)
committerJulian Zhu <jz531210@gmail.com>
Sun, 20 Jul 2025 04:15:12 +0000 (21:15 -0700)
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>
src/cmd/internal/obj/fips140.go

index eb6ffff009a3493cac67405f4efaa74501ba5f49..ea36849a21d96d96eadf0b1b645953eaa8c57b0a 100644 (file)
@@ -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,