Browse Source

* Fix linking problems

git-svn-id: trunk@19370 -
pierre 14 years ago
parent
commit
3a4831d924
1 changed files with 6 additions and 2 deletions
  1. 6 2
      rtl/openbsd/i386/prt0.as

+ 6 - 2
rtl/openbsd/i386/prt0.as

@@ -108,7 +108,7 @@ ___start:
 #	pushl 8(%ebp)
 #	pushl 8(%ebp)
 	finit
 	finit
 	fwait
 	fwait
-	fldcw __fpucw
+	fldcw ___fpucw
 	xorl  %ebp,%ebp
 	xorl  %ebp,%ebp
 	call main
 	call main
 #	pushl %eax
 #	pushl %eax
@@ -120,7 +120,7 @@ ___start:
 .type _haltproc,@function
 .type _haltproc,@function
 
 
 _haltproc:
 _haltproc:
-           mov $1,%eax 
+           mov $1,%eax
            movzwl operatingsystem_result,%ebx
            movzwl operatingsystem_result,%ebx
            pushl %ebx
            pushl %ebx
            call .Lactualsyscall
            call .Lactualsyscall
@@ -169,3 +169,7 @@ _strrchr:
 	.size	_strrchr , . - _strrchr
 	.size	_strrchr , . - _strrchr
 	.comm	environ,4,4
 	.comm	environ,4,4
 	.comm	__progname_storage,256,32
 	.comm	__progname_storage,256,32
+        .comm   operatingsystem_parameter_envp,4,4
+        .comm   operatingsystem_parameter_argc,4,4
+        .comm   operatingsystem_parameter_argv,4,4
+