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]

RFA: RL78: Add absolute symbol to RL78 linker scripts


Hi DJ,

  I recently committed a patch to the binutils to fix a problem with the
  evaluation of complex relocs for the RL78:

    https://sourceware.org/ml/binutils/2015-07/msg00286.html

  This patch requires that RL78 linker scripts PROVIDE a value for the
  symbol __rl78_abs__, so I would like permissions to apply the patch
  below to the scripts in libgloss.

  OK to apply ?

Cheers
  Nick

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

	* rl78/rl78-sim.ld: Provide a value for __rl78_abs__.
	* rl78/rl78.ld: Likewise.

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) }


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