mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
chk: Add and fix hidden builtin definitions for *_chk
Otherwise on gnu-i686 there are unwanted PLT entries in libc.so when fortification is enabled. Tested for i686-gnu, x86_64-gnu, i686-linux-gnu and x86_64-linux-gnu
This commit is contained in:
@@ -21,3 +21,4 @@
|
||||
#define __libc_siglongjmp __longjmp_chk
|
||||
|
||||
#include <setjmp/longjmp.c>
|
||||
libc_hidden_def (__longjmp_chk)
|
||||
|
@@ -27,3 +27,4 @@ __strncpy_chk (char *s1, const char *s2, size_t n, size_t s1len)
|
||||
|
||||
return strncpy (s1, s2, n);
|
||||
}
|
||||
libc_hidden_builtin_def (__strncpy_chk)
|
||||
|
Reference in New Issue
Block a user