From: Adhemerval Zanella Date: Mon, 7 Apr 2025 20:32:08 +0000 (-0300) Subject: stdlib: Avoid strlen plt with clang-20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Fazanella%2Fclang;p=thirdparty%2Fglibc.git stdlib: Avoid strlen plt with clang-20 --- diff --git a/sysdeps/generic/symbol-hacks.h b/sysdeps/generic/symbol-hacks.h index e4b6816240..b3c536e8ac 100644 --- a/sysdeps/generic/symbol-hacks.h +++ b/sysdeps/generic/symbol-hacks.h @@ -29,6 +29,7 @@ asm ("__strcpy_chk = __GI___strcpy_chk"); asm ("strcpy = __GI_strcpy"); asm ("strncpy = __GI_strncpy"); asm ("strcat = __GI_strcat"); +asm ("strlen = __GI_strlen"); /* clang might generate an abort call when cleanup functions (set by __attribute__ ((cleanup)) calls functions not marked as nothrow.