Commit e32a268b6f96b5b4818e9c33d18cee98c0c31f7c
Committed by
Tom Rini
1 parent
f232950f82
Exists in
master
and in
50 other branches
examples: enable gc-sections option
This fixes building time.c when unreferenced functions are added. Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
examples/api/Makefile
... | ... | @@ -53,7 +53,7 @@ |
53 | 53 | ######################################################################### |
54 | 54 | |
55 | 55 | $(OUTPUT): $(OBJS) |
56 | - $(LD) -Ttext $(LOAD_ADDR) -o $@ $^ $(PLATFORM_LIBS) | |
56 | + $(LD) --gc-sections -Ttext $(LOAD_ADDR) -o $@ $^ $(PLATFORM_LIBS) | |
57 | 57 | $(OBJCOPY) -O binary $@ $(OUTPUT).bin 2>/dev/null |
58 | 58 | |
59 | 59 | # Rule to build generic library C files |