Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-08-04 15:38:27 +0300
committerNick Clifton <nickc@redhat.com>2015-08-04 15:38:27 +0300
commit9698cc0f330d16a47dbca04b4c84a5cf7c8dbff0 (patch)
tree6f21d64918958449a04e85c945dd2323725919cf /libgloss/rl78
parent001ef5af395d6e940a9a6ea10d9f03dcef13536e (diff)
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 49442d11e..dece2c6bc 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 271104af2..0485bc680 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) }