Browse Source

* load the address of envp before storing it, so we don't overwrite argv
with envp (fixes bug in fix from r32528, mantis #29587 for FPC 3.0.x
-- FPC 3.1.1+ uses si_*.inc instead, which already works correctly)

git-svn-id: trunk@33045 -

Jonas Maebe 9 năm trước cách đây
mục cha
commit
9e3c7f175f
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      rtl/linux/powerpc64/prt0.as

+ 1 - 0
rtl/linux/powerpc64/prt0.as

@@ -341,6 +341,7 @@ FUNCTION_PROLOG _dynamic_start
   LOAD_64BIT_VAL 10,operatingsystem_parameter_argv
   std     4,0(10)
   /* store environment pointer */
+  LOAD_64BIT_VAL 10,operatingsystem_parameter_envp
   std     5,0(10)
 
   LOAD_64BIT_VAL 8,__stkptr