2
0
Эх сурвалжийг харах

Merge rev 20113

git-svn-id: tags/release_2_6_0@20552 -
pierre 13 жил өмнө
parent
commit
2ea3655088
1 өөрчлөгдсөн 5 нэмэгдсэн , 4 устгасан
  1. 5 4
      rtl/go32v2/v2prt0.as

+ 5 - 4
rtl/go32v2/v2prt0.as

@@ -852,7 +852,7 @@ _pascal_start:
         movl    %esp,%ebx
         movl    12(%ebx),%eax
         movl    %eax,U_SYSTEM_ENVP
-        movl    %eax,_environ
+        movl    %eax,__environ
         movl    8(%ebx),%eax
         movl    %eax,_args
         movl    4(%ebx),%eax
@@ -887,9 +887,10 @@ _core_selector:
         .globl ___v2prt0_start_fs
 ___v2prt0_start_fs:
         .word 0
-        .globl  _environ
-_environ:
-         .long 0
+        /* _environ or __environ are used depending on
+           crt1.c versions for DJGPP, the linker script
+           now just provides an alias to avoid problems. */
+        .comm  __environ,4
 
 /* Here Pierre Muller added all what was in crt1.c  */
 /* in assembler                              */