nemu: keep the binary code minimal
This commit is contained in:
parent
043972850a
commit
a1c8ab14d1
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue