Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-nm / debug-syms.test
blobe58176588d3062d629e874ec9293df8e3cf23e43
1 # RUN: yaml2obj %s -o %t.o
2 # RUN: llvm-nm --debug-syms %t.o | FileCheck %s --implicit-check-not {{.}} --check-prefix SYMBOL
3 # RUN: llvm-nm -a %t.o | FileCheck %s --implicit-check-not {{.}} --check-prefix SYMBOL
5 # SYMBOL:      0000000000000000 n $a
6 # SYMBOL-NEXT: 0000000000000000 n $d
7 # SYMBOL-NEXT: 0000000000000000 n $t
8 # SYMBOL-NEXT: 0000000000000000 a file_sym
9 # SYMBOL-NEXT: 0000000000000000 n section
11 # RUN: llvm-nm --debug-syms --dynamic %t.o | FileCheck %s --implicit-check-not {{.}} --check-prefix DYNSYM
13 # DYNSYM:      0000000000000000 N dynglobal
14 # DYNSYM-NEXT: 0000000000000000 n dynlocal
16 !ELF
17 FileHeader:
18   Class:   ELFCLASS64
19   Data:    ELFDATA2LSB
20   Type:    ET_REL
21   Machine: EM_ARM
22 Sections:
23   - Name: section
24     Type: SHT_PROGBITS
25 Symbols:
26   - Name:    ""
27     Type:    STT_SECTION
28     Section: section
29   - Name:    file_sym
30     Type:    STT_FILE
31     Index:   SHN_ABS
32   - Name:    $d
33     Section: section
34   - Name:    $t
35     Section: section
36   - Name:    $a
37     Section: section
38 DynamicSymbols:
39   - Name:    dynlocal
40     Type:    STT_OBJECT
41     Section: section
42   - Name:    dynglobal
43     Type:    STT_OBJECT
44     Binding: STB_GLOBAL
45     Section: section