mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Add fortified (__*_chk) library functions to TLI (NFC)
One of them (__memcpy_chk) was already there, the others were checked by comparing function names. Note that the fortified libfuncs are now part of TLI, but are always available, because they aren't generated, only optimized into the non-checking versions. Differential Revision: http://reviews.llvm.org/D6179 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221817 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -73,6 +73,11 @@ namespace llvm {
|
||||
dunder_isoc99_sscanf,
|
||||
/// void *__memcpy_chk(void *s1, const void *s2, size_t n, size_t s1size);
|
||||
memcpy_chk,
|
||||
/// void *__memmove_chk(void *s1, const void *s2, size_t n,
|
||||
/// size_t s1size);
|
||||
memmove_chk,
|
||||
/// void *__memset_chk(void *s, char v, size_t n, size_t s1size);
|
||||
memset_chk,
|
||||
/// double __sincospi_stret(double x);
|
||||
sincospi_stret,
|
||||
/// float __sincospif_stret(float x);
|
||||
@@ -87,8 +92,18 @@ namespace llvm {
|
||||
sqrtf_finite,
|
||||
/// long double __sqrt_finite(long double x);
|
||||
sqrtl_finite,
|
||||
/// char *__stpcpy_chk(char *s1, const char *s2, size_t s1size);
|
||||
stpcpy_chk,
|
||||
/// char *__stpncpy_chk(char *s1, const char *s2, size_t n,
|
||||
/// size_t s1size);
|
||||
stpncpy_chk,
|
||||
/// char *__strcpy_chk(char *s1, const char *s2, size_t s1size);
|
||||
strcpy_chk,
|
||||
/// char * __strdup(const char *s);
|
||||
dunder_strdup,
|
||||
/// char *__strncpy_chk(char *s1, const char *s2, size_t n,
|
||||
/// size_t s1size);
|
||||
strncpy_chk,
|
||||
/// char *__strndup(const char *s, size_t n);
|
||||
dunder_strndup,
|
||||
/// char * __strtok_r(char *s, const char *delim, char **save_ptr);
|
||||
|
Reference in New Issue
Block a user