aboutsummaryrefslogtreecommitdiff
path: root/libgloss/rl78
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-08-04 13:38:27 +0100
committerNick Clifton <nickc@redhat.com>2015-08-04 13:38:27 +0100
commit9698cc0f330d16a47dbca04b4c84a5cf7c8dbff0 (patch)
tree6f21d64918958449a04e85c945dd2323725919cf /libgloss/rl78
parent001ef5af395d6e940a9a6ea10d9f03dcef13536e (diff)
downloadnewlib-9698cc0f330d16a47dbca04b4c84a5cf7c8dbff0.zip
newlib-9698cc0f330d16a47dbca04b4c84a5cf7c8dbff0.tar.gz
newlib-9698cc0f330d16a47dbca04b4c84a5cf7c8dbff0.tar.bz2
This is part of a larger fix for RL78 complex relocs - they need an absolute symbol at address 0 that is not part of the *ABS* section.
* rl78/rl78-sim.ld: Provide a value for __rl78_abs__. * rl78/rl78.ld: Likewise.
Diffstat (limited to 'libgloss/rl78')
-rw-r--r--libgloss/rl78/rl78-sim.ld1
-rw-r--r--libgloss/rl78/rl78.ld3
2 files changed, 4 insertions, 0 deletions
diff --git a/libgloss/rl78/rl78-sim.ld b/libgloss/rl78/rl78-sim.ld
index 49442d1..dece2c6 100644
--- a/libgloss/rl78/rl78-sim.ld
+++ b/libgloss/rl78/rl78-sim.ld
@@ -217,6 +217,7 @@ SECTIONS
} > ROM
/* The rest are all not normally part of the runtime image. */
+ PROVIDE (__rl78_abs__ = 0);
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
diff --git a/libgloss/rl78/rl78.ld b/libgloss/rl78/rl78.ld
index 271104a..0485bc6 100644
--- a/libgloss/rl78/rl78.ld
+++ b/libgloss/rl78/rl78.ld
@@ -218,6 +218,9 @@ SECTIONS
/* The rest are all not normally part of the runtime image. */
+ /* The rest are all not normally part of the runtime image. */
+ PROVIDE (__rl78_abs__ = 0);
+
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }