1 ## Check that obj2yaml doesn't create a "Symbols" tag for the objects
2 ## without a symbol table.
4 # RUN: yaml2obj --docnum=1 %s -o %t1
5 # RUN: obj2yaml %t1 | FileCheck %s --check-prefix=NOSYMTAB
8 # NOSYMTAB-NEXT: FileHeader:
9 # NOSYMTAB-NEXT: Class: ELFCLASS64
10 # NOSYMTAB-NEXT: Data: ELFDATA2LSB
11 # NOSYMTAB-NEXT: Type: ET_DYN
12 # NOSYMTAB-NEXT: Machine: EM_X86_64
22 ## Check that obj2yaml creates a "Symbols" tag for the objects
23 ## that have a symbol table.
25 # RUN: yaml2obj --docnum=2 %s -o %t2
26 # RUN: obj2yaml %t2 | FileCheck %s --check-prefix=SYMTAB
29 # SYMTAB-NEXT: FileHeader:
30 # SYMTAB-NEXT: Class: ELFCLASS64
31 # SYMTAB-NEXT: Data: ELFDATA2LSB
32 # SYMTAB-NEXT: Type: ET_DYN
33 # SYMTAB-NEXT: Machine: EM_X86_64
34 # SYMTAB-NEXT: Symbols: []