xref: /llvm-project/lldb/test/Shell/ObjectFile/ELF/gnu-debuglink.yaml (revision b587ca93be114d07ec3bf654add97d7872325281)
1# RUN: yaml2obj %s -o %t
2# RUN: llvm-objcopy --strip-all --add-gnu-debuglink=%t %t %t.stripped
3# RUN: lldb-test object-file %t.stripped | FileCheck %s
4
5# CHECK: Name: .debug_frame
6# CHECK-NEXT: Type: dwarf-frame
7
8--- !ELF
9FileHeader:
10  Class:           ELFCLASS64
11  Data:            ELFDATA2LSB
12  Type:            ET_EXEC
13  Machine:         EM_X86_64
14  Entry:           0x00000000004003D0
15Sections:
16  - Name:            .text
17    Type:            SHT_PROGBITS
18    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
19    Address:         0x00000000004003D0
20    AddressAlign:    0x0000000000000010
21    Content:         DEADBEEFBAADF00D
22  - Name:            .debug_frame
23    Type:            SHT_PROGBITS
24    AddressAlign:    0x0000000000000008
25    Content:         DEADBEEFBAADF00D
26Symbols:
27  - Name:            main
28    Type:            STT_FUNC
29    Section:         .text
30    Value:           0x00000000004003D0
31    Size:            0x0000000000000008
32...
33