Change-Id: Ib433b7163a1541134ed7bbf4b446a70fb5a2f34a
%{?asan:
%gcc_unforce_options
%ifarch armv7l
-RPM_OPT_FLAGS="$RPM_OPT_FLAGS -marm -Wa,-mimplicit-it=arm -fno-omit-frame-pointer"
+RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mthumb -mthumb-fp -Wa,-mimplicit-it=thumb -fno-omit-frame-pointer"
%endif
}
%{?esan:%gcc_unforce_options}
%{?asan:
%gcc_unforce_options
%ifarch armv7l
-RPM_OPT_FLAGS="$RPM_OPT_FLAGS -marm -Wa,-mimplicit-it=arm -fno-omit-frame-pointer"
+RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mthumb -mthumb-fp -Wa,-mimplicit-it=thumb -fno-omit-frame-pointer"
%endif
}
%{?esan:%gcc_unforce_options}
%{?asan:
%gcc_unforce_options
%ifarch armv7l
-RPM_OPT_FLAGS="$RPM_OPT_FLAGS -marm -Wa,-mimplicit-it=arm -fno-omit-frame-pointer"
+RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mthumb -mthumb-fp -Wa,-mimplicit-it=thumb -fno-omit-frame-pointer"
%endif
}
%{?esan:%gcc_unforce_options}
%{?asan:
%gcc_unforce_options
%ifarch armv7l
-RPM_OPT_FLAGS="$RPM_OPT_FLAGS -marm -Wa,-mimplicit-it=arm -fno-omit-frame-pointer"
+RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mthumb -mthumb-fp -Wa,-mimplicit-it=thumb -fno-omit-frame-pointer"
%endif
}
%{?esan:%gcc_unforce_options}