1 ## For implicit symbol table sections, `Link` field can also
2 ## be specified in YAML. Here we test the behavior in different cases.
4 ## Check we are able to set Link = 0 for .symtab explicitly.
6 # RUN: yaml2obj --docnum=1 %s -o %t1
7 # RUN: llvm-readobj %t1 -S | FileCheck %s --check-prefix=CASE1
23 ## Check that by default .symtab will be linked with .strtab.
25 # RUN: yaml2obj --docnum=2 %s -o %t2
26 # RUN: llvm-readobj %t2 -S | FileCheck %s --check-prefix=CASE2
32 # CASE2-NEXT: Name: .strtab
43 ## Even if .strtab is defined in YAML, we can explicitly link .symtab
44 ## to another section.
46 # RUN: yaml2obj --docnum=3 %s -o %t3
47 # RUN: llvm-readobj %t3 -S | FileCheck %s --check-prefix=CASE3
53 # CASE3-NEXT: Name: .foo
69 ## Check we can use a section name as a Link value for .symtab.
71 # RUN: yaml2obj --docnum=4 %s -o %t4
72 # RUN: llvm-readobj %t4 -S | FileCheck %s --check-prefix=CASE4
78 # CASE4-NEXT: Name: .foo