[yaml2obj][obj2yaml] - Do not create a symbol table by default.
[llvm-complete.git] / test / tools / yaml2obj / elf-symtab-shtype.yaml
blobfff18607dca18c2031b49d36a1310359567f7c39
1 ## Check we dont crash when .symtab has type different from SHT_SYMTAB.
2 # RUN: yaml2obj %s -o %t
3 # RUN: llvm-readobj --sections %t | FileCheck %s
5 # CHECK:      Name: .symtab
6 # CHECK-NEXT: Type: SHT_DYNAMIC
8 --- !ELF
9 FileHeader:
10   Class:   ELFCLASS64
11   Data:    ELFDATA2LSB
12   Type:    ET_REL
13   Machine: EM_X86_64
14 Sections:
15   - Name: .symtab
16     Type: SHT_DYNAMIC
17 Symbols:
18   - Name:    foo
19     Binding: STB_GLOBAL