• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %s > %t.o
2# RUN: llvm-readobj -s -file-headers %t.o | FileCheck %s
3
4# CHECK: Format: ELF64-amdgpu-hsacobj
5# CHECK: Arch: amdgcn
6# CHECK:  Machine: EM_AMDGPU (0xE0)
7# CHECK: Sections [
8# CHECK: Section {
9# CHECK: Name: .shf_amdgpu
10# CHECK: Flags [ (0xF00000)
11# CHECK: SHF_AMDGPU_HSA_AGENT (0x800000)
12# CHECK: SHF_AMDGPU_HSA_CODE (0x400000)
13# CHECK: SHF_AMDGPU_HSA_GLOBAL (0x100000)
14# CHECK: SHF_AMDGPU_HSA_READONLY (0x200000)
15# CHECK: }
16
17--- !ELF
18FileHeader:
19  Class:   ELFCLASS64
20  Data:    ELFDATA2LSB
21  Type:    ET_REL
22  Machine: EM_AMDGPU
23  OSABI:   ELFOSABI_AMDGPU_HSA
24
25Sections:
26  - Name:  .shf_amdgpu
27    Type:  SHT_PROGBITS
28    Flags: [ SHF_AMDGPU_HSA_GLOBAL, SHF_AMDGPU_HSA_READONLY,
29             SHF_AMDGPU_HSA_CODE, SHF_AMDGPU_HSA_AGENT]
30...
31