mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 15:29:34 +02:00
* 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:
parent
bd49674975
commit
9e3c7f175f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user