소스 검색

crtbeginS.o seems to use _init, not __init

git-svn-id: trunk@26454 -
pierre 11 년 전
부모
커밋
d492b3d17d
1개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. 4 5
      rtl/openbsd/x86_64/dllprt0.as

+ 4 - 5
rtl/openbsd/x86_64/dllprt0.as

@@ -122,7 +122,7 @@ ___start:
 	movq	%rax, (%rdx)
 .L2:
 	movl	$0, %eax
-	call	__init@PLT
+	call	_init@PLT
 	movq	environ@GOTPCREL(%rip), %rax
 	movq	(%rax), %rdx
 	movq	-32(%rbp), %rsi
@@ -151,11 +151,10 @@ _haltproc:
          xor %rbx,%rbx
          ret
 .LErrorcode:
-	movl	%eax, %edi
+         movq  %rax,%rbx
+         movq  $-1,%rax
+	 ret
 
-
-
-	call	exit@PLT
 .LFE9:
 	.size	___start, .-___start
 	.type	_strrchr, @function