diff options
author | Michael Meissner <meissner@gcc.gnu.org> | 1995-07-22 02:50:21 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 1995-07-22 02:50:21 +0000 |
commit | abeeaf0fe808966cddff734553d23476b800db87 (patch) | |
tree | eaff6e513fe2ca90dc9da34d0879bd9a31519886 /gcc | |
parent | 4697a36cef9b136c6eccca9c0e23f3e653f0bd99 (diff) | |
download | gcc-abeeaf0fe808966cddff734553d23476b800db87.zip gcc-abeeaf0fe808966cddff734553d23476b800db87.tar.gz gcc-abeeaf0fe808966cddff734553d23476b800db87.tar.bz2 |
Initialize r13 to be _SDA_BASE_.
From-SVN: r10153
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/rs6000/eabi.asm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/rs6000/eabi.asm b/gcc/config/rs6000/eabi.asm index d775a21..81788a3 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 |