From 1b676cebe2fbce814b8379452f37148aed37d86c Mon Sep 17 00:00:00 2001 From: Tommy Murphy Date: Wed, 31 Jan 2024 11:35:46 +0000 Subject: [PATCH] Add -fdata-sections to compile flags - see https://github.com/cnlohr/ch32v003fun/issues/265 --- ch32v003fun/ch32v003fun.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch32v003fun/ch32v003fun.mk b/ch32v003fun/ch32v003fun.mk index f3c6a7cd..f2a3b87a 100644 --- a/ch32v003fun/ch32v003fun.mk +++ b/ch32v003fun/ch32v003fun.mk @@ -5,7 +5,7 @@ CH32V003FUN?=../../ch32v003fun MINICHLINK?=$(CH32V003FUN)/../minichlink CFLAGS+= \ - -g -Os -flto -ffunction-sections \ + -g -Os -flto -fdata-sections -ffunction-sections \ -static-libgcc \ -march=rv32ec \ -mabi=ilp32e \