[clang] attribute __attribute__ ((ifunc("resolve_multiver")))
is accepted even when not supported by the platform (linux-musl)
#91313
Labels
Hi all,
The symptoms of this issue are identical to #64631: The musl dynamic linker will complain about
unknown relocation 37
.I stumbled into this issue when porting a GCC test (ipa-pta-19.c) into RISC-V Clang, except of course in RISC-V the relocation number is different, so I see
unsupported relocation type 58
instead (R_RISCV_IRELATIVE
)two items of note:
So far I've tried with the following LLVM versions:
0c3a02b8c09bb
(the exact commit that should have introduced the fix)Perhaps it never got tested? I noticed while debugging clang, that the function
supportsIFunc
never actually gets calledThe text was updated successfully, but these errors were encountered: