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 .symtab.
29 ## Needed to force the creation of the .dynsym and .dynstr.
34 ## Check we can set any arbitrary types when describing sections
35 ## that are usually implicit.
37 # RUN: yaml2obj --docnum=2 %s -o %t2
38 # RUN: llvm-readobj -S %t2 | FileCheck %s --check-prefix=CASE2
40 # CASE2: Name: .symtab
41 # CASE2-NEXT: Type: SHT_DYNAMIC
42 # CASE2: Name: .strtab
43 # CASE2-NEXT: Type: SHT_RELA
44 # CASE2: Name: .shstrtab
45 # CASE2-NEXT: Type: SHT_PROGBITS
46 # CASE2: Name: .dynsym
47 # CASE2-NEXT: Type: SHT_NOTE
48 # CASE2: Name: .dynstr
49 # CASE2-NEXT: Type: SHT_NOBITS
68 ## Needed to set the proper content size for .symtab, so
69 ## that llvm-readobj can dump this section.