summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/stack_protector.c
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 /lib/libc/sys/stack_protector.c
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 'lib/libc/sys/stack_protector.c')
-rw-r--r--lib/libc/sys/stack_protector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/sys/stack_protector.c b/lib/libc/sys/stack_protector.c
index ed7d635..6ce2a25 100644
--- a/lib/libc/sys/stack_protector.c
+++ b/lib/libc/sys/stack_protector.c
@@ -115,6 +115,6 @@ __chk_fail(void)
__fail("buffer overflow detected; terminated");
}
-#ifndef PIC
+#ifndef __PIC__
__weak_reference(__stack_chk_fail, __stack_chk_fail_local);
#endif
OpenPOWER on IntegriCloud