diff options
author | Zack Weinberg <zackw@panix.com> | 2018-03-18 17:01:06 -0400 |
---|---|---|
committer | Zack Weinberg <zackw@panix.com> | 2018-03-26 09:05:19 -0400 |
commit | f66704a937db50bbd78acc5c29f569b4c8e35d19 (patch) | |
tree | 92d261f99ff3346bffb3a61f6e788fe0daf6093e /sysdeps/x86_64/multiarch/strchrnul.c | |
parent | 9ea49e16c79bd2acd0d0648ca0163f26dd1c3dae (diff) | |
download | glibc-zack/wip-check-localplt-2.tar.gz glibc-zack/wip-check-localplt-2.tar.xz glibc-zack/wip-check-localplt-2.zip |
WIP finer-grained, more aggressive local PLT call check zack/wip-check-localplt-2
Diffstat (limited to 'sysdeps/x86_64/multiarch/strchrnul.c')
-rw-r--r-- | sysdeps/x86_64/multiarch/strchrnul.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/x86_64/multiarch/strchrnul.c b/sysdeps/x86_64/multiarch/strchrnul.c index 7514999341..a2c4155c64 100644 --- a/sysdeps/x86_64/multiarch/strchrnul.c +++ b/sysdeps/x86_64/multiarch/strchrnul.c @@ -17,18 +17,18 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ +#include <string.h> + /* Define multiple versions only for the definition in libc. */ #if IS_IN (libc) -# define strchrnul __redirect_strchrnul -# define __strchrnul __redirect___strchrnul -# include <string.h> -# undef __strchrnul -# undef strchrnul + +extern typeof (__strchrnul) __redirect_strchrnul; # define SYMBOL_NAME strchrnul # include "ifunc-avx2.h" libc_ifunc_redirected (__redirect_strchrnul, __strchrnul, IFUNC_SELECTOR ()); +libc_hidden_def (__strchrnul) weak_alias (__strchrnul, strchrnul) #endif |