mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
examples: enable gc-sections option
This fixes building time.c when unreferenced functions are added. Signed-off-by: Rob Herring <rob.herring@calxeda.com>
This commit is contained in:
parent
f232950f82
commit
e32a268b6f
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ all: $(obj).depend $(OUTPUT)
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|
||||||
$(OUTPUT): $(OBJS)
|
$(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
|
$(OBJCOPY) -O binary $@ $(OUTPUT).bin 2>/dev/null
|
||||||
|
|
||||||
# Rule to build generic library C files
|
# Rule to build generic library C files
|
||||||
|
|
Loading…
Reference in a new issue