From a4f378196ece15f66c8b0dda5601b069d97c9046 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 24 Aug 2017 11:17:17 +0200 Subject: [PATCH] Rework handling of asynchronous unwind tables compiler flag This commit drops an overridden -fasynchronous-unwind-tables flag, which had no effect. We compile all of glibc with -fno-asynchronous-unwind-tables, so we can drop glibc-fedora-ppc-unwind.patch. --- glibc-fedora-ppc-unwind.patch | 20 -------------------- glibc.spec | 4 ---- 2 files changed, 24 deletions(-) delete mode 100644 glibc-fedora-ppc-unwind.patch diff --git a/glibc-fedora-ppc-unwind.patch b/glibc-fedora-ppc-unwind.patch deleted file mode 100644 index 0a808ec..0000000 --- a/glibc-fedora-ppc-unwind.patch +++ /dev/null @@ -1,20 +0,0 @@ -glibc-2.3.3-1478-g37582bc - -* Thu Nov 30 2006 Jakub Jelinek 2.5.90-9 -- on ppc64 build __libc_start_main without unwind info, - as it breaks MD_FROB_UPDATE_CONTEXT (#217729, #217775; in the - future that could be fixable just by providing .cfi_undefined r2 - in __libc_start_main instead) - -diff -Nrup a/sysdeps/powerpc/powerpc64/Makefile b/sysdeps/powerpc/powerpc64/Makefile ---- a/sysdeps/powerpc/powerpc64/Makefile 2012-06-05 07:42:49.000000000 -0600 -+++ b/sysdeps/powerpc/powerpc64/Makefile 2012-06-07 12:15:21.828318633 -0600 -@@ -35,6 +35,8 @@ CFLAGS-rtld-memmove.os = $(no-special-re - CFLAGS-rtld-memchr.os = $(no-special-regs) - CFLAGS-rtld-strnlen.os = $(no-special-regs) - -+CFLAGS-libc-start.c += -fno-asynchronous-unwind-tables -+ - ifeq ($(subdir),elf) - # help gcc inline asm code from dl-machine.h - +cflags += -finline-limit=2000 diff --git a/glibc.spec b/glibc.spec index 5a53112..8180b75 100644 --- a/glibc.spec +++ b/glibc.spec @@ -178,8 +178,6 @@ Source11: SUPPORTED # change this. Patch0001: glibc-fedora-nscd.patch -Patch0004: glibc-fedora-ppc-unwind.patch - # Build info files in the source tree, then move to the build # tree so that they're identical for multilib builds Patch0005: glibc-rh825061.patch @@ -724,7 +722,6 @@ microbenchmark tests on the system. # Patch order matters. %patch0001 -p1 -%patch0004 -p1 %patch0005 -p1 %patch2007 -p1 %patch0009 -p1 @@ -888,7 +885,6 @@ BuildFlags="-march=mips64r2 -mabi=64 -mrelax-pic-calls" ############################################################################## # %%build - Generic options. ############################################################################## -BuildFlags="$BuildFlags -fasynchronous-unwind-tables" EnableKernel="--enable-kernel=%{enablekernel}" # Save the used compiler and options into the file "Gcc" for use later # by %%install.