1 ## Check the values of sh_info fields set by default for
2 ## explicitly listed .dynstr, .dynsym, .strtab and .symtab
5 ## For symbol table sections, sh_info has a value which is
6 ## one greater than the symbol table index of the last
9 ## sh_info isn't set for string table sections.
11 # RUN: yaml2obj --docnum=1 %s -o %t
12 # RUN: llvm-readobj --sections %t | FileCheck %s --check-prefix=CASE1
14 # CASE1: Name: .symtab
17 # CASE1: Name: .strtab
20 # CASE1: Name: .dynsym
23 # CASE1: Name: .dynstr
49 ## In the case when these sections are not defined in YAML, the
50 ## behavior is the same as when we define them, but do not set the Info.
52 # RUN: yaml2obj --docnum=2 %s -o %t
53 # RUN: llvm-readobj --sections %t | FileCheck %s --check-prefix=CASE2
55 # CASE2: Name: .dynsym
58 # CASE2: Name: .dynstr
61 # CASE2: Name: .symtab
64 # CASE2: Name: .strtab
81 ## Check we are able to set any sh_info explicitly.
83 # RUN: yaml2obj --docnum=3 %s -o %t
84 # RUN: llvm-readobj --sections %t | FileCheck %s --check-prefix=CASE3
86 # CASE3: Name: .dynstr
89 # CASE3: Name: .dynsym
92 # CASE3: Name: .strtab
95 # CASE3: Name: .symtab