diff --git a/arm11/Makefile b/arm11/Makefile index 3528587..f0f8a48 100644 --- a/arm11/Makefile +++ b/arm11/Makefile @@ -11,7 +11,7 @@ INCLUDE := $(foreach dir,$(INCDIRS),-I"$(shell pwd)/$(dir)") ASFLAGS += $(SUBARCH) $(INCLUDE) CFLAGS += $(SUBARCH) $(INCLUDE) -flto -LDFLAGS += $(SUBARCH) -Wl,-Map,$(TARGET).map -flto +LDFLAGS += $(SUBARCH) -Wl,--use-blx,-Map,$(TARGET).map -flto include ../Makefile.common include ../Makefile.build diff --git a/arm9/Makefile b/arm9/Makefile index 0a5e2c5..c631b1a 100644 --- a/arm9/Makefile +++ b/arm9/Makefile @@ -11,7 +11,7 @@ INCLUDE := $(foreach dir,$(INCDIRS),-I"$(shell pwd)/$(dir)") ASFLAGS += $(SUBARCH) $(INCLUDE) CFLAGS += $(SUBARCH) $(INCLUDE) -fno-builtin-memcpy -flto -LDFLAGS += $(SUBARCH) -Wl,-Map,$(TARGET).map -flto +LDFLAGS += $(SUBARCH) -Wl,--use-blx,-Map,$(TARGET).map -flto include ../Makefile.common include ../Makefile.build