From: Keith Packard Date: Sun, 25 Sep 2022 20:55:04 +0000 (-0700) Subject: altos: Use -ffunction-sections -fdata-sections X-Git-Tag: 1.9.13~1^2~26^2~63 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=643a1f736d2e57c577458d0e4d2948718d90b301 altos: Use -ffunction-sections -fdata-sections This allows the linker to discard unused functions. Signed-off-by: Keith Packard --- diff --git a/src/Makefile.defs b/src/Makefile.defs index d9b71997..f9387b07 100644 --- a/src/Makefile.defs +++ b/src/Makefile.defs @@ -23,6 +23,7 @@ OPT=-Os -Wl,-Map=$(PROGNAME)-$(VERSION).map PICOLIBC_CFLAGS= \ -specs=picolibc.specs \ + -Wl,--gc-sections -ffunction-sections -fdata-sections \ $(PICOLIBC_PRINTF_CFLAGS) AO_CFLAGS=\