Commit: MSP430: Remove spurious LONG(0) directives in linker scripts

Nick Clifton nickc@redhat.com
Thu Mar 10 10:41:00 GMT 2016


Hi Guys,

  I am applying the patch below to remove bogus declarations of LONG(0)
  from the .rodata section in MSP430 linker scripts.  This value used to
  be used as a sentinel, but it is no longer needed and now just wastes
  space.

Cheers
  Nick

diff --git a/libgloss/msp430/msp430-sim.ld b/libgloss/msp430/msp430-sim.ld
index 3e80860..62ea232 100644
--- a/libgloss/msp430/msp430-sim.ld
+++ b/libgloss/msp430/msp430-sim.ld
@@ -54,7 +54,6 @@ SECTIONS
     KEEP (*(.fini_array))
     KEEP (*(SORT(.fini_array.*)))
     PROVIDE (__fini_array_end = .);
-    LONG(0); /* Sentinel.  */
 
   } > RAM
 
diff --git a/libgloss/msp430/msp430xl-sim.ld b/libgloss/msp430/msp430xl-sim.ld
index c0f5a1f..52b139b 100644
--- a/libgloss/msp430/msp430xl-sim.ld
+++ b/libgloss/msp430/msp430xl-sim.ld
@@ -79,7 +79,6 @@ SECTIONS
     KEEP (*(.fini_array))
     KEEP (*(SORT(.fini_array.*)))
     PROVIDE (__fini_array_end = .);
-    LONG(0); /* Sentinel.  */
 
   } > ROM
 



More information about the Newlib mailing list