1 # RUN: yaml2obj -format=elf %s > %t.o 2 # RUN: llvm-readobj -s -file-headers %t.o | FileCheck %s 3 4 # CHECK: Machine: EM_AMDGPU (0xE0) 5 # CHECK: Sections [ 6 # CHECK: Section { 7 # CHECK: Name: .shf_amdgpu 8 # CHECK: Flags [ (0xF00000) 9 # CHECK: SHF_AMDGPU_HSA_AGENT (0x800000) 10 # CHECK: SHF_AMDGPU_HSA_CODE (0x400000) 11 # CHECK: SHF_AMDGPU_HSA_GLOBAL (0x100000) 12 # CHECK: SHF_AMDGPU_HSA_READONLY (0x200000) 13 # CHECK: } 14 15 --- 16 FileHeader: 17 Class: ELFCLASS64 18 Data: ELFDATA2LSB 19 Type: ET_REL 20 Machine: EM_AMDGPU 21 22 Sections: 23 - Name: .shf_amdgpu 24 Type: SHT_PROGBITS 25 Flags: [ SHF_AMDGPU_HSA_GLOBAL, SHF_AMDGPU_HSA_READONLY, 26 SHF_AMDGPU_HSA_CODE, SHF_AMDGPU_HSA_AGENT] 27 ... 28