Skip to contentSkip to conversation

xen: Drop CONFIG_CC_HAS_VISIBILITY_ATTRIBUTE

PATCH In review Andrew Cooper 2 participants 2 messages Apr 22, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: Drop CONFIG_CC_HAS_VISIBILITY_ATTRIBUTE

All supported toolchains now have it.

---
CC: Anthony PERARD <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>

---
 xen/Kconfig                | 4 ----
 xen/include/xen/compiler.h | 2 --
 2 files changed, 6 deletions(-)
xen/Kconfig +0 -4
index 72fdb8376087..ae1c401a981e 100644
@@ -29,10 +29,6 @@ config LD_IS_GNU
 config LD_IS_LLVM
 	def_bool $(success,$(LD) --version | head -n 1 | grep -q "^LLD")
 
-# -fvisibility=hidden reduces -fpic cost, if it's available
-config CC_HAS_VISIBILITY_ATTRIBUTE
-	def_bool $(cc-option,-fvisibility=hidden)
-
 # Use -f{function,data}-sections compiler parameters
 config CC_SPLIT_SECTIONS
 	bool
xen/include/xen/compiler.h +0 -2
index 38b8fa3d386d..c68fab189154 100644
@@ -17,10 +17,8 @@
 
 #endif /* Compiler checks. */
 
-#ifdef CONFIG_CC_HAS_VISIBILITY_ATTRIBUTE
 /* Results in more efficient PIC code (no indirections through GOT or PLT). */
 #pragma GCC visibility push(hidden)
-#endif
 
 #define barrier()     __asm__ __volatile__("": : :"memory")
 
Signature · 1 line
2.39.5