xref: /llvm-project/lldb/test/Shell/ObjectFile/ELF/section-permissions.yaml (revision b587ca93be114d07ec3bf654add97d7872325281)
1# RUN: yaml2obj %s -o %t
2# RUN: lldb-test object-file %t | FileCheck %s
3
4# CHECK-LABEL: Name: .r-x
5# CHECK: Permissions: r-x
6#
7# CHECK-LABEL: Name: .rw-
8# CHECK: Permissions: rw-
9
10# CHECK-LABEL: Name: .---
11# CHECK: Permissions: ---
12
13--- !ELF
14FileHeader:
15  Class:           ELFCLASS64
16  Data:            ELFDATA2LSB
17  Type:            ET_REL
18  Machine:         EM_X86_64
19  Entry:           0x00000000000007A0
20Sections:
21  - Name:            .r-x
22    Type:            SHT_PROGBITS
23    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
24    Content:         DEADBEEFBAADF00D
25  - Name:            .rw-
26    Type:            SHT_PROGBITS
27    Flags:           [ SHF_WRITE, SHF_ALLOC ]
28    AddressAlign:    0x0000000000000004
29    Content:         DEADBEEFBAADF00D
30  - Name:            .---
31    Type:            SHT_PROGBITS
32    AddressAlign:    0x0000000000000001
33    Content:         DEADBEEFBAADF00D
34...
35