2018-06-28 18:55:52 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
|
2018-07-03 01:48:23 +08:00
|
|
|
# RUN: not ld.lld --eh-frame-hdr %t -o /dev/null 2>&1 | FileCheck %s
|
2018-06-28 18:55:52 +08:00
|
|
|
|
|
|
|
# CHECK: error: corrupted .eh_frame: corrupted CIE (failed to read LEB128)
|
|
|
|
# CHECK-NEXT: >>> defined in {{.*}}:(.eh_frame+0xC)
|
|
|
|
|
2020-02-20 13:27:13 +08:00
|
|
|
.section .eh_frame,"a",@unwind
|
2018-06-28 18:55:52 +08:00
|
|
|
.byte 0x08
|
|
|
|
.byte 0x00
|
|
|
|
.byte 0x00
|
|
|
|
.byte 0x00
|
|
|
|
.byte 0x00
|
|
|
|
.byte 0x00
|
|
|
|
.byte 0x00
|
|
|
|
.byte 0x00
|
|
|
|
.byte 0x01
|
|
|
|
.byte 0x01
|
|
|
|
.byte 0x00
|
|
|
|
.byte 0x01
|