[all-commits] [llvm/llvm-project] d3876c: [ELFDumper] Always read AMD Code Object notes as l...
Pierre van Houtryve via All-commits
all-commits at lists.llvm.org
Mon Nov 13 22:26:23 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d3876c58a8e5d4fbd4890a671148d00da1111550
https://github.com/llvm/llvm-project/commit/d3876c58a8e5d4fbd4890a671148d00da1111550
Author: Pierre van Houtryve <pierre.vanhoutryve at amd.com>
Date: 2023-11-14 (Tue, 14 Nov 2023)
Changed paths:
M llvm/tools/llvm-readobj/ELFDumper.cpp
Log Message:
-----------
[ELFDumper] Always read AMD Code Object notes as little-endian (#70775)
Should avoid issues on big-endian hosts.
Note that we use aligned types because primitive integers are also
aligned. If we don't use aligned types, `HSAILProperties` ends up being
11 bytes instead of 12 (1 byte padding at the end of the struct added by
the compiler).
Technically only the first type needs to be aligned, but I just used
aligned types everywhere to be consistent.
Fixes #65280
More information about the All-commits
mailing list