forked from Mirror/GodMode9
use --use-blx
linker argument
makes firm about 500 bytes smaller for free
This commit is contained in:
parent
f611b31c0c
commit
658c9b491c
@ -11,7 +11,7 @@ INCLUDE := $(foreach dir,$(INCDIRS),-I"$(shell pwd)/$(dir)")
|
|||||||
|
|
||||||
ASFLAGS += $(SUBARCH) $(INCLUDE)
|
ASFLAGS += $(SUBARCH) $(INCLUDE)
|
||||||
CFLAGS += $(SUBARCH) $(INCLUDE) -flto
|
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.common
|
||||||
include ../Makefile.build
|
include ../Makefile.build
|
||||||
|
@ -11,7 +11,7 @@ INCLUDE := $(foreach dir,$(INCDIRS),-I"$(shell pwd)/$(dir)")
|
|||||||
|
|
||||||
ASFLAGS += $(SUBARCH) $(INCLUDE)
|
ASFLAGS += $(SUBARCH) $(INCLUDE)
|
||||||
CFLAGS += $(SUBARCH) $(INCLUDE) -fno-builtin-memcpy -flto
|
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.common
|
||||||
include ../Makefile.build
|
include ../Makefile.build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user