It also seems like this would be a good candidate for having ld.elf_so load a different flavor of the library based on the FPU/CPU combo.+1
This would be good, but what about the binaries themselves?If toolchains could easily be modified to create multiple codepaths for different CPUs / CPU options by default, for all compiles, package creation would take longer and packages would be bigger, but we could make everyone happy.
The fact that nobody is doing this in the amd64 / x86 world and are instead toying with the idea of dropping older x86-64 versions suggests that this isn't as trivial as one might think:
https://hackaday.com/2024/02/25/what-is-x86-64-v3/ John