New device library supporting v4 and v5 has abi_version_400.bc and abi_version_500.bc.
For v5, abi_version_500.bc is linked.
For v2-4, abi_version_400.bc is linked.
For old device library, for v2-4, none of the above is linked. For v5, error is emitted about unsupported ABI version.
ABIVersion?