From ac80391c743f899a3726a460783272c79f67bc6a Mon Sep 17 00:00:00 2001 From: pierre Date: Thu, 19 Jan 2012 17:12:03 +0000 Subject: [PATCH] * Try to fix go32v2 problems related to DJGPP 2.04 CVS code using __environ as alias of _environ git-svn-id: trunk@20113 - --- rtl/go32v2/v2prt0.as | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/rtl/go32v2/v2prt0.as b/rtl/go32v2/v2prt0.as index 22c29563a2..d9e7cfc159 100644 --- a/rtl/go32v2/v2prt0.as +++ b/rtl/go32v2/v2prt0.as @@ -856,7 +856,7 @@ _pascal_start: movl %esp,%ebx movl 12(%ebx),%eax movl %eax,operatingsystem_parameter_envp - movl %eax,_environ + movl %eax,__environ movl 8(%ebx),%eax movl %eax,_args movl 4(%ebx),%eax @@ -891,9 +891,13 @@ _core_selector: .globl ___v2prt0_start_fs ___v2prt0_start_fs: .word 0 - .globl _environ -_environ: - .long 0 + /* DJGPP CVS crt1.c code uses __environ symbol */ + /* corresponding to _environ C variable */ + /* instead of _environ symbol since commit rev 1.11 */ + /* Thu Aug 19 9:11:52 2004 UTC by peuha */ + /* _environ is provided by linker script at the same address */ + /* as __environ if needed by linker. */ + .comm __environ,4 /* Here Pierre Muller added all what was in crt1.c */ /* in assembler */