forked from Imagelibrary/rtems
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user