summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2014-11-25 03:50:31 +0000
committeremaste <emaste@FreeBSD.org>2014-11-25 03:50:31 +0000
commitfda27c9937b724b3c3e24266d58c4be4d1839e7f (patch)
tree8af8a3fb8f37ea396b60dd6e474d26d3b108cc1a /lib/libc/sys
parentd375864ce9ed7583a0bf26a4f4933a26c49ecd60 (diff)
downloadFreeBSD-src-fda27c9937b724b3c3e24266d58c4be4d1839e7f.zip
FreeBSD-src-fda27c9937b724b3c3e24266d58c4be4d1839e7f.tar.gz
Revert r274772: it is not valid on MIPS
Reported by: sbruno
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/stack_protector.c2
-rw-r--r--lib/libc/sys/stack_protector_compat.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/sys/stack_protector.c b/lib/libc/sys/stack_protector.c
index 6ce2a25..ed7d635 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
diff --git a/lib/libc/sys/stack_protector_compat.c b/lib/libc/sys/stack_protector_compat.c
index 888eb5e..cacb863 100644
--- a/lib/libc/sys/stack_protector_compat.c
+++ b/lib/libc/sys/stack_protector_compat.c
@@ -8,7 +8,7 @@ __FBSDID("$FreeBSD$");
void __stack_chk_fail(void);
-#ifdef __PIC__
+#ifdef PIC
void
__stack_chk_fail_local_hidden(void)
{
OpenPOWER on IntegriCloud