Commit 1b1d4953 authored by David Brown's avatar David Brown Committed by David Brown
Browse files

FIH: Disable FIH labels on Apple targets

The symbols injected here cause some kind of poor interaction with the linker on
MacOS, which results in most of the code becoming hopelessly corrupt.  For now,
just disable these symbols on this target.

Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent 9cc8dac5
Loading
Loading
Loading
Loading
+2 −0
Changes for boot/bootutil/include/bootutil/fault_injection_hardening.h: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -278,6 +278,8 @@ void fih_cfi_decrement(void);
 */
#if defined(__ICCARM__)
#define FIH_LABEL(str, lin, cnt) __asm volatile ("FIH_LABEL_" str "_" #lin "_" #cnt "::" ::);
#elif defined(__APPLE__)
#define FIH_LABEL(str) do {} while (0)
#else
#define FIH_LABEL(str) __asm volatile ("FIH_LABEL_" str "_%=:" ::);
#endif