From: Michael Meissner Date: Sat, 22 Jul 1995 02:50:21 +0000 (+0000) Subject: Initialize r13 to be _SDA_BASE_. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=abeeaf0fe808966cddff734553d23476b800db87;p=gcc.git Initialize r13 to be _SDA_BASE_. From-SVN: r10153 --- diff --git a/gcc/config/rs6000/eabi.asm b/gcc/config/rs6000/eabi.asm index d775a21910e..81788a3973d 100644 --- a/gcc/config/rs6000/eabi.asm +++ b/gcc/config/rs6000/eabi.asm @@ -58,7 +58,8 @@ __eabi: mflr 0 # Normal program, load up register 2 - lwz 2,.Lgot(11) # normal GOT address + lwz 2,.Lgot(11) # normal GOT address (obsolete in register 2) + mr 13,2 # also same as _SDA_BASE_ (V.4 small data ptr) b __do_global_ctors # do any C++ global constructors (which returns to caller) # We need to relocate the .got2 pointers. Don't load register 2