* 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 -
This commit is contained in:
Jonas Maebe 2016-02-04 11:37:29 +00:00
parent bd49674975
commit 9e3c7f175f

View File

@ -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