1# REQUIRES: x86
2
3# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
4# RUN: not ld.lld --eh-frame-hdr %t.o -o /dev/null 2>&1 | FileCheck %s
5# CHECK: error: unknown FDE size encoding
6
7.section .eh_frame,"a",@unwind
8  .long 12   # Size
9  .long 0x00 # ID
10  .byte 0x01 # Version.
11
12  .byte 0x52 # Augmentation string: 'R','\0'
13  .byte 0x00
14
15# Code and data alignment factors.
16  .byte 0x01 # LEB128
17  .byte 0x01 # LEB128
18
19# Return address register.
20  .byte 0x01 # LEB128
21
22  .byte 0xFE # 'R' value: invalid <0xFE>
23
24  .byte 0xFF
25
26  .long 12  # Size
27  .long 0x14 # ID
28  .quad .eh_frame
29