1 ## Here we check the types set for implicit sections
4 ## Check the types set by default in case sections were implicitly
5 ## added and not described in the YAML.
7 # RUN: yaml2obj --docnum=1 %s -o %t1
8 # RUN: llvm-readobj -S %t1 | FileCheck %s --check-prefix=CASE1
10 # CASE1: Name: .symtab
11 # CASE1-NEXT: Type: SHT_SYMTAB
12 # CASE1: Name: .strtab
13 # CASE1-NEXT: Type: SHT_STRTAB
14 # CASE1: Name: .shstrtab
15 # CASE1-NEXT: Type: SHT_STRTAB
16 # CASE1: Name: .dynsym
17 # CASE1-NEXT: Type: SHT_DYNSYM
18 # CASE1: Name: .dynstr
19 # CASE1-NEXT: Type: SHT_STRTAB
27 ## Needed to force the creation of the .dynsym and .dynstr.
32 ## Check we can set any arbitrary types when describing sections
33 ## that are usually implicit.
35 # RUN: yaml2obj --docnum=2 %s -o %t2
36 # RUN: llvm-readobj -S %t2 | FileCheck %s --check-prefix=CASE2
38 # CASE2: Name: .symtab
39 # CASE2-NEXT: Type: SHT_DYNAMIC
40 # CASE2: Name: .strtab
41 # CASE2-NEXT: Type: SHT_RELA
42 # CASE2: Name: .shstrtab
43 # CASE2-NEXT: Type: SHT_PROGBITS
44 # CASE2: Name: .dynsym
45 # CASE2-NEXT: Type: SHT_NOTE
46 # CASE2: Name: .dynstr
47 # CASE2-NEXT: Type: SHT_NOBITS
66 ## Needed to set the proper content size for .symtab, so
67 ## that llvm-readobj can dump this section.