Hello,

I found 6th arg for syscall is missing on SH4 linux-user emulation.
This seems to be the cause of shared library mapping failure.
I successfully run shared-lib'd binary, after applying following fix.
/yoshii

diff -u -r1.155 main.c
--- a/linux-user/main.c 17 Nov 2007 01:37:43 -0000      1.155
+++ b/linux-user/main.c 20 Nov 2007 14:09:59 -0000
@@ -1613,7 +1613,7 @@
                              env->gregs[6],
                              env->gregs[7],
                              env->gregs[0],
-                             0);
+                             env->gregs[1]);
             env->gregs[0] = ret;
             env->pc += 2;
             break;


Reply via email to