From 658c9b491c9c7c54d1059c9fa1592bf23e481b58 Mon Sep 17 00:00:00 2001 From: aspargas2 Date: Sat, 16 Apr 2022 16:10:07 -0400 Subject: [PATCH] use `--use-blx` linker argument makes firm about 500 bytes smaller for free --- arm11/Makefile | 2 +- arm9/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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