glibc must be built with unwind tables to prevent SIGSEGV in gcc unwinding 39/38839/1 submit/tizen/20150430.093651
authorVyacheslav Barinov <v.barinov@samsung.com>
Wed, 29 Apr 2015 07:14:14 +0000 (10:14 +0300)
committerVyacheslav Barinov <v.barinov@samsung.com>
Wed, 29 Apr 2015 07:18:29 +0000 (10:18 +0300)
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 <v.barinov@samsung.com>
packaging/glibc.spec

index cf53efd..bd125cc 100644 (file)
@@ -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}