From 9698cc0f330d16a47dbca04b4c84a5cf7c8dbff0 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 4 Aug 2015 13:38:27 +0100 Subject: [PATCH] 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. --- libgloss/ChangeLog | 5 +++++ libgloss/rl78/rl78-sim.ld | 1 + libgloss/rl78/rl78.ld | 3 +++ 3 files changed, 9 insertions(+) diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index 3f4123a3f..46acd561e 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -1,3 +1,8 @@ +2015-08-04 Nick Clifton + + * rl78/rl78-sim.ld: Provide a value for __rl78_abs__. + * rl78/rl78.ld: Likewise. + 2015-07-14 Andre Vieira * arm/elf-nano.specs: Added option to search for system headers in 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) }