aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/msp430
diff options
context:
space:
mode:
authorJozef Lawrynowicz <jozef.l@somniumtech.com>2017-08-30 09:33:56 +0000
committerNick Clifton <nickc@gcc.gnu.org>2017-08-30 09:33:56 +0000
commit39459216fcf68c21e692e9a18797e3dc764b023f (patch)
treed309dcf926d9abcf358617829f064938e3a7d9bb /gcc/config/msp430
parent36ef8e6fd289536162414baedf3ba9166850ceb2 (diff)
downloadgcc-39459216fcf68c21e692e9a18797e3dc764b023f.zip
gcc-39459216fcf68c21e692e9a18797e3dc764b023f.tar.gz
gcc-39459216fcf68c21e692e9a18797e3dc764b023f.tar.bz2
msp430.h: Pass -mcode/data-region to the linker and -mdata-region to the assembler.
* gcc/config/msp430/msp430.h: Pass -mcode/data-region to the linker and -mdata-region to the assembler. From-SVN: r251449
Diffstat (limited to 'gcc/config/msp430')
-rw-r--r--gcc/config/msp430/msp430.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/config/msp430/msp430.h b/gcc/config/msp430/msp430.h
index 2bff249..e95106d 100644
--- a/gcc/config/msp430/msp430.h
+++ b/gcc/config/msp430/msp430.h
@@ -58,12 +58,14 @@ extern bool msp430x;
"%{!msim:-md} %{msim:%{mlarge:-md}} " /* Copy data from ROM to RAM if necessary. */ \
"%{msilicon-errata=*:-msilicon-errata=%*} " /* Pass on -msilicon-errata. */ \
"%{msilicon-errata-warn=*:-msilicon-errata-warn=%*} " /* Pass on -msilicon-errata-warn. */ \
- "%{ffunction-sections:-gdwarf-sections} " /* If function sections are being created then create DWARF line number sections as well. */
+ "%{ffunction-sections:-gdwarf-sections} " /* If function sections are being created then create DWARF line number sections as well. */ \
+ "%{mdata-region=*:-mdata-region=%*} " /* Pass on -mdata-region. */
/* Enable linker section garbage collection by default, unless we
are creating a relocatable binary (gc does not work) or debugging
is enabled (the GDB testsuite relies upon unused entities not being deleted). */
-#define LINK_SPEC "%{mrelax:--relax} %{mlarge:%{!r:%{!g:--gc-sections}}}"
+#define LINK_SPEC "%{mrelax:--relax} %{mlarge:%{!r:%{!g:--gc-sections}}} " \
+ "%{mcode-region=*:--code-region=%*} %{mdata-region=*:--data-region=%*}"
extern const char * msp430_select_hwmult_lib (int, const char **);
# define EXTRA_SPEC_FUNCTIONS \