This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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]

Commit: RL78: KEEP the .csstart section contents


Hi Guys,

  This patch fixes a small bug in the libgloss linker scripts for the
  RL78.  The .csstart section. needed for CubeSuite support, should
  always be present in the executable, even if linker garbage collection
  detects that no other code references it.  Hence KEEP directives need
  to be added.  I am hoping that this patch counts as obvious, so I am
  going to apply it straight away...

Cheers
  Nick

libgloss/ChangeLog
2015-04-07  Nick Clifton  <nickc@redhat.com>

	* rl78/rl78.ld (.csstart): Add a KEEP directive.
	* rl78/rl78-sim.ld (.csstart): Add a KEEP directive.

diff --git a/libgloss/rl78/rl78-sim.ld b/libgloss/rl78/rl78-sim.ld
index f54105d..26d62ac 100644
--- a/libgloss/rl78/rl78-sim.ld
+++ b/libgloss/rl78/rl78-sim.ld
@@ -66,7 +66,7 @@ SECTIONS
 
   /* CubeSuite always starts at 0xd8.  */
   .csstart : {
-    *(.csstart)
+    KEEP (*(.csstart))
   } > ROM
 
   /* For code that must be in the first 64k, or could fill unused
diff --git a/libgloss/rl78/rl78.ld b/libgloss/rl78/rl78.ld
index ab137f5..d560b14 100644
--- a/libgloss/rl78/rl78.ld
+++ b/libgloss/rl78/rl78.ld
@@ -66,7 +66,7 @@ SECTIONS
 
   /* CubeSuite always starts at 0xd8.  */
   .csstart : {
-    *(.csstart)
+    KEEP (*(.csstart))
   } > ROM
 
   /* For code that must be in the first 64k, or could fill unused


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