If a symbol with an undefined version in a DSO is not going to be exported into the dynamic symbol table then do not give an error message for the missing version. This can happen with the --exclude-libs option which implicitly gives all symbols in a static library the local version. This matches the behavior of ld.gold and is exploited by the Bionic dynamic linker on Arm.
This was found when trying to link the bionic dynamic linker on Arm and got link errors with LLD. I've reported to Bionic under https://issuetracker.google.com/issues/73020933
as ld.bfd was also giving the same error message, but ld.gold was succeeding. I think on balance ld.gold is more sensible and we should match it.
Fixes PR36295