[glibc] elf: Fix clang-18 build of elf/tst-ifunc-fault-mod.c test
Adhemerval Zanella via Glibc-cvs <[email protected]>
| Newsgroups | gmane.comp.lib.glibc.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ae646973c5957b7eed06cb80d49d13b42178072d commit ae646973c5957b7eed06cb80d49d13b42178072d Author: Adhemerval Zanella <[email protected]> Date: Tue Aug 11 09:54:20 2026 -0300 elf: Fix clang-18 build of elf/tst-ifunc-fault-mod.c test clang-18 errors on the static ifunc resolvers seen as unused. Diff: --- elf/tst-ifunc-fault-mod.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/elf/tst-ifunc-fault-mod.c b/elf/tst-ifunc-fault-mod.c index 11c21b48ac..694ff5e9a9 100644 --- a/elf/tst-ifunc-fault-mod.c +++ b/elf/tst-ifunc-fault-mod.c @@ -17,6 +17,7 @@ <https://www.gnu.org/licenses/>. */ #include <stddef.h> +#include <sys/cdefs.h> static void implementation (void) @@ -27,6 +28,7 @@ implementation (void) } static __typeof__ (implementation) * +__attribute_used__ resolver (void) { /* Produce a crash, without depending on any relocations. */