1 ## .dynamic section has invalid sh_entsize, check we report it.
2 # RUN: yaml2obj --docnum=1 %s -o %t.so
3 # RUN: not ld.lld %t.so -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR1
4 # ERR1: error: {{.*}}.so: section [index 1] has invalid sh_entsize: expected 16, but got 291
19 ## The .dynamic section has invalid sh_size, which is too short and
20 ## even less than entry size. Check we report it.
21 # RUN: yaml2obj --docnum=2 %s -o %t.so
22 # RUN: not ld.lld %t.so -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR2
23 # ERR2: error: {{.*}}.so: section [index 1] has an invalid sh_size (1) which is not a multiple of its sh_entsize (16)