From: Vyacheslav Barinov Date: Wed, 29 Apr 2015 07:14:14 +0000 (+0300) Subject: glibc must be built with unwind tables to prevent SIGSEGV in gcc unwinding X-Git-Tag: submit/tizen/20150430.093651^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F39%2F38839%2F1;p=platform%2Fupstream%2Fglibc.git glibc must be built with unwind tables to prevent SIGSEGV in gcc unwinding Some objects are forced to build with unwind tables by glibc build system to support exceptions and when some objects are built without them tables become malformed and cause SIGSEGV inside libgcc unwinding function. Change-Id: I8e59cca874dfc6c17c344bd3d972d3b7e0f0163a Signed-off-by: Vyacheslav Barinov --- diff --git a/packaging/glibc.spec b/packaging/glibc.spec index cf53efd..bd125cc 100644 --- a/packaging/glibc.spec +++ b/packaging/glibc.spec @@ -271,14 +271,7 @@ configure_and_build_glibc() { local addons="$1"; shift mkdir "cc-$dirname" cd "cc-$dirname" -%ifarch %arm aarch64 - # remove asynchronous-unwind-tables during configure as it causes - # some checks to fail spuriously on arm - conf_cflags="${cflags/-fasynchronous-unwind-tables/}" - conf_cflags="${conf_cflags/-funwind-tables/}" -%else - conf_cflags="$cflags" -%endif + conf_cflags="$cflags -fasynchronous-unwind-tables" profile="--disable-profile" %if %{build_profile}