nemu: keep the binary code minimal

This commit is contained in:
Zihao Yu 2020-10-10 21:51:49 +08:00
parent 043972850a
commit a1c8ab14d1

View file

@ -10,6 +10,7 @@ AM_SRCS := nemu/trm.c \
nemu/mpe.c \
nemu/isa/$(ISA)/boot/start.S
CFLAGS += -fdata-sections -ffunction-sections
LDFLAGS += -L $(AM_HOME)/am/src/nemu/scripts
LDFLAGS += -T $(AM_HOME)/am/src/nemu/isa/$(ISA)/boot/loader.ld
LDFLAGS += --gc-sections -e _start