1RUN: llvm-readobj  -program-headers -sections -symbols -file-headers \
2RUN: %p/Inputs/trivial.elf-amdhsa-kaveri | FileCheck %s
3
4CHECK: ElfHeader {
5CHECK:  Ident {
6CHECK: Class: 64-bit (0x2)
7CHECK: DataEncoding: LittleEndian (0x1)
8CHECK: Machine: EM_AMDGPU (0xE0)
9
10
11CHECK: Section {
12CHECK: Name: .text
13CHECK: Type: SHT_PROGBITS (0x1)
14CHECK: Flags [ (0xC00007
15CHECK: SHF_ALLOC (0x2)
16CHECK: SHF_AMDGPU_HSA_AGENT (0x800000)
17CHECK: SHF_AMDGPU_HSA_CODE (0x400000)
18CHECK: SHF_EXECINSTR (0x4)
19CHECK: SHF_WRITE (0x1)
20
21CHECK: Symbol {
22CHECK: Name: hello_world
23CHECK: Value: 0x0
24CHECK: Binding: Local (0x0)
25CHECK: Type: AMDGPU_HSA_KERNEL (0xA)
26
27CHECK: ProgramHeader {
28CHECK: Type: PT_AMDGPU_HSA_LOAD_CODE_AGENT (0x60000003)
29