From: Denis Khalikov Date: Fri, 3 Aug 2018 09:54:16 +0000 (+0300) Subject: [Sanitizers] Enable build with thumb frame pointer. X-Git-Tag: accepted/tizen/base/20181109.114834~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=55483242f0bcba1f86a14de545c4fc41d45e58a6;p=platform%2Fupstream%2Fgcc-contrib.git [Sanitizers] Enable build with thumb frame pointer. Change-Id: Ibdd7004dcf26febe92feba75d2ed31443c0719a9 --- 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