summaryrefslogtreecommitdiffstats
path: root/examples/api/Makefile
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2013-10-04 10:22:40 -0500
committerTom Rini <trini@ti.com>2013-11-04 11:06:16 -0500
commite32a268b6f96b5b4818e9c33d18cee98c0c31f7c (patch)
tree148ef7685d1ec720f2128e7cd6d5a20db01f57fc /examples/api/Makefile
parentf232950f82d11d411ad29663d98851ac02fd29fb (diff)
downloadblackbird-obmc-uboot-e32a268b6f96b5b4818e9c33d18cee98c0c31f7c.tar.gz
blackbird-obmc-uboot-e32a268b6f96b5b4818e9c33d18cee98c0c31f7c.zip
examples: enable gc-sections option
This fixes building time.c when unreferenced functions are added. Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'examples/api/Makefile')
-rw-r--r--examples/api/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/api/Makefile b/examples/api/Makefile
index 4d683400e1..33cc91ba71 100644
--- a/examples/api/Makefile
+++ b/examples/api/Makefile
@@ -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
OpenPOWER on IntegriCloud