aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/stack_protector.c
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2009-09-17 13:21:53 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2009-09-17 13:21:53 +0000
commite330a6a59e2df7a34b1ee94602e162b07e4e8a9e (patch)
treeb490b1d8c151e2f8662cd44424a62252358a1a9a /lib/libc/sys/stack_protector.c
parent81c59a1ff95811bb8f46a8abb2bc8f2481ea0819 (diff)
Notes
Diffstat (limited to 'lib/libc/sys/stack_protector.c')
-rw-r--r--lib/libc/sys/stack_protector.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/sys/stack_protector.c b/lib/libc/sys/stack_protector.c
index 63beebc1c9443..14c20eb4f0b82 100644
--- a/lib/libc/sys/stack_protector.c
+++ b/lib/libc/sys/stack_protector.c
@@ -108,4 +108,8 @@ __chk_fail(void)
__fail("buffer overflow detected; terminated");
}
+#ifdef PIC
__sym_compat(__stack_chk_fail_local, __stack_chk_fail, FBSD_1.0);
+#else
+__weak_reference(__stack_chk_fail, __stack_chk_fail_local);
+#endif