This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
MSP430: Fix problem initialising .upper.bss section
- From: Nick Clifton <nickc at redhat dot com>
- To: newlib at sourceware dot org
- Cc: binutils at sourceware dot org
- Date: Mon, 23 Nov 2015 09:00:05 +0000
- Subject: MSP430: Fix problem initialising .upper.bss section
- Authentication-results: sourceware.org; auth=none
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