From ae0432915e80ae0fb4d8d7c26341685f0822ffe1 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 27 Apr 2018 18:36:39 +0930 Subject: [PATCH] PR85532, crtend.o built without --enable-initfini-array has bad .eh_frame PR libgcc/85532 * config/rs6000/t-crtstuff (CRTSTUFF_T_CFLAGS): Add -fno-asynchronous-unwind-tables. From-SVN: r259702 --- libgcc/ChangeLog | 6 ++++++ libgcc/config/rs6000/t-crtstuff | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index e5f44b346aa..7e7c90b7388 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,9 @@ +2018-04-27 Alan Modra + + PR libgcc/85532 + * config/rs6000/t-crtstuff (CRTSTUFF_T_CFLAGS): Add + -fno-asynchronous-unwind-tables. + 2018-04-25 Chung-Ju Wu * config/nds32/sfp-machine.h: Fix settings for NDS32_ABI_2FP_PLUS. diff --git a/libgcc/config/rs6000/t-crtstuff b/libgcc/config/rs6000/t-crtstuff index 0b2601b05bd..d5ff95965f3 100644 --- a/libgcc/config/rs6000/t-crtstuff +++ b/libgcc/config/rs6000/t-crtstuff @@ -3,4 +3,4 @@ # Do not build crtend.o with -Os as that can result in references to # out-of-line register save/restore functions, which may be unresolved # as crtend.o is linked after libgcc.a. See PR45053. -CRTSTUFF_T_CFLAGS = -msdata=none -O2 +CRTSTUFF_T_CFLAGS = -msdata=none -O2 -fno-asynchronous-unwind-tables