In lld's ELF/InputFiles.cpp, getBitcodeMachineKind() is limited to uint8_t return type.
This works as long as EM_xxx is < 256, which is true for common architectures,
but not for all targets.
The corresponding ELF field (e_machine) can hold uint16_t.