1 REQUIRES: host-byteorder-little-endian
2 RUN: cat %p/../Inputs/MachO/chained-fixups.yaml \
3 RUN: | sed 's/__LINKEDIT: 00000000/__LINKEDIT: AB000000/' \
4 RUN: | yaml2obj | not llvm-objdump --macho --dyld-info - 2>&1 \
5 RUN: | FileCheck %s --check-prefix=HEADER1
6 HEADER1: truncated or malformed object (bad chained fixups: unknown version: 171)
8 RUN: cat %p/../Inputs/MachO/chained-fixups.yaml \
9 RUN: | sed 's/1000000010000000/1000000AB0000000/' \
10 RUN: | yaml2obj | not llvm-objdump --macho --dyld-info - 2>&1 \
11 RUN: | FileCheck %s --check-prefix=HEADER2
12 HEADER2: truncated or malformed object (bad chained fixups: unknown imports format: 171)
14 RUN: cat %p/../Inputs/MachO/chained-fixups.yaml \
15 RUN: | sed 's/20000000/01000000/' \
16 RUN: | yaml2obj | not llvm-objdump --macho --dyld-info - 2>&1 \
17 RUN: | FileCheck %s --check-prefix=HEADER3
18 HEADER3: truncated or malformed object (bad chained fixups: image starts offset 1 overlaps with chained fixups header)
20 RUN: cat %p/../Inputs/MachO/chained-fixups.yaml \
21 RUN: | sed 's/20000000/FF000000/' \
22 RUN: | yaml2obj | not llvm-objdump --macho --dyld-info - 2>&1 \
23 RUN: | FileCheck %s --check-prefix=HEADER4
24 HEADER4: truncated or malformed object (bad chained fixups: image starts end 33031 extends past end 32856)