1# RUN: yaml2obj %s -o %t
2# RUN: llvm-nm --no-sort %t | FileCheck %s
3
4# CHECK: b mybss_local
5# CHECK: b mytbss_local
6# CHECK: B mybss_global
7# CHECK: B mytbss_global
8
9!ELF
10FileHeader:
11  Class:   ELFCLASS64
12  Data:    ELFDATA2LSB
13  Type:    ET_REL
14  Machine: EM_X86_64
15Sections:
16  - Name: mybss
17    Type: SHT_NOBITS
18    Flags: [ SHF_ALLOC, SHF_WRITE ]
19  - Name: mytbss
20    Type: SHT_NOBITS
21    Flags: [ SHF_ALLOC, SHF_WRITE, SHF_TLS ]
22Symbols:
23  - Name:    mybss_local
24    Binding: STB_LOCAL
25    Section: mybss
26  - Name:    mytbss_local
27    Binding: STB_LOCAL
28    Section: mytbss
29
30  - Name:    mybss_global
31    Binding: STB_GLOBAL
32    Section: mybss
33  - Name:    mytbss_global
34    Binding: STB_GLOBAL
35    Section: mytbss
36