When -fgpu-rdc is used for linking relocatable objects, clang driver launches
clang-offload-bundler to extract a device relocatable object from each input
relocatable object file and passes the extracted files to lld. The input relocatable
object file could either come from HIP program or C++ program. The relocatable
object file from C++ program does not contain device relocatable objects, therefore
clang-offload-bundler extracts an empty file and passes it to lld, which causes lld to fail.
This patch adds "elf64_amdgpu" to lld so that lld always know the target
no matter input file is empty or not.
This needs an emulation-amdgpu.s test.