summaryrefslogtreecommitdiffstats
path: root/lldb/test/Shell/ObjectFile/ELF/gnu-debuglink.yaml
blob: b39b3187ae9bc374274c06ed523446ab83a81c24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# RUN: yaml2obj %s > %t
# RUN: llvm-objcopy --strip-all --add-gnu-debuglink=%t %t %t.stripped
# RUN: lldb-test object-file %t.stripped | FileCheck %s

# CHECK: Name: .debug_frame
# CHECK-NEXT: Type: dwarf-frame

--- !ELF
FileHeader:
  Class:           ELFCLASS64
  Data:            ELFDATA2LSB
  Type:            ET_EXEC
  Machine:         EM_X86_64
  Entry:           0x00000000004003D0
Sections:
  - Name:            .text
    Type:            SHT_PROGBITS
    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
    Address:         0x00000000004003D0
    AddressAlign:    0x0000000000000010
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_frame
    Type:            SHT_PROGBITS
    AddressAlign:    0x0000000000000008
    Content:         DEADBEEFBAADF00D
Symbols:
  - Name:            main
    Type:            STT_FUNC
    Section:         .text
    Value:           0x00000000004003D0
    Size:            0x0000000000000008
...
OpenPOWER on IntegriCloud