mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[build/device] Add a comment about gc-sections
This commit is contained in:
@@ -20,12 +20,12 @@ endif
|
||||
|
||||
ifeq ($(LTO),1)
|
||||
# Use link-time optimization if LTO=1
|
||||
SFLAGS += -flto -Wl,--gc-sections
|
||||
else
|
||||
# Otherwise, just get rid of unused symbols
|
||||
LDFLAGS += -Wl,--gc-sections
|
||||
SFLAGS += -flto
|
||||
endif
|
||||
|
||||
# Get rid of unused symbols. This is also useful even if LTO=1.
|
||||
LDFLAGS += -Wl,--gc-sections
|
||||
|
||||
LDFLAGS += $(SFLAGS) -lgcc -Wl,-T,$(LDSCRIPT)
|
||||
|
||||
# To debug linker scripts, add the following line
|
||||
|
||||
Reference in New Issue
Block a user