Skip to content

Commit f359134

Browse files
committed
Added -ffunction-sections -fdata-sections to CFLAGS to group unused
symbols
1 parent f1d983c commit f359134

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
include tools/config.mk
99

1010
## Initializers
11-
CFLAGS:=-D__WOLFBOOT -DWOLFBOOT_VERSION=$(WOLFBOOT_VERSION)UL
11+
CFLAGS:=-D__WOLFBOOT -DWOLFBOOT_VERSION=$(WOLFBOOT_VERSION)UL -ffunction-sections -fdata-sections
1212
LSCRIPT:=config/target.ld
1313
LDFLAGS:=-T $(LSCRIPT) -Wl,-gc-sections -Wl,-Map=wolfboot.map -ffreestanding -nostartfiles
1414
OBJS:= \

0 commit comments

Comments
 (0)