From: Meng Zhuo Date: Fri, 18 Jul 2025 03:06:24 +0000 (+0800) Subject: cmd/internal/obj: enable got pcrel itype in fips140 for riscv64 X-Git-Tag: go1.25rc3~5^2~9 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2363897932cfb279dd8810d2c92438f7ddcfd951;p=gostls13.git 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 Reviewed-by: Cherry Mui LUCI-TryBot-Result: Go LUCI Reviewed-by: Carlos Amedee Reviewed-by: Julian Zhu --- 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,