Browse Source

* more PIC fixes in OpenBSD's x86_64 cprt0.as

git-svn-id: trunk@41671 -
nickysn 6 years ago
parent
commit
b5f7a01804
1 changed files with 3 additions and 3 deletions
  1. 3 3
      rtl/openbsd/x86_64/cprt0.as

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

@@ -101,11 +101,11 @@ ___start:
 	movq	-16(%rbp), %rax
 	movb	$0, (%rax)
 .L2:
-	leaq	_mcleanup(%rip), %rdi
+	movq	_mcleanup@GOTPCREL(%rip), %rdi
 	call	atexit
-	leaq	_etext(%rip), %rsi
+	movq	_etext@GOTPCREL(%rip), %rsi
 	leaq	_eprol(%rip), %rdi
-	call	monstartup
+	call	monstartup@plt
 	movl	$0, %eax
 	call	_init
 	movq	environ(%rip), %rdx