forked from OSchip/llvm-project
[ELF] - EhFrame: add test case to cover uncovered branch of the code.
This test case adds test for the line that was uncovered previously: https://github.com/llvm-mirror/lld/blob/master/ELF/EhFrame.cpp#L175 it errors out, but we now can test that we have expected flow, which is different for CIE of version 1 and CIE of version 3. llvm-svn: 335840
This commit is contained in:
parent
33aa5c546e
commit
5e0dfe62b6
|
@ -0,0 +1,28 @@
|
|||
# REQUIRES: x86
|
||||
|
||||
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
|
||||
# RUN: not ld.lld --eh-frame-hdr %t -o %t2 2>&1 | FileCheck %s
|
||||
|
||||
# CHECK: corrupted .eh_frame: unknown .eh_frame augmentation string:
|
||||
|
||||
.section .eh_frame
|
||||
.byte 0x0E
|
||||
.byte 0x00
|
||||
.byte 0x00
|
||||
.byte 0x00
|
||||
.byte 0x00
|
||||
.byte 0x00
|
||||
.byte 0x00
|
||||
.byte 0x00
|
||||
.byte 0x03
|
||||
.byte 0x01
|
||||
.byte 0x00
|
||||
.byte 0x01
|
||||
|
||||
.byte 0x01 # LEB128
|
||||
.byte 0x01 # LEB128
|
||||
|
||||
.byte 0x01
|
||||
.byte 0x01
|
||||
.byte 0x01
|
||||
.byte 0x01
|
Loading…
Reference in New Issue