diff options
Diffstat (limited to 'c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed.cfg')
-rw-r--r-- | c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed.cfg | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed.cfg b/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed.cfg index a5ed9c6799..6e7b32c001 100644 --- a/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed.cfg +++ b/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed.cfg @@ -9,6 +9,11 @@ RTEMS_CPU = arm CPU_CFLAGS = -march=armv7-m -mthumb CFLAGS_OPTIMIZE_V = -O2 -ggdb3 + +# Add CFLAGS and LDFLAGS for compiling and linking with per item sections +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections +LDFLAGS = -Wl,--gc-sections + BINEXT?=.bin # This defines the operations performed on the linked executable. # is currently required. |