• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %s -o %t
2# RUN: llvm-nm --no-sort %t | FileCheck %s
3
4# CHECK: N debug_info_main
5# CHECK: n readonly_local
6# CHECK: ? writable_local
7# CHECK: N readonly_global
8# CHECK: ? writable_global
9
10!ELF
11FileHeader:
12  Class:   ELFCLASS64
13  Data:    ELFDATA2LSB
14  Type:    ET_REL
15  Machine: EM_X86_64
16Sections:
17  - Name: .debug_info
18    Type: SHT_PROGBITS
19  - Name: .readonly
20    Type: SHT_PROGBITS
21  - Name: .writable
22    Type: SHT_PROGBITS
23    Flags: [SHF_WRITE]
24Symbols:
25  - Name:    debug_info_main
26    Section: .debug_info
27  - Name:    readonly_local
28    Section: .readonly
29  - Name:    writable_local
30    Section: .writable
31
32  - Name:    readonly_global
33    Binding: STB_GLOBAL
34    Section: .readonly
35  - Name:    writable_global
36    Binding: STB_GLOBAL
37    Section: .writable
38