[scripts] Use --gc-sections linker flag even when building with LTO. This saves more than 1 KB on a N0110 build here.

This commit is contained in:
Lionel Debroux
2019-09-07 22:44:12 +02:00
committed by Ecco
parent a03967f215
commit 1cf0bfbea9

View File

@@ -20,7 +20,7 @@ endif
ifeq ($(LTO),1)
# Use link-time optimization if LTO=1
SFLAGS += -flto
SFLAGS += -flto -Wl,--gc-sections
else
# Otherwise, just get rid of unused symbols
LDFLAGS += -Wl,--gc-sections