summaryrefslogtreecommitdiffstats
path: root/start.S
diff options
context:
space:
mode:
Diffstat (limited to 'start.S')
-rw-r--r--start.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/start.S b/start.S
index 58d0b7e8b..86eed054a 100644
--- a/start.S
+++ b/start.S
@@ -60,6 +60,12 @@ relocate_loop:
blr
finished_relocate:
+ ;// Set up initial TOC Base
+ lis 2, opd_load_address@h
+ ori 2, 2, opd_load_address@l
+ ld 2,8(2)
+
+ ;// Jump to main.
b _main
.org _start + 0x100
OpenPOWER on IntegriCloud