summaryrefslogtreecommitdiffstats
path: root/sys/arm
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2014-11-21 02:05:48 +0000
committeremaste <emaste@FreeBSD.org>2014-11-21 02:05:48 +0000
commitc7e313326dae74e64f75ded1afb06337d55ecd57 (patch)
tree9eebff29c016aa690ddbb8ca4e33ff42270a0d1c /sys/arm
parent8723ec446135291c191b573bd01676c8a4c83d3e (diff)
downloadFreeBSD-src-c7e313326dae74e64f75ded1afb06337d55ecd57.zip
FreeBSD-src-c7e313326dae74e64f75ded1afb06337d55ecd57.tar.gz
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
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/include/asm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm/include/asm.h b/sys/arm/include/asm.h
index 9577001..c718848 100644
--- a/sys/arm/include/asm.h
+++ b/sys/arm/include/asm.h
@@ -104,7 +104,7 @@
#define ASMSTR .asciz
-#if defined(PIC)
+#if defined(__PIC__)
#define PLT_SYM(x) PIC_SYM(x, PLT)
#define GOT_SYM(x) PIC_SYM(x, GOT)
#define GOT_GET(x,got,sym) \
@@ -131,7 +131,7 @@
#define GOT_INIT(got,gotsym,pclabel)
#define GOT_INITSYM(gotsym,pclabel)
#define PIC_SYM(x,y) x
-#endif /* PIC */
+#endif /* __PIC__ */
#undef __FBSDID
#if !defined(lint) && !defined(STRIP_FBSDID)
OpenPOWER on IntegriCloud