diff options
author | des <des@FreeBSD.org> | 2007-06-05 08:24:34 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2007-06-05 08:24:34 +0000 |
commit | 96c25f467e3b621470c2ba197b2bbbec33126406 (patch) | |
tree | f779f5afe88af2c39634eaf0f298672a899b219d | |
parent | ee31f13424a2548357554610b397df1323796469 (diff) | |
download | FreeBSD-src-96c25f467e3b621470c2ba197b2bbbec33126406.zip FreeBSD-src-96c25f467e3b621470c2ba197b2bbbec33126406.tar.gz |
Expose __stack_chk_fail_local() so -fstack-protector-all works.
-rw-r--r-- | lib/libc/sys/Symbol.map | 1 | ||||
-rw-r--r-- | lib/libc/sys/stack_protector.c | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/sys/Symbol.map b/lib/libc/sys/Symbol.map index 18d58eb..a961c68 100644 --- a/lib/libc/sys/Symbol.map +++ b/lib/libc/sys/Symbol.map @@ -289,6 +289,7 @@ FBSD_1.0 { socket; socketpair; __stack_chk_fail; + __stack_chk_fail_local; __stack_chk_guard; stat; statfs; diff --git a/lib/libc/sys/stack_protector.c b/lib/libc/sys/stack_protector.c index 08a68f1..f753fcd 100644 --- a/lib/libc/sys/stack_protector.c +++ b/lib/libc/sys/stack_protector.c @@ -110,9 +110,6 @@ __chk_fail(void) } void -#ifdef __GNUC__ -__attribute__((visibility ("hidden"))) -#endif __stack_chk_fail_local(void) { __stack_chk_fail(); |