This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

MSP430: Fix problem initialising .upper.bss section


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]