]> xenbits.xensource.com Git - xen.git/commitdiff
xen: Drop CONFIG_CC_HAS_VISIBILITY_ATTRIBUTE
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 22 Apr 2025 11:36:01 +0000 (12:36 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 22 Apr 2025 14:47:48 +0000 (15:47 +0100)
All supported toolchains now have it.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/Kconfig
xen/include/xen/compiler.h

index 72fdb8376087853abe7981b04ca4f16376decefe..ae1c401a981e62aea20f6bc0b26cf32e2a8f9144 100644 (file)
@@ -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
index 38b8fa3d386dbee27d1c1a2871b9a3973206f2ad..c68fab189154192b621981a5b8323d7659b62a7a 100644 (file)
 
 #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")