• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %s -o %t.o
2# RUN: llvm-nm %t.o --format=sysv | FileCheck %s
3
4!ELF
5FileHeader:
6  Class:   ELFCLASS64
7  Data:    ELFDATA2LSB
8  Type:    ET_REL
9  Machine: EM_X86_64
10Sections:
11  - Name:  .text
12    Type:  SHT_PROGBITS
13    Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
14Symbols:
15  - Name:    local_binding
16    Binding: STB_LOCAL
17    Section: .text
18    Value:   0xbeef
19  - Name:    global_binding
20    Binding: STB_GLOBAL
21    Section: .text
22  - Name:    weak_binding
23    Binding: STB_WEAK
24    Section: .text
25  - Name:    unrecognised_binding
26    Binding: 5
27    Section: .text
28  - Name:    gnu_unique_binding
29    Binding: 10
30    Section: .text
31  - Name:    os_binding
32    Binding: 11
33    Section: .text
34  - Name:    proc_binding
35    Binding: 14
36    Section: .text
37
38# CHECK:      global_binding      {{.*}}|   T  |
39# CHECK-NEXT: gnu_unique_binding  {{.*}}|   u  |
40# CHECK-NEXT: local_binding       {{.*}}|   t  |
41# CHECK-NEXT: os_binding          {{.*}}|   ?  |
42# CHECK-NEXT: proc_binding        {{.*}}|   ?  |
43# CHECK-NEXT: unrecognised_binding{{.*}}|   ?  |
44# CHECK-NEXT: weak_binding        {{.*}}|   W  |
45