From ff311cc6a89ed2463219414301714662060e12a2 Mon Sep 17 00:00:00 2001 From: Lucas Steuernagel Date: Mon, 12 Aug 2024 18:04:02 -0300 Subject: [PATCH] Do not check relocs for SBF --- lld/ELF/Driver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index 2970ea842169395..9dd1265dc7013c0 100644 --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -1754,7 +1754,7 @@ static void setConfigs(opt::InputArgList &args) { // builds and disabled otherwise. This check is enabled when writeAddends is // true. #ifndef NDEBUG - bool checkDynamicRelocsDefault = true; + bool checkDynamicRelocsDefault = m != EM_BPF && m != EM_SBF; #else bool checkDynamicRelocsDefault = false; #endif