From 55483242f0bcba1f86a14de545c4fc41d45e58a6 Mon Sep 17 00:00:00 2001 From: Denis Khalikov Date: Fri, 3 Aug 2018 12:54:16 +0300 Subject: [PATCH] [Sanitizers] Enable build with thumb frame pointer. Change-Id: Ibdd7004dcf26febe92feba75d2ed31443c0719a9 --- packaging/gcc-contrib.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/gcc-contrib.spec b/packaging/gcc-contrib.spec index 42ea2c4..b77812f 100644 --- a/packaging/gcc-contrib.spec +++ b/packaging/gcc-contrib.spec @@ -39,8 +39,8 @@ %define libsubdir %{libdir}/gcc/%{target_arch}/%{version} %ifarch armv7l -%define asan_force_options -fsanitize-recover=address -fsanitize=address -marm -Wa,-mimplicit-it=arm -fno-omit-frame-pointer -Wp,-U_FORTIFY_SOURCE -Wl,--as-needed -ldl -lpthread -%define lsan_force_options -fsanitize=leak -marm -Wa,-mimplicit-it=arm -fno-omit-frame-pointer -Wp,-U_FORTIFY_SOURCE -Wl,--as-needed -ldl -lpthread +%define asan_force_options -fsanitize-recover=address -fsanitize=address -mthumb -Wa,-mimplicit-it=thumb -mthumb-fp -fno-omit-frame-pointer -Wp,-U_FORTIFY_SOURCE -Wl,--as-needed -ldl -lpthread +%define lsan_force_options -fsanitize=leak -mthumb -Wa,-mimplicit-it=thumb -mthumb-fp -fno-omit-frame-pointer -Wp,-U_FORTIFY_SOURCE -Wl,--as-needed -ldl -lpthread %else %define asan_force_options -fsanitize-recover=address -fsanitize=address -fno-omit-frame-pointer -Wp,-U_FORTIFY_SOURCE -Wl,--as-needed -ldl -lpthread %define lsan_force_options -fsanitize=leak -fno-omit-frame-pointer -Wp,-U_FORTIFY_SOURCE -Wl,--as-needed -ldl -lpthread -- 2.7.4