[PATCH] D138221: [HIP] Fix lld failure when devie object is empty
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 19 15:50:34 PST 2022
MaskRay added a comment.
> Some host relocatable objects may not contain device relocatable objects, where an empty file is passed to lld, which causes lld to fail.
How is an empty file (size=0) passed to lld? If a dummy relocatable object file is parsed to lld, lld can infer the machine type from `e_machine` in the ELF header.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138221/new/
https://reviews.llvm.org/D138221
More information about the cfe-commits
mailing list