• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %s -o %t
2# RUN: llvm-nm --no-sort %t | FileCheck %s
3
4# CHECK:      b mybss_local
5# CHECK-NEXT: d mydata_local
6# CHECK-NEXT: d mytdata_local
7# CHECK-NEXT: B mybss_global
8# CHECK-NEXT: D mydata_global
9# CHECK-NEXT: D mytdata_global
10
11!ELF
12FileHeader:
13  Class:   ELFCLASS64
14  Data:    ELFDATA2LSB
15  Type:    ET_EXEC
16  Machine: EM_X86_64
17Sections:
18  - Name: mybss
19    Type: SHT_NOBITS
20    Flags: [ SHF_ALLOC, SHF_WRITE ]
21  - Name: mydata
22    Type: SHT_PROGBITS
23    Flags: [ SHF_ALLOC, SHF_WRITE ]
24  - Name: mytdata
25    Type: SHT_PROGBITS
26    Flags: [ SHF_ALLOC, SHF_WRITE, SHF_TLS ]
27Symbols:
28  - Name:    mybss_local
29    Section: mybss
30  - Name:    mydata_local
31    Section: mydata
32  - Name:    mytdata_local
33    Section: mytdata
34
35  - Name:    mybss_global
36    Binding: STB_GLOBAL
37    Section: mybss
38  - Name:    mydata_global
39    Binding: STB_GLOBAL
40    Section: mydata
41  - Name:    mytdata_global
42    Binding: STB_GLOBAL
43    Section: mytdata
44