summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2006-10-28 16:20:05 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2006-10-28 16:20:05 +0000
commit46e8d8de483a3a5ee9b3ab55418925bb27602ca3 (patch)
treeab2fc7414f77fb5f07aa5a1d2dfa32839f2882f0 /sys/arch/amd64
parent58cc71066429de8fbbe70b20d8fec58b7a0cf210 (diff)
Make sure we call _mcount throught the PLT when generating PIC code.
ok drahn@, miod@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/include/profile.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/include/profile.h b/sys/arch/amd64/include/profile.h
index f1f8a9330b8..56b984d2671 100644
--- a/sys/arch/amd64/include/profile.h
+++ b/sys/arch/amd64/include/profile.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: profile.h,v 1.2 2004/05/13 03:27:33 drahn Exp $ */
+/* $OpenBSD: profile.h,v 1.3 2006/10/28 16:20:04 kettenis Exp $ */
/* $NetBSD: profile.h,v 1.3 2003/11/28 23:22:45 fvdl Exp $ */
/*
@@ -57,7 +57,7 @@ __asm(" .globl __mcount \n" \
" movq 0(%rbp),%r11 \n" \
" movq 8(%r11),%rdi \n" \
" movq 8(%rbp),%rsi \n" \
-" call _mcount \n" \
+" call _mcount"__MCPLT"\n" \
" movq 0(%rsp),%rdi \n" \
" movq 8(%rsp),%rsi \n" \
" movq 16(%rsp),%rdx \n" \