1 # RUN: yaml2obj --docnum=1 %s > %t1.o
2 # RUN: llvm-nm %t1.o --format=sysv | FileCheck %s
13 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
15 - Name: symbol_undefined
20 - Name: symbol_absolute
30 # CHECK-NEXT: proc {{.*}}|
31 # CHECK-NEXT: reserved {{.*}}|
32 # CHECK-NEXT: symbol {{.*}}| |.text
33 # CHECK-NEXT: symbol_absolute {{.*}}| |*ABS*
34 # CHECK-NEXT: symbol_common {{.*}}| |*COM*
35 # CHECK-NEXT: symbol_undefined {{.*}}| |*UND*
37 ## Here we have a symbol that belongs to a section with a broken name
38 ## (sh_name offset goes past the end of the sections name string table).
39 ## We test that we can still print a reasonable output and don't crash/assert.
41 # RUN: yaml2obj --docnum=2 %s > %t2.o
42 # RUN: llvm-nm %t2.o --format=sysv | FileCheck %s --check-prefix=ERR
44 # ERR: foo |0000000000000000| ? | NOTYPE|0000000000000000| |
55 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]