about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-07-09 20:09:14 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-07-09 20:09:14 +0200
commit7c241325d67af9e24ff03d4c6f6280c17ea181f8 (patch)
tree5667f94ae80c6e75dc1bac29ab4c51d48cfad084 /include
parentdc76a059fded7a203c82dbb91d4fc1f43d3250db (diff)
downloadglibc-7c241325d67af9e24ff03d4c6f6280c17ea181f8.tar.gz
glibc-7c241325d67af9e24ff03d4c6f6280c17ea181f8.tar.xz
glibc-7c241325d67af9e24ff03d4c6f6280c17ea181f8.zip
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 <carlos@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/shlib-compat.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/shlib-compat.h b/include/shlib-compat.h
index 6c423c8cb0..c29a0e081f 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) \