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
50 ## In the case when these sections are not defined in YAML, the
51 ## behavior is the same as when we define them, but do not set the Info.
53 # RUN: yaml2obj --docnum=2 %s -o %t
54 # RUN: llvm-readobj --sections %t | FileCheck %s --check-prefix=CASE1
70 ## Check we are able to set any sh_info explicitly.
72 # RUN: yaml2obj --docnum=3 %s -o %t
73 # RUN: llvm-readobj --sections %t | FileCheck %s --check-prefix=CASE2
75 # CASE2: Name: .dynstr
78 # CASE2: Name: .dynsym
81 # CASE2: Name: .strtab
84 # CASE2: Name: .symtab