aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/elf32msp430.sc
diff options
context:
space:
mode:
Diffstat (limited to 'ld/scripttempl/elf32msp430.sc')
-rw-r--r--ld/scripttempl/elf32msp430.sc25
1 files changed, 14 insertions, 11 deletions
diff --git a/ld/scripttempl/elf32msp430.sc b/ld/scripttempl/elf32msp430.sc
index 7d5391d..6edc908 100644
--- a/ld/scripttempl/elf32msp430.sc
+++ b/ld/scripttempl/elf32msp430.sc
@@ -137,9 +137,9 @@ SECTIONS
.rela.plt ${RELOCATING-0} : { *(.rela.plt) }
/* Internal text space. */
- .text ${RELOCATING-0} : ${RELOCATING+ALIGN(2)}
+ .text ${RELOCATING-0} :
{
- ${RELOCATING+
+ ${RELOCATING+. = ALIGN(2);
*(SORT_NONE(.init))
*(SORT_NONE(.init0)) /* Start here after reset. */
*(SORT_NONE(.init1))
@@ -189,9 +189,9 @@ SECTIONS
_etext = .;}
} ${RELOCATING+ > text}
- .rodata ${RELOCATING-0} : ${RELOCATING+ALIGN(2)}
+ .rodata ${RELOCATING-0} :
{
- ${RELOCATING+
+ ${RELOCATING+. = ALIGN(2);
*(.lower.rodata.* .lower.rodata)
. = ALIGN(2);
@@ -254,11 +254,11 @@ SECTIONS
${RELOCATING+ _vectors_end = . ; }
} ${RELOCATING+ > vectors}
- .data ${RELOCATING-0} : ${RELOCATING+ALIGN(2)}
+ .data ${RELOCATING-0} :
{
- ${RELOCATING+
- PROVIDE (__data_start = .) ;
- PROVIDE (__datastart = .) ;
+ ${RELOCATING+ PROVIDE (__data_start = .) ; }
+ ${RELOCATING+ PROVIDE (__datastart = .) ; }
+ ${RELOCATING+. = ALIGN(2);
KEEP (*(.jcr))
*(.data.rel.ro.local) *(.data.rel.ro*)
@@ -287,8 +287,9 @@ SECTIONS
${RELOCATING+__romdatastart = LOADADDR(.data);
__romdatacopysize = SIZEOF(.data);}
- .bss ${RELOCATING-0}${RELOCATING+ALIGN(SIZEOF(.data) + ADDR(.data), 2)} :
+ .bss ${RELOCATING-0}${RELOCATING+SIZEOF(.data) + ADDR(.data)} :
{
+ ${RELOCATING+. = ALIGN(2);}
${RELOCATING+ PROVIDE (__bss_start = .); }
${RELOCATING+ PROVIDE (__bssstart = .);
*(.lower.bss.* .lower.bss)
@@ -303,8 +304,9 @@ SECTIONS
/* This section contains data that is not initialized during load,
or during the application's initialization sequence. */
- .noinit ${RELOCATING-0}${RELOCATING+ALIGN(SIZEOF(.bss) + ADDR(.bss), 2)} :
+ .noinit ${RELOCATING-0}${RELOCATING+SIZEOF(.bss) + ADDR(.bss)} :
{
+ ${RELOCATING+. = ALIGN(2);}
${RELOCATING+ PROVIDE (__noinit_start = .) ; }
*(.noinit${RELOCATING+ .noinit.* .gnu.linkonce.n.*})
${RELOCATING+. = ALIGN(2);}
@@ -313,8 +315,9 @@ SECTIONS
/* This section contains data that is initialized during load,
but not during the application's initialization sequence. */
- .persistent ${RELOCATING-0}${RELOCATING+ALIGN(SIZEOF(.noinit) + ADDR(.noinit), 2)} :
+ .persistent ${RELOCATING-0}${RELOCATING+SIZEOF(.noinit) + ADDR(.noinit)} :
{
+ ${RELOCATING+. = ALIGN(2);}
${RELOCATING+ PROVIDE (__persistent_start = .) ; }
*(.persistent${RELOCATING+ .persistent.* .gnu.linkonce.p.*})
${RELOCATING+. = ALIGN(2);}