1
0
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:
Samuel Thibault
2023-08-03 21:16:41 +02:00
parent cbf4aa422c
commit 04bf7d2d8a
6 changed files with 15 additions and 0 deletions

View File

@@ -21,3 +21,4 @@
#define __libc_siglongjmp __longjmp_chk
#include <setjmp/longjmp.c>
libc_hidden_def (__longjmp_chk)

View File

@@ -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)