From 7c241325d67af9e24ff03d4c6f6280c17ea181f8 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 9 Jul 2021 20:09:14 +0200 Subject: Force building with -fno-common As a result, is not necessary to specify __attribute__ ((nocommon)) on individual definitions. GCC 10 defaults to -fno-common on all architectures except ARC, but this change is compatible with older GCC versions and ARC, too. Reviewed-by: Carlos O'Donell --- include/shlib-compat.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include') diff --git a/include/shlib-compat.h b/include/shlib-compat.h index 6c423c8..c29a0e0 100644 --- a/include/shlib-compat.h +++ b/include/shlib-compat.h @@ -79,11 +79,7 @@ unspecified whether SYMBOL@VERSION is associated with LOCAL, or if an intermediate alias is created. If LOCAL and SYMBOL are distinct, and LOCAL is also intended for export, its version should - be specified explicitly with versioned_symbol, too. - - If LOCAL is a data symbol and does not have a non-zero initializer, - it should be defined with __attribute__ ((nocommon)) for - compatibility with GCC versions that default to -fcommon. */ + be specified explicitly with versioned_symbol, too. */ # define versioned_symbol(lib, local, symbol, version) \ versioned_symbol_1 (lib, local, symbol, version) # define versioned_symbol_1(lib, local, symbol, version) \ -- cgit v1.1