debug-syms.test
1.18 KB
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
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-nm --special-syms --debug-syms %t.o | FileCheck %s --implicit-check-not {{.}} --check-prefix SYMBOL
# RUN: llvm-nm --special-syms -a %t.o | FileCheck %s --implicit-check-not {{.}} --check-prefix SYMBOL
# SYMBOL: 0000000000000000 n $a
# SYMBOL-NEXT: 0000000000000000 n $d
# SYMBOL-NEXT: 0000000000000000 n $t
# SYMBOL-NEXT: 0000000000000000 a file_sym
# SYMBOL-NEXT: 0000000000000000 n section
# RUN: llvm-nm --debug-syms --dynamic %t.o | FileCheck %s --implicit-check-not {{.}} --check-prefix DYNSYM
# DYNSYM: 0000000000000000 N dynglobal
# DYNSYM-NEXT: 0000000000000000 n dynlocal
!ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_ARM
Sections:
- Name: section
Type: SHT_PROGBITS
Symbols:
- Name: ""
Type: STT_SECTION
Section: section
- Name: file_sym
Type: STT_FILE
Index: SHN_ABS
- Name: $d
Section: section
- Name: $t
Section: section
- Name: $a
Section: section
DynamicSymbols:
- Name: dynlocal
Type: STT_OBJECT
Section: section
- Name: dynglobal
Type: STT_OBJECT
Binding: STB_GLOBAL
Section: section