]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lit/Modules/ELF/build-id-case.yaml
Vendor import of lldb trunk r338536:
[FreeBSD/FreeBSD.git] / lit / Modules / ELF / build-id-case.yaml
1 # RUN: mkdir -p %t/.build-id/1b
2 # RUN: yaml2obj %s > %t/.build-id/1b/8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9.debug
3 # RUN: cd %t
4 # RUN: llvm-objcopy --strip-all --add-gnu-debuglink=.build-id/1b/8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9.debug %t/.build-id/1b/8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9.debug %t/stripped.out
5 # RUN: lldb-test object-file %t/stripped.out | FileCheck %s
6
7 # CHECK: Name: .debug_frame
8 # CHECK-NEXT: Type: dwarf-frame
9
10 --- !ELF
11 FileHeader:
12   Class:           ELFCLASS64
13   Data:            ELFDATA2LSB
14   Type:            ET_EXEC
15   Machine:         EM_X86_64
16   Entry:           0x00000000004003D0
17 Sections:
18   - Name:            .note.gnu.build-id
19     Type:            SHT_NOTE
20     Flags:           [ SHF_ALLOC ]
21     Address:         0x0000000000400274
22     AddressAlign:    0x0000000000000004
23     Content:         040000001400000003000000474E55001B8A73AC238390E32A7FF4AC8EBE4D6A41ECF5C9
24   - Name:            .text
25     Type:            SHT_PROGBITS
26     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
27     Address:         0x00000000004003D0
28     AddressAlign:    0x0000000000000010
29     Content:         DEADBEEFBAADF00D
30   - Name:            .debug_frame
31     Type:            SHT_PROGBITS
32     AddressAlign:    0x0000000000000008
33     Content:         DEADBEEFBAADF00D
34 Symbols:
35   Local:
36     - Name:            main
37       Type:            STT_FUNC
38       Section:         .text
39       Value:           0x00000000004003D0
40       Size:            0x0000000000000008
41 ...