sparc all BSPs: Use function and data sections

This reduces the size of the RTEMS tests on average about 45%.
This commit is contained in:
Joel Sherrill
2013-10-24 18:37:17 -05:00
parent 0255beaf17
commit 24a6943c66
4 changed files with 18 additions and 8 deletions

View File

@@ -13,3 +13,6 @@ CPU_CFLAGS = -mcpu=cypress -msoft-float
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
LDFLAGS = -Wl,--gc-sections