[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patches] Fix IA32 build with unwind tables enabled by default
- To: patches@xxxxxxxxxx
- Subject: [patches] Fix IA32 build with unwind tables enabled by default
- From: "Joseph S. Myers" <joseph@xxxxxxxxxxxxxxxx>
- Date: Thu, 25 Jun 2009 15:47:57 +0000 (UTC)
I've applied this patch to fix building EGLIBC for IA32 with a compiler
that has unwind tables enabled by default.
2009-06-25 Kazu Hirata <kazu@xxxxxxxxxxxxxxxx>
* sysdeps/i386/Makefile (CFLAGS-initfini.s): Add
-fno-asynchronous-unwind-tables and -fno-unwind-tables.
(CFLAGS-pt-initfini.s): New.
Index: sysdeps/i386/Makefile
===================================================================
--- sysdeps/i386/Makefile (revision 8603)
+++ sysdeps/i386/Makefile (working copy)
@@ -8,9 +8,13 @@
ifeq ($(subdir),csu)
# On i686 we must avoid generating the trampoline functions generated
# to get the GOT pointer.
-CFLAGS-initfini.s += -march=i386 -mtune=i386
+CFLAGS-initfini.s += -march=i386 -mtune=i386 -fno-asynchronous-unwind-tables -fno-unwind-tables
endif
+ifeq ($(subdir),nptl)
+CFLAGS-pt-initfini.s += -fno-asynchronous-unwind-tables -fno-unwind-tables
+endif
+
ifeq ($(subdir),gmon)
sysdep_routines += i386-mcount
endif
--
Joseph S. Myers
joseph@xxxxxxxxxxxxxxxx