This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Commit: MSP430: Fix typo in linker scripts
- From: Nick Clifton <nickc at redhat dot com>
- To: newlib at sourceware dot org
- Date: Thu, 07 Apr 2016 12:12:47 +0100
- Subject: Commit: MSP430: Fix typo in linker scripts
- Authentication-results: sourceware.org; auth=none
Hi Guys,
I am applying the patch below to fix a typo in the example MSP430
linker scripts in the libgloss/msp430 directory. The typo
unfortunately meant that MSP430 attributes were not being merged
properly by the linker, resulting in corrupt attributes in the final
executable.
Cheers
Nick
diff --git a/libgloss/msp430/msp430-sim.ld b/libgloss/msp430/msp430-sim.ld
index 62ea232..2831274 100644
--- a/libgloss/msp430/msp430-sim.ld
+++ b/libgloss/msp430/msp430-sim.ld
@@ -228,7 +228,7 @@ SECTIONS
/* The rest are all not normally part of the runtime image. */
- .MP430.attributes 0 :
+ .MSP430.attributes 0 :
{
KEEP (*(.MSP430.attributes))
KEEP (*(.gnu.attributes))
diff --git a/libgloss/msp430/msp430xl-sim.ld b/libgloss/msp430/msp430xl-sim.ld
index 52b139b..cc451b8 100644
--- a/libgloss/msp430/msp430xl-sim.ld
+++ b/libgloss/msp430/msp430xl-sim.ld
@@ -406,7 +406,7 @@ SECTIONS
/* The rest are all not normally part of the runtime image. */
- .MP430.attributes 0 :
+ .MSP430.attributes 0 :
{
KEEP (*(.MSP430.attributes))
KEEP (*(.gnu.attributes))