[clang] [HIP] Support compressing device binary (PR #67162)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 5 06:22:23 PDT 2023


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


More information about the cfe-commits mailing list