Changed code region to any

This commit is contained in:
Antonio Lignan 2014-11-03 22:40:51 +01:00
parent a50bc08adc
commit 4cc070944f

View File

@ -151,7 +151,7 @@ ifneq (,$(findstring 4.7.,$(shell msp430-gcc -dumpversion)))
ifdef CPU_HAS_MSP430X ifdef CPU_HAS_MSP430X
TARGET_MEMORY_MODEL ?= medium TARGET_MEMORY_MODEL ?= medium
CFLAGS += -mmemory-model=$(TARGET_MEMORY_MODEL) CFLAGS += -mmemory-model=$(TARGET_MEMORY_MODEL)
CFLAGS += -ffunction-sections -fdata-sections -mcode-region=far CFLAGS += -ffunction-sections -fdata-sections -mcode-region=any
LDFLAGS += -mmemory-model=$(TARGET_MEMORY_MODEL) -Wl,-gc-sections LDFLAGS += -mmemory-model=$(TARGET_MEMORY_MODEL) -Wl,-gc-sections
endif endif
endif endif