1 ## Check we do not crash/assert when .dynsym is specified
2 ## explicitly, but .dynstr is not present.
4 # RUN: yaml2obj %s -o %t
5 # RUN: llvm-readelf --section-headers %t | FileCheck %s
7 ## Check that .dynsym has Link field set to 0.
9 # CHECK: Section Headers:
10 # CHECK-NEXT: [Nr] Name Type Address Off Size ES Flg Lk
11 # CHECK-NEXT: [ 0] NULL 0000000000000000 000000 000000 00 0 0
12 # CHECK-NEXT: [ 1] .dynsym DYNSYM 0000000000000000 000180 000018 18 A 0