Commit e32a268b authored by Rob Herring's avatar Rob Herring Committed by Tom Rini

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
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment