summaryrefslogtreecommitdiffstats
path: root/lldb/test/Shell/ObjectFile/ELF/build-id-case.yaml
blob: 08366056947bfd238cff7d0192d61707ea0a2208 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# RUN: mkdir -p %t/.build-id/1b
# RUN: yaml2obj %s > %t/.build-id/1b/8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9.debug
# RUN: cd %t
# RUN: llvm-objcopy --strip-all %t/.build-id/1b/8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9.debug %t/stripped.out
# RUN: lldb-test object-file %t/stripped.out | FileCheck %s

# CHECK: Name: .debug_abbrev
# CHECK: Name: .debug_addr
# CHECK: Name: .debug_aranges
# CHECK: Name: .debug_frame
# CHECK: Name: .debug_info
# CHECK: Name: .debug_line
# CHECK: Name: .debug_line_str
# CHECK: Name: .debug_loc
# CHECK: Name: .debug_loclists
# CHECK: Name: .debug_macinfo
# CHECK: Name: .debug_macro
# CHECK: Name: .debug_names
# CHECK: Name: .debug_pubnames
# CHECK: Name: .debug_pubtypes
# CHECK: Name: .debug_ranges
# CHECK: Name: .debug_rnglists
# CHECK: Name: .debug_str
# CHECK: Name: .debug_str_offsets
# CHECK: Name: .debug_types

--- !ELF
FileHeader:
  Class:           ELFCLASS64
  Data:            ELFDATA2LSB
  Type:            ET_EXEC
  Machine:         EM_X86_64
  Entry:           0x00000000004003D0
Sections:
  - Name:            .note.gnu.build-id
    Type:            SHT_NOTE
    Flags:           [ SHF_ALLOC ]
    Address:         0x0000000000400274
    AddressAlign:    0x0000000000000004
    Content:         040000001400000003000000474E55001B8A73AC238390E32A7FF4AC8EBE4D6A41ECF5C9
  - Name:            .text
    Type:            SHT_PROGBITS
    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
    Address:         0x00000000004003D0
    AddressAlign:    0x0000000000000010
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_abbrev
    Type:            SHT_PROGBITS
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_addr
    Type:            SHT_PROGBITS
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_aranges
    Type:            SHT_PROGBITS
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_frame
    Type:            SHT_PROGBITS
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_info
    Type:            SHT_PROGBITS
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_line
    Type:            SHT_PROGBITS
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_line_str
    Type:            SHT_PROGBITS
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_loc
    Type:            SHT_PROGBITS
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_loclists
    Type:            SHT_PROGBITS
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_macinfo
    Type:            SHT_PROGBITS
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_macro
    Type:            SHT_PROGBITS
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_names
    Type:            SHT_PROGBITS
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_pubnames
    Type:            SHT_PROGBITS
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_pubtypes
    Type:            SHT_PROGBITS
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_ranges
    Type:            SHT_PROGBITS
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_rnglists
    Type:            SHT_PROGBITS
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_str
    Type:            SHT_PROGBITS
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_str_offsets
    Type:            SHT_PROGBITS
    Content:         DEADBEEFBAADF00D
  - Name:            .debug_types
    Type:            SHT_PROGBITS
    Content:         DEADBEEFBAADF00D
Symbols:
  - Name:            main
    Type:            STT_FUNC
    Section:         .text
    Value:           0x00000000004003D0
    Size:            0x0000000000000008
...
OpenPOWER on IntegriCloud