1 ## Check bad DT_STRTAB address.
3 # RUN: yaml2obj %s -DSTRSZ_VALUE=0x0000000000000001 -DSTRTAB_ADDR=0x0000000000000260 -o %t
4 # RUN: not llvm-ifs --input-format=ELF --output-ifs=%t.tbe %t 2>&1 | FileCheck %s -DERR_ADDR=0x260
7 ## Check bad DT_STRSZ size.
9 # RUN: yaml2obj %s -DSTRSZ_VALUE=0x0000000000001000 -DSTRTAB_ADDR=0x0000000000001000 -o %t
10 # RUN: not llvm-ifs --input-format=ELF --output-ifs=%t.tbe %t 2>&1 | FileCheck %s -DERR_ADDR=0x2000
27 Address: 0x0000000000001008
29 AddressAlign: 0x0000000000000008
30 EntSize: 0x0000000000000010
33 Value: 0x0000000000000000
35 Value: [[STRSZ_VALUE]]
37 Value: [[STRTAB_ADDR]]
39 Value: 0x0000000000001000
41 Value: 0x0000000000000000
55 # CHECK: virtual address is not in any segment: [[ERR_ADDR]] when locating dynamic string table section contents