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
24 ## Check that by default .symtab will be linked with .strtab.
26 # RUN: yaml2obj --docnum=2 %s -o %t2
27 # RUN: llvm-readobj %t2 -S | FileCheck %s --check-prefix=CASE2
33 # CASE2-NEXT: Name: .strtab
45 ## Even if .strtab is defined in YAML, we can explicitly link .symtab
46 ## to another section.
48 # RUN: yaml2obj --docnum=3 %s -o %t3
49 # RUN: llvm-readobj %t3 -S | FileCheck %s --check-prefix=CASE3
55 # CASE3-NEXT: Name: .foo
72 ## Check we can use a section name as a Link value for .symtab.
74 # RUN: yaml2obj --docnum=4 %s -o %t4
75 # RUN: llvm-readobj %t4 -S | FileCheck %s --check-prefix=CASE4
81 # CASE4-NEXT: Name: .foo