summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--qemu-arm/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/qemu-arm/Makefile b/qemu-arm/Makefile
index 31ba6baa26..d09282a1e8 100644
--- a/qemu-arm/Makefile
+++ b/qemu-arm/Makefile
@@ -53,6 +53,9 @@ OBJ_TEST += $(addprefix $(BUILD)/, $(SRC_TEST_C:.c=.o))
OBJ_TEST += $(addprefix $(BUILD)/, $(SRC_S:.s=.o))
OBJ_TEST += $(BUILD)/tinytest.o
+# we can't use LTO for nlrthumb.c because it contains inline assembler
+$(PY_BUILD)/nlrthumb.o: CFLAGS += -fno-lto
+
all: run
run: $(BUILD)/firmware.elf