diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-08-03 21:16:41 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-08-03 22:46:48 +0200 |
commit | 04bf7d2d8a79bf8d06ca811518688ccda190b376 (patch) | |
tree | bda91b114bcd43681c51b711ead69942067408e9 /include/stdlib.h | |
parent | cbf4aa422c82b895ab56ef5e9acda37947ad4184 (diff) | |
download | glibc-04bf7d2d8a79bf8d06ca811518688ccda190b376.zip glibc-04bf7d2d8a79bf8d06ca811518688ccda190b376.tar.gz glibc-04bf7d2d8a79bf8d06ca811518688ccda190b376.tar.bz2 |
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
Diffstat (limited to 'include/stdlib.h')
-rw-r--r-- | include/stdlib.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 7deb819..d1d00c0 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -59,6 +59,8 @@ libc_hidden_proto (__isoc23_strtoull_l) libc_hidden_proto. */ # undef strtol # define strtol __isoc23_strtol +# undef atoi +# define atoi(nptr) __isoc23_strtol(nptr, NULL, 10) # undef strtoul # define strtoul __isoc23_strtoul # undef strtoll |