Browse Source

* Use to call PASCALMAIN to allow linking with PIC Code

git-svn-id: trunk@21788 -
pierre 13 years ago
parent
commit
d8d7c38aec
1 changed files with 3 additions and 1 deletions
  1. 3 1
      rtl/linux/mips/prt0.as

+ 3 - 1
rtl/linux/mips/prt0.as

@@ -85,7 +85,9 @@ _start:
         addu    $a2,$a2,$a1
         lui     $a3,%hi(operatingsystem_parameter_envp)
         sw      $a2,%lo(operatingsystem_parameter_envp)($a3)
-        jal     PASCALMAIN
+        lui     $t9,%hi(PASCALMAIN)
+        addiu   $t9,$t9,%lo(PASCALMAIN)
+        jalr    $t9
         nop
 	b       _haltproc
         nop