1 ## For implicit dynamic 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 .dynsym 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 .dynsym will be linked to .dynstr
25 ## if the latter exists.
27 # RUN: yaml2obj --docnum=2 %s -o %t2
28 # RUN: llvm-readobj %t2 -S | FileCheck %s --check-prefix=CASE2
34 # CASE2-NEXT: Name: .dynstr
48 ## Even if .dynstr exists, we can explicitly link .dynsym
49 ## to another section.
51 # RUN: yaml2obj --docnum=3 %s -o %t3
52 # RUN: llvm-readobj %t3 -S | FileCheck %s --check-prefix=CASE3
58 # CASE3-NEXT: Name: .foo
75 ## Check we can use a section name as a Link value for .dynsym.
77 # RUN: yaml2obj --docnum=4 %s -o %t4
78 # RUN: llvm-readobj %t4 -S | FileCheck %s --check-prefix=CASE4
84 # CASE4-NEXT: Name: .foo