84 lines · plain
1# REQUIRES: x862# RUN: rm -rf %t; split-file %s %t3 4# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos10.15 %t/too-small-1.s -o %t/too-small-1.o5# RUN: not %lld -lSystem -dylib %t/too-small-1.o -o /dev/null 2>&1 | FileCheck %s --check-prefix TOO-SMALL-16# TOO-SMALL-1: error: {{.*}}too-small-1.o:(__eh_frame+0x0): CIE/FDE too small7 8# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos10.15 %t/too-small-2.s -o %t/too-small-2.o9# RUN: not %lld -lSystem -dylib %t/too-small-2.o -o /dev/null 2>&1 | FileCheck %s --check-prefix TOO-SMALL-210# TOO-SMALL-2: error: {{.*}}too-small-2.o:(__eh_frame+0x0): CIE/FDE extends past the end of the section11 12# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos10.15 %t/personality-enc.s -o %t/personality-enc.o13# RUN: not %lld -lSystem -dylib %t/personality-enc.o -o /dev/null 2>&1 | FileCheck %s --check-prefix PERS-ENC14# PERS-ENC: error: {{.*}}personality-enc.o:(__eh_frame+0x12): unexpected personality encoding 0xb15 16# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos10.15 %t/pointer-enc.s -o %t/pointer-enc.o17# RUN: not %lld -lSystem -dylib %t/pointer-enc.o -o /dev/null 2>&1 | FileCheck %s --check-prefix PTR-ENC18# PTR-ENC: error: {{.*}}pointer-enc.o:(__eh_frame+0x11): unexpected pointer encoding 0x1219 20# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos10.15 %t/string-err.s -o %t/string-err.o21# RUN: not %lld -lSystem -dylib %t/string-err.o -o /dev/null 2>&1 | FileCheck %s --check-prefix STR22# STR: error: {{.*}}string-err.o:(__eh_frame+0x9): corrupted CIE (failed to read string)23 24#--- too-small-1.s25.p2align 326.section __TEXT,__eh_frame27.short 0x328 29.subsections_via_symbols30 31#--- too-small-2.s32.p2align 333.section __TEXT,__eh_frame34.long 0x3 # length35 36.subsections_via_symbols37 38#--- personality-enc.s39.p2align 340.section __TEXT,__eh_frame41 42.long 0x14 # length43.long 0 # CIE offset44.byte 1 # version45.asciz "zPR" # aug string46.byte 0x01 # code alignment47.byte 0x78 # data alignment48.byte 0x10 # return address register49.byte 0x01 # aug length50.byte 0x0b # personality encoding51.long 0xffff # personality pointer52.byte 0x10 # pointer encoding53.space 1 # pad to alignment54 55.subsections_via_symbols56 57#--- pointer-enc.s58.p2align 359.section __TEXT,__eh_frame60 61.long 0x14 # length62.long 0 # CIE offset63.byte 1 # version64.asciz "zR" # aug string65.byte 0x01 # code alignment66.byte 0x78 # data alignment67.byte 0x10 # return address register68.byte 0x01 # aug length69.byte 0x12 # pointer encoding70.space 7 # pad to alignment71 72.subsections_via_symbols73 74#--- string-err.s75.p2align 376.section __TEXT,__eh_frame77 78.long 0x7 # length79.long 0 # CIE offset80.byte 1 # version81.ascii "zR" # invalid aug string82 83.subsections_via_symbols84