diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-10-24 18:37:17 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-10-24 18:42:39 -0500 |
commit | 24a6943c66d64dd16f79eeeaf88e3af30ed6fb36 (patch) | |
tree | 94374e5197b5ff567799de473c10fba1dfc5f66f /c/src/lib/libbsp/sparc/erc32 | |
parent | bsp/stm32f4: Bugfix for I2C driver. (diff) | |
download | rtems-24a6943c66d64dd16f79eeeaf88e3af30ed6fb36.tar.bz2 |
sparc all BSPs: Use function and data sections
This reduces the size of the RTEMS tests on average about 45%.
Diffstat (limited to 'c/src/lib/libbsp/sparc/erc32')
-rw-r--r-- | c/src/lib/libbsp/sparc/erc32/make/custom/erc32.cfg | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/erc32/make/custom/erc32.cfg b/c/src/lib/libbsp/sparc/erc32/make/custom/erc32.cfg index 3879d3dc73..28593726a7 100644 --- a/c/src/lib/libbsp/sparc/erc32/make/custom/erc32.cfg +++ b/c/src/lib/libbsp/sparc/erc32/make/custom/erc32.cfg @@ -13,3 +13,6 @@ CPU_CFLAGS = -mcpu=cypress # optimize flag: typically -O2 CFLAGS_OPTIMIZE_V = -O2 -g +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +LDFLAGS = -Wl,--gc-sections |