From 727f7031022464188dc580e84b3d232c21b39d10 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 27 Feb 2013 11:15:39 +0000 Subject: * scripttempl/elf32msp430.sc: Add placement of .data.* sections. Add alignment of .bss section. * scripttempl/elf32msp430_3.sc: Likewise. --- ld/ChangeLog | 6 ++++++ ld/scripttempl/elf32msp430.sc | 3 ++- ld/scripttempl/elf32msp430_3.sc | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) (limited to 'ld') diff --git a/ld/ChangeLog b/ld/ChangeLog index b9d65e2..8b15d2a 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2013-02-27 Nick Clifton + + * scripttempl/elf32msp430.sc: Add placement of .data.* sections. + Add alignment of .bss section. + * scripttempl/elf32msp430_3.sc: Likewise. + 2013-02-26 Nick Clifton PR ld/15188 diff --git a/ld/scripttempl/elf32msp430.sc b/ld/scripttempl/elf32msp430.sc index beabd89..69c22ba 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 0ddcf0f..4e2152f 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) -- cgit v1.1