Build failures with recent lld
Upstream lld flipped --undefined-version
(https://reviews.llvm.org/D135402). This causes recent Clang toolchains to break, e.g.:
FAILED: src/amd/vulkan/libvulkan_radeon.so
ld.lld: error: version script assignment of 'global' to symbol 'HMI' failed: symbol not defined
See https://github.com/zlib-ng/zlib-ng/issues/1427 for a similar issue.
Fixing this likely also fixes #8003 (closed).
This should not require a recent version of lld to reproduce. Using --no-undefined-version
should raise the same errors on older toolchains.