[PATCH] Use linker garbage collection for BSP based builds
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Apr 14 06:57:28 UTC 2020
Close #3944.
---
rtems/config/rtems-bsp.cfg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rtems/config/rtems-bsp.cfg b/rtems/config/rtems-bsp.cfg
index d50615e..91296b1 100644
--- a/rtems/config/rtems-bsp.cfg
+++ b/rtems/config/rtems-bsp.cfg
@@ -231,7 +231,7 @@
# The linker flags need to include the machine options for the BSP.
#
%define mflags_filter awk '{for (i=1;i<NF;++i) if ($i ~ /\-m/) printf("%s ",$i);}'
-%define rtems_bsp_ldflags %{rtems_bsp_ldflags} $(echo "%{rtems_bsp_cflags}" | %{mflags_filter})
+%define rtems_bsp_ldflags %{rtems_bsp_ldflags} $(echo "%{rtems_bsp_cflags}" | %{mflags_filter}) -Wl,--gc-sections
#
# Map to names used for cross compiling.
--
2.16.4
More information about the devel
mailing list