brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 5c2e1d0 Raw
51 lines · plain
1## Check that the error for an inconsistent header works.2## The first word contains the bad value for CodeWords, 0xf, which indicates3## that we need 0x11110 << 2 =  120 bytes of space for the unwind codes.4## It follows that the .xdata section is badly formed as only 8 bytes are5## allocated for the unwind codes.6 7// REQUIRES: aarch64-registered-target8// RUN: llvm-mc -filetype=obj -triple aarch64-windows %s -o - \9// RUN:   | not llvm-readobj --unwind - 2>&1 | FileCheck %s10 11// CHECK: LLVM ERROR: Malformed unwind data12 13	.text14	.globl	"?func@@YAHXZ"15	.p2align	316"?func@@YAHXZ":17	sub     sp,sp,#0x1018	stp     x19,lr,[sp]19	sub     sp,sp,#0x1F020	mov     w19,w021	bl	"?func2@@YAXXZ"22	cmp     w19,#223	ble     .LBB0_124	bl      "?func2@@YAHXZ"25	add      sp,sp,#0x1F026	ldp      x19,lr,[sp]27	add      sp,sp,#0x1028	ret29.LBB0_1:30	mov      x0,sp31	bl       "?func3@@YAHPEAH@Z"32	add      sp,sp,#0x1F033	ldp      x19,lr,[sp]34	add      sp,sp,#0x1035	ret36 37.section .pdata,"dr"38	.long "?func@@YAHXZ"@IMGREL39        .long "$unwind$func@@YAHXZ"@IMGREL40 41 42.section	.xdata,"dr"43"$unwind$func@@YAHXZ":44        .p2align	345	.long		0xf080001246	.long 		0x847	.long 		0xe48	.long 		0x100d61f49	.long 		0xe3e3e3e450 51