1 # RUN: yaml2obj --docnum=1 %s -o %t1
2 # RUN: llvm-symbolizer --obj=%t1 0 1 2 | FileCheck %s
4 ## The local symbol has no preceding STT_FILE. Its filename is unavailable.
9 ## All local symbols precede all non-local symbols. When there are multiple
10 ## STT_FILE symbols, we cannot tell which file defines the non-local symbol in
11 ## question. We could tell if there is only one STT_FILE but in reality there
12 ## are always more than one file, so implementing the special case is not useful.
29 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
47 ## If st_name of the STT_FILE symbols is invalid, the symbol name is lost as well.
48 ## TODO Keep the symbol name.
49 # RUN: yaml2obj --docnum=2 %s -o %t2
50 # RUN: not llvm-symbolizer --obj=%t2 0 0 2>&1 | FileCheck %s --check-prefix=CHECK2
52 # CHECK2: llvm-symbolizer{{.*}}: error: '{{.*}}symtab-file2.yaml.tmp2': st_name (0xffff) is past the end of the string table of size
63 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
72 # RUN: yaml2obj --docnum=3 %s -o %t3
73 # RUN: llvm-symbolizer --obj=%t3 'DATA 0x1001' 2>&1 | FileCheck %s --check-prefix=CHECK3
89 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]