[clang] [llvm] [Object] Fix offload bundle decompression on big endian (PR #205822)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 25 07:56:40 PDT 2026


nikic wrote:

I've adjusted the code in clang-offload-bundler as well.

> I thought this is why we generated tests via yaml2obj instead of shipping static objects.

The embedded compressed blob in this test is in little-endian.

> These bundles are generally expected to be tied to the machine's endianness, since they get embedded in ELF files and similar. Long term I wish we could delete the offload binary format entirely.

Wait, wut? We should not have binary formats tied to host endianness.

https://github.com/llvm/llvm-project/pull/205822


More information about the llvm-commits mailing list