Browse Source

M68k: Fix passing of environment variables. Fixes the compiler not being able to execute the external assembler and linker.

* rtl/linux/m68k/prt0.as:
    between the arguments and the environment variables is a NULL; keep this in mind when loading the address of the first environment variable.

git-svn-id: trunk@26851 -
svenbarth 11 years ago
parent
commit
e734ca7a9b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/linux/m68k/prt0.as

+ 1 - 1
rtl/linux/m68k/prt0.as

@@ -48,7 +48,7 @@ _start:
         move.l %d0, operatingsystem_parameter_argc
         move.l %d0, operatingsystem_parameter_argc
         lea.l 4(%sp), %a0
         lea.l 4(%sp), %a0
         move.l %a0, operatingsystem_parameter_argv
         move.l %a0, operatingsystem_parameter_argv
-        lea.l 4(%sp,%d0.l*4), %a0
+        lea.l 8(%sp,%d0.l*4), %a0
         move.l %a0, operatingsystem_parameter_envp
         move.l %a0, operatingsystem_parameter_envp
 
 
 #        move.l 8(%sp), %d0
 #        move.l 8(%sp), %d0