Skip to content

Commit

Permalink
Add ELFABIVERSION_AMDGPU_HSA_V6 emitted by recent llvm compilers (#141)
Browse files Browse the repository at this point in the history
Co-authored-by: Larry Meadows <[email protected]>
  • Loading branch information
lfmeadow and lfmeadow authored Jan 22, 2025
1 parent 9789f76 commit 93f19cf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/include/rocprofiler-sdk/cxx/codeobj/disassembly.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,10 @@ class DisassemblyInstance
CHECK_VA2FO(e_ident[EI_VERSION] == EV_CURRENT, "unexpected ei_version");
CHECK_VA2FO(e_ident[EI_OSABI] == 64, "unexpected ei_osabi"); // ELFOSABI_AMDGPU_HSA

CHECK_VA2FO(e_ident[EI_ABIVERSION] == 2 || // ELFABIVERSION_AMDGPU_HSA_V4
e_ident[EI_ABIVERSION] == 3,
"unexpected ei_abiversion"); // ELFABIVERSION_AMDGPU_HSA_V5
CHECK_VA2FO(e_ident[EI_ABIVERSION] == 2 || // ELFABIVERSION_AMDGPU_HSA_V4
e_ident[EI_ABIVERSION] == 3 || // ELFABIVERSION_AMDGPU_HSA_V5
e_ident[EI_ABIVERSION] == 4, // ELFABIVERSION_AMDGPU_HSA_V6
"unexpected ei_abiversion");

Elf64_Ehdr* ehdr = (Elf64_Ehdr*) buffer.data();
CHECK_VA2FO(ehdr, "ehdr is nullptr");
Expand Down

0 comments on commit 93f19cf

Please sign in to comment.