From d8d7c38aec2ccd3244d925e0d28f876760e10a6c Mon Sep 17 00:00:00 2001 From: pierre Date: Thu, 5 Jul 2012 20:57:25 +0000 Subject: [PATCH] * Use to call PASCALMAIN to allow linking with PIC Code git-svn-id: trunk@21788 - --- rtl/linux/mips/prt0.as | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rtl/linux/mips/prt0.as b/rtl/linux/mips/prt0.as index 73504f43b6..0bd2c63333 100644 --- a/rtl/linux/mips/prt0.as +++ b/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