* scripttempl/v850.sc (__gp, __ep): Define.
[binutils-gdb.git] / ld / scripttempl / v850.sc
index e4cb42618b1b7469f51778473828aa9f7dab9e8d..c19d4f2f081c905ec689dae51336887682cfc3d1 100644 (file)
@@ -72,10 +72,12 @@ SECTIONS
   }
   .got           : { *(.got.plt) *(.got) }
   .dynamic       : { *(.dynamic) }
+  ${RELOCATING+ __ep = ALIGN (4) + 0x80;}
   .tdata     : { *(.tdata) }
   /* We want the small data sections together, so single-instruction offsets
      can access them all, and initialized data all before uninitialized, so
      we can shorten the on-disk segment size.  */
+  ${RELOCATING+ __gp = ALIGN(4) + 0x8000;}
   .sdata     : { *(.rosdata) *(.sdata) }
   _edata  =  .;
   PROVIDE (edata = .);