[Sanitizers] Enable build with thumb frame pointer. 37/189137/1
authorDenis Khalikov <d.khalikov@partner.samsung.com>
Fri, 3 Aug 2018 09:54:16 +0000 (12:54 +0300)
committerDenis Khalikov <d.khalikov@partner.samsung.com>
Thu, 13 Sep 2018 17:30:17 +0000 (20:30 +0300)
Change-Id: Ibdd7004dcf26febe92feba75d2ed31443c0719a9

packaging/gcc-contrib.spec

index 42ea2c4..b77812f 100644 (file)
@@ -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