OSDN Git Service

Initialize r13 to be _SDA_BASE_.
authormeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 Jul 1995 02:50:21 +0000 (02:50 +0000)
committermeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 Jul 1995 02:50:21 +0000 (02:50 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10153 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/rs6000/eabi.asm

index d775a21..81788a3 100644 (file)
@@ -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