aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/elf32msp430_3.sc
diff options
context:
space:
mode:
Diffstat (limited to 'ld/scripttempl/elf32msp430_3.sc')
-rw-r--r--ld/scripttempl/elf32msp430_3.sc11
1 files changed, 9 insertions, 2 deletions
diff --git a/ld/scripttempl/elf32msp430_3.sc b/ld/scripttempl/elf32msp430_3.sc
index b5b4ec9..55ae74c 100644
--- a/ld/scripttempl/elf32msp430_3.sc
+++ b/ld/scripttempl/elf32msp430_3.sc
@@ -154,7 +154,6 @@ SECTIONS
*(.bss)
*(COMMON)
${RELOCATING+ PROVIDE (__bss_end = .) ; }
- ${RELOCATING+ _end = . ; }
} ${RELOCATING+ > data}
.noinit ${RELOCATING+ SIZEOF(.bss) + ADDR(.bss)} :
@@ -163,9 +162,17 @@ SECTIONS
*(.noinit)
*(COMMON)
${RELOCATING+ PROVIDE (__noinit_end = .) ; }
- ${RELOCATING+ _end = . ; }
} ${RELOCATING+ > data}
+ .persistent ${RELOCATING+ SIZEOF(.noinit) + ADDR(.noinit)} :
+ {
+ ${RELOCATING+ PROVIDE (__persistent_start = .) ; }
+ *(.persistent)
+ ${RELOCATING+ PROVIDE (__persistent_end = .) ; }
+ } ${RELOCATING+ > data}
+
+ ${RELOCATING+ _end = . ;}
+
.vectors ${RELOCATING-0}:
{
${RELOCATING+ PROVIDE (__vectors_start = .) ; }