[yaml2obj][obj2yaml] - Do not create a symbol table by default.
[llvm-complete.git] / test / tools / yaml2obj / elf-symtab-shinfo.yaml
blob98ab4ac30db8fcdb7507520558180509120d8323
1 ## Check we are able to set sh_info field for SHT_SYMTAB sections.
2 # RUN: yaml2obj %s -o %t
3 # RUN: llvm-readobj --sections %t | FileCheck %s
5 # CHECK:      Name: .symtab
6 # CHECK-NEXT: Type: SHT_SYMTAB
7 # CHECK-NEXT: Flags [
8 # CHECK-NEXT: ]
9 # CHECK-NEXT: Address:
10 # CHECK-NEXT: Offset:
11 # CHECK-NEXT: Size:
12 # CHECK-NEXT: Link:
13 # CHECK-NEXT: Info: 42
14 # CHECK:      Name: .dynsym
15 # CHECK-NEXT: Type: SHT_DYNSYM
16 # CHECK-NEXT: Flags [
17 # CHECK-NEXT:   SHF_ALLOC
18 # CHECK-NEXT: ]
19 # CHECK-NEXT: Address:
20 # CHECK-NEXT: Offset:
21 # CHECK-NEXT: Size:
22 # CHECK-NEXT: Link:
23 # CHECK-NEXT: Info: 26
25 --- !ELF
26 FileHeader:
27   Class:   ELFCLASS64
28   Data:    ELFDATA2LSB
29   Type:    ET_REL
30   Machine: EM_X86_64
31 Sections:
32   - Name: .symtab
33     Info: 42
34     Type: SHT_SYMTAB
35   - Name: .dynsym
36     Info: 26
37     Type: SHT_DYNSYM
38 Symbols:
39   - Name:    foo
40     Binding: STB_GLOBAL
41 DynamicSymbols:
42   - Name:    bar
43     Binding: STB_GLOBAL