Przeglądaj źródła

crtbeginS.o seems to use _init, not __init

git-svn-id: trunk@26452 -
pierre 11 lat temu
rodzic
commit
fdb3525d9f
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      rtl/openbsd/x86_64/cprt0.as

+ 2 - 2
rtl/openbsd/x86_64/cprt0.as

@@ -91,7 +91,7 @@ ___start:
 	movzbl	(%rax), %eax
 	testb	%al, %al
 	je	.L9
-	movl	$__progname_storage+255, %eax
+	movq	$__progname_storage+255, %rax
 	cmpq	%rax, -16(%rbp)
 	jb	.L8
 .L9:
@@ -107,7 +107,7 @@ ___start:
 	movq	%rax, %rdi
 	call	monstartup
 	movl	$0, %eax
-	call	__init
+	call	_init
 	movq	environ(%rip), %rdx
 	movq	-32(%rbp), %rsi
 	movl	-20(%rbp), %edi