[PATCH v2 1/4] riscv: Add multiarch scaffolding for str*/mem* routines
Yao Zihong
zihong.plct@isrc.iscas.ac.cn
Mon Oct 13 15:17:37 GMT 2025
> So I think you need a dl-symbol-redir-ifunc file to handle static
> initialization. Otherwise you can get an infinite loop during symbol
> resolution. The testsuite will trip this issue which raises the
> question, how was this tested? I would expect to see a few tests hang.
At least memset triggers a hang in elf/tst-tls1-static-non-pie.
My earlier testing focused on the string routines and didn’t include the elf
subsuite, so I missed this case. My bad.
> As I mentioned in the V1 patch, this probably should be using the same
> mechansisms as ifunc-impl-list rather than querying out of hwcaps. That
> was also the consensus at the RISC-V BOF last week -- don't use hwcaps
> use the probing interface.
Good to know, thanks for the clarification.
The next version will switch to using hwprobe as suggested.
Thanks,
Zihong
More information about the Libc-alpha
mailing list