jhuber6 wrote:

For reference, I've had similar problems in the past. Usually it happens 
because the header needs to be aligned on a `uint64_t` to be read. The ELF 
section has 8-byte alignment, but that can be incorrect when extracting from 
something like an archive. I just make a copy in that case 
https://github.com/llvm/llvm-project/blob/main/llvm/lib/Object/OffloadBinary.cpp#L156.

https://github.com/llvm/llvm-project/pull/67162
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to