Commit abeeaf0f by Michael Meissner

Initialize r13 to be _SDA_BASE_.

From-SVN: r10153
parent 4697a36c
...@@ -58,7 +58,8 @@ __eabi: mflr 0 ...@@ -58,7 +58,8 @@ __eabi: mflr 0
# Normal program, load up register 2 # 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) 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 # We need to relocate the .got2 pointers. Don't load register 2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment