diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2016-12-26 10:08:57 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2016-12-26 10:11:05 +0100 |
commit | 524a8ef2ad76af8ac049293d993a1856b0d888fb (patch) | |
tree | ff9d41f1c2c7c1a2361e3f46a8376a23b96faf17 /debug/stack_chk_fail.c | |
parent | 66a704c43cfec810fea67a6959f2d1c94f4d594f (diff) | |
download | glibc-524a8ef2ad76af8ac049293d993a1856b0d888fb.tar.gz glibc-524a8ef2ad76af8ac049293d993a1856b0d888fb.tar.xz glibc-524a8ef2ad76af8ac049293d993a1856b0d888fb.zip |
PLT avoidance for __stack_chk_fail [BZ #7065]
Add a hidden __stack_chk_fail_local alias to libc.so, and make sure that on targets which use __stack_chk_fail, this does not introduce a local PLT reference into libc.so.
Diffstat (limited to 'debug/stack_chk_fail.c')
-rw-r--r-- | debug/stack_chk_fail.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/debug/stack_chk_fail.c b/debug/stack_chk_fail.c index 4d0796f78c..5db0886170 100644 --- a/debug/stack_chk_fail.c +++ b/debug/stack_chk_fail.c @@ -27,3 +27,5 @@ __stack_chk_fail (void) { __fortify_fail ("stack smashing detected"); } + +strong_alias (__stack_chk_fail, __stack_chk_fail_local) |