aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/asm.h
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2014-11-21 02:05:48 +0000
committerEd Maste <emaste@FreeBSD.org>2014-11-21 02:05:48 +0000
commit688fd61ae82483889429492fdd958c18edfd5b4f (patch)
tree9eebff29c016aa690ddbb8ca4e33ff42270a0d1c /sys/amd64/include/asm.h
parent009ad003a20f05d06179b16990f7e78aae17be5e (diff)
downloadsrc-688fd61ae82483889429492fdd958c18edfd5b4f.tar.gz
src-688fd61ae82483889429492fdd958c18edfd5b4f.zip
Use canonical __PIC__ flag
It is automatically set when -fPIC is passed to the compiler. Reviewed by: dim, kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D1179
Notes
Notes: svn path=/head/; revision=274772
Diffstat (limited to 'sys/amd64/include/asm.h')
-rw-r--r--sys/amd64/include/asm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/include/asm.h b/sys/amd64/include/asm.h
index 87272f76fdde..429c6a989b27 100644
--- a/sys/amd64/include/asm.h
+++ b/sys/amd64/include/asm.h
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
-#ifdef PIC
+#ifdef __PIC__
#define PIC_PLT(x) x@PLT
#define PIC_GOT(x) x@GOTPCREL(%rip)
#else