Commit: MSP430: Fix typo in MSP430 attribute section name

Nick Clifton nickc@redhat.com
Thu Apr 7 11:09:00 GMT 2016
Hi Guys,

  I am checking in the patch below to fix a typo in the naming of the
  MSP430 attribute section in the default MSP430 linker scripts.  The
  typo unfortunately meant the MSP430 attributes were not being merged
  correctly, which resulting in corrupt attributes in linked
  executables.

Cheers
  Nick

2016-04-07  Nick Clifton  <nickc@redhat.com>

	* scripttempl/elf32msp430.sc (.MSP430.attributes): Fix typo in
	section name.
	* scripttempl/elf32msp430_3.sc (.MSP430.attributes): Likewise.

diff --git a/ld/scripttempl/elf32msp430.sc b/ld/scripttempl/elf32msp430.sc
index 4650885..b0a6624 100644
--- a/ld/scripttempl/elf32msp430.sc
+++ b/ld/scripttempl/elf32msp430.sc
@@ -316,7 +316,7 @@ EOF
 source $srcdir/scripttempl/DWARF.sc
 
 cat <<EOF
-  .MP430.attributes 0 :
+  .MSP430.attributes 0 :
   {
     KEEP (*(.MSP430.attributes))
     KEEP (*(.gnu.attributes))
diff --git a/ld/scripttempl/elf32msp430_3.sc b/ld/scripttempl/elf32msp430_3.sc
index 7ad04e1..6c4ac15 100644
--- a/ld/scripttempl/elf32msp430_3.sc
+++ b/ld/scripttempl/elf32msp430_3.sc
@@ -183,7 +183,7 @@ SECTIONS
     ${RELOCATING+ _vectors_end = . ; }
   } ${RELOCATING+ > vectors}
 
-  .MP430.attributes 0 :
+  .MSP430.attributes 0 :
   {
     KEEP (*(.MSP430.attributes))
     KEEP (*(.gnu.attributes))



More information about the Binutils mailing list