This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Commit: RL78: KEEP the .csstart section contents
- From: Nick Clifton <nickc at redhat dot com>
- To: newlib at sourceware dot org
- Date: Tue, 07 Apr 2015 14:50:36 +0100
- Subject: Commit: RL78: KEEP the .csstart section contents
- Authentication-results: sourceware.org; auth=none
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