Skip to content

Commit

Permalink
examples: enable gc-sections option
Browse files Browse the repository at this point in the history
This fixes building time.c when unreferenced functions are added.

Signed-off-by: Rob Herring <[email protected]>
  • Loading branch information
Rob Herring authored and trini committed Nov 4, 2013
1 parent f232950 commit e32a268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e32a268

Please sign in to comment.