summaryrefslogtreecommitdiff
path: root/ld/scripttempl/elf32msp430.sc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-02-27 11:15:39 +0000
committerNick Clifton <nickc@redhat.com>2013-02-27 11:15:39 +0000
commit727f7031022464188dc580e84b3d232c21b39d10 (patch)
tree481fe4a8cefc04f33a3a475ed96f7c3bb865c23a /ld/scripttempl/elf32msp430.sc
parentc7570fcd46b38a4a5800120c5cefa57aea0b5c87 (diff)
downloadbinutils-gdb-727f7031022464188dc580e84b3d232c21b39d10.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/elf32msp430.sc')
-rw-r--r--ld/scripttempl/elf32msp430.sc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/scripttempl/elf32msp430.sc b/ld/scripttempl/elf32msp430.sc
index beabd89a2b6..69c22ba6572 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)