From 2363897932cfb279dd8810d2c92438f7ddcfd951 Mon Sep 17 00:00:00 2001 From: Meng Zhuo Date: Fri, 18 Jul 2025 11:06:24 +0800 Subject: [PATCH] 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 --- src/cmd/internal/obj/fips140.go | 1 + 1 file changed, 1 insertion(+) 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, -- 2.50.0