Elfxx_Verdef contains the following field:
vd_version
Version revision. This value is currently set to 1, and will be reset if the versioning implementation is incompatibly altered.
(https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/symversion.html)
Our code should check the struct version for correctness. This patch does that.
(This will help to simplify or eliminate ELFDumper<ELFT>::LoadVersionDefs() which
has it's own logic to parse version definitions for no reason. It checks the struct version currently).
This can be simplified to "Check how we handle a version definition entry with an unsupported version."
There may be other places where this sort of suggestion applies too. Sorry for not highlighting it before.