]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
powerpc64le: guarantee a .gnu.attributes section [BZ #26220]
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>
Wed, 8 Jul 2020 21:49:34 +0000 (16:49 -0500)
committerPaul E. Murphy <murphyp@linux.vnet.ibm.com>
Tue, 21 Jul 2020 14:03:01 +0000 (09:03 -0500)
Upstream GCC 11 development is now building the ibm128 runtime
support (in libgcc) without a .gnu.attributes section on ppc64le.
Ensure we have one to replace by building one ibm128 file in
libc and libm with attributes.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
sysdeps/powerpc/powerpc64/le/Makefile

index 05ab13d85cb98e32de553eb12bebb14745908943..033dc77b01bdf9c6d62ba88cae82df393dbfbf1d 100644 (file)
@@ -38,6 +38,14 @@ if [ ! -z "$(filter libm.so libc.so,$(notdir $1))" ]; then \
 fi
 endef
 
+# Ensure a .gnu.attributes section is present by building an ibm128 file with
+# -mgnu-attribute in both libm and libc shared libraries.  Prior to GCC 11 this
+# section was implicitly included via static libgcc ibm128 routines.
+ifeq ($(subdir),math)
+$(objpfx)m_ldexpl.os: CFLAGS += -mgnu-attribute
+$(objpfx)s_ldexpl.os: CFLAGS += -mgnu-attribute
+endif
+
 endif # ifeq ($(build-shared),yes)
 endif # ifeq ($(ibm128-fcts),yes)