From 0d832c8ea736150cb246f8988b2f9f78bf58de5e Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 26 May 2016 11:43:38 +0100 Subject: Provide the __bssstart and __bsssize symbols needed by the MSP430's crt0.o code. PR target/20134 * scripttempl/elf32msp430.sc (.bss): Provide __bssstart and __bsssize. * scripttempl/elf32msp430_3.sc (.bss): Likewise. --- ld/scripttempl/elf32msp430_3.sc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ld/scripttempl/elf32msp430_3.sc') diff --git a/ld/scripttempl/elf32msp430_3.sc b/ld/scripttempl/elf32msp430_3.sc index 6c4ac15..1e1a68f 100644 --- a/ld/scripttempl/elf32msp430_3.sc +++ b/ld/scripttempl/elf32msp430_3.sc @@ -154,10 +154,12 @@ SECTIONS { ${RELOCATING+. = ALIGN(2);} ${RELOCATING+ PROVIDE (__bss_start = .) ; } + ${RELOCATING+ PROVIDE (__bssstart = .); } *(.bss) *(COMMON) ${RELOCATING+ PROVIDE (__bss_end = .) ; } } ${RELOCATING+ > data} + ${RELOCATING+ PROVIDE (__bsssize = SIZEOF(.bss)); } .noinit ${RELOCATING+ SIZEOF(.bss) + ADDR(.bss)} : { -- cgit v1.1