浏览代码

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

git-svn-id: trunk@41671 -
nickysn 6 年之前
父节点
当前提交
b5f7a01804
共有 1 个文件被更改,包括 3 次插入3 次删除
  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