This patch adds "-fno-asynchronous-unwind-tables -mcmodel=large" to
CRTSTUFF_T_CFLAGS_S.  Backported to 4.8.

        * config/tilegx/t-crtstuff: Add -fno-asynchronous-unwind-tables
        -mcmodel=large to CRTSTUFF_T_CFLAGS_S variable.

Index: libgcc/config/tilegx/t-crtstuff
===================================================================
--- libgcc/config/tilegx/t-crtstuff     (revision 197072)
+++ libgcc/config/tilegx/t-crtstuff     (working copy)
@@ -2,3 +2,7 @@
 # because then __FRAME_END__ might not be the last thing in .eh_frame
 # section.
 CRTSTUFF_T_CFLAGS += -fno-asynchronous-unwind-tables
+CRTSTUFF_T_CFLAGS_S += -fno-asynchronous-unwind-tables
+
+# Compile crtbeginS.o and crtendS.o with -mcmodel=large
+CRTSTUFF_T_CFLAGS_S += -mcmodel=large

Reply via email to