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