Skip to content
Snippets Groups Projects
Commit e32a268b authored by Rob Herring's avatar Rob Herring Committed by Tom Rini
Browse files

examples: enable gc-sections option


This fixes building time.c when unreferenced functions are added.

Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
parent f232950f
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ all: $(obj).depend $(OUTPUT)
#########################################################################
$(OUTPUT): $(OBJS)
$(LD) -Ttext $(LOAD_ADDR) -o $@ $^ $(PLATFORM_LIBS)
$(LD) --gc-sections -Ttext $(LOAD_ADDR) -o $@ $^ $(PLATFORM_LIBS)
$(OBJCOPY) -O binary $@ $(OUTPUT).bin 2>/dev/null
# Rule to build generic library C files
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment