From: Rob Herring Date: Fri, 4 Oct 2013 15:22:40 +0000 (-0500) Subject: examples: enable gc-sections option X-Git-Tag: v2014.01-rc1~128 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e32a268b6f96b5b4818e9c33d18cee98c0c31f7c;p=platform%2Fkernel%2Fu-boot.git examples: enable gc-sections option This fixes building time.c when unreferenced functions are added. Signed-off-by: Rob Herring --- diff --git a/examples/api/Makefile b/examples/api/Makefile index 4d68340..33cc91b 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