MSP430: Fix problem initialising .upper.bss section
Nick Clifton
nickc@redhat.com
Mon Nov 23 15:03:00 GMT 2015
Hi Guys,
I am checking in the patch below to fix a problem initialising the
MSP430's .upper.bss section. I forgot to include a definition of the
__high_bssisze symbol in the linker script, and without the code in
crt0.S will not fill the section with zero bytes.
Cheers
Nick
libgloss/ChangeLog
2015-11-23 Nick Clifton <nickc@redhat.com>
* msp430/msp430xl-sim.ld (__high_bsssize): Define.
diff --git a/libgloss/msp430/msp430xl-sim.ld b/libgloss/msp430/msp430xl-sim.ld
index 71e4543..0cd9d3f 100644
--- a/libgloss/msp430/msp430xl-sim.ld
+++ b/libgloss/msp430/msp430xl-sim.ld
@@ -317,6 +317,7 @@ SECTIONS
. = ALIGN(2);
__high_bssend = .;
} > HIFRAM
+ PROVIDE (__high_bsssize = SIZEOF(.upper.bss));
/* We create this section so that "end" will always be in the
HIFRAM region (matching .stack below), even if the .upper.bss
More information about the Newlib
mailing list