summaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-02-27 11:15:36 +0000
committerNick Clifton <nickc@redhat.com>2013-02-27 11:15:36 +0000
commit517794c88d7807d88b0afb9deab4133c3483e5fd (patch)
treee0cf91b11644aa4cce15f8861f64a05c8fa29b02 /ld/scripttempl
parenta6cbd76140af1ed6c5da0b572d0edffd710f021e (diff)
downloadbinutils-redhat-517794c88d7807d88b0afb9deab4133c3483e5fd.tar.gz
* scripttempl/elf32msp430.sc: Add placement of .data.* sections.
Add alignment of .bss section. * scripttempl/elf32msp430_3.sc: Likewise.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/elf32msp430.sc3
-rw-r--r--ld/scripttempl/elf32msp430_3.sc3
2 files changed, 5 insertions, 1 deletions
diff --git a/ld/scripttempl/elf32msp430.sc b/ld/scripttempl/elf32msp430.sc
index beabd89a2b..69c22ba657 100644
--- a/ld/scripttempl/elf32msp430.sc
+++ b/ld/scripttempl/elf32msp430.sc
@@ -144,7 +144,7 @@ SECTIONS
${RELOCATING+ PROVIDE (__data_start = .) ; }
${RELOCATING+. = ALIGN(2);}
*(.data)
- ${RELOCATING+. = ALIGN(2);}
+ *(.data.*)
*(.gnu.linkonce.d*)
${RELOCATING+. = ALIGN(2);}
${RELOCATING+ _edata = . ; }
@@ -177,6 +177,7 @@ SECTIONS
.bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
{
+ ${RELOCATING+. = ALIGN(2);}
${RELOCATING+ PROVIDE (__bss_start = .) ; }
*(.bss)
*(COMMON)
diff --git a/ld/scripttempl/elf32msp430_3.sc b/ld/scripttempl/elf32msp430_3.sc
index 0ddcf0f491..4e2152f5ec 100644
--- a/ld/scripttempl/elf32msp430_3.sc
+++ b/ld/scripttempl/elf32msp430_3.sc
@@ -118,7 +118,9 @@ SECTIONS
.data ${RELOCATING-0} : ${RELOCATING+AT (ADDR (.text) + SIZEOF (.text))}
{
${RELOCATING+ PROVIDE (__data_start = .) ; }
+ ${RELOCATING+. = ALIGN(2);}
*(.data)
+ *(.data.*)
*(.gnu.linkonce.d*)
${RELOCATING+. = ALIGN(2);}
${RELOCATING+ _edata = . ; }
@@ -126,6 +128,7 @@ SECTIONS
.bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
{
+ ${RELOCATING+. = ALIGN(2);}
${RELOCATING+ PROVIDE (__bss_start = .) ; }
*(.bss)
*(COMMON)