summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/test/ELF/invalid/Inputs/cie-version2.elfbin1128 -> 0 bytes
-rw-r--r--lld/test/ELF/invalid/eh-frame-hdr-no-out.s21
2 files changed, 17 insertions, 4 deletions
diff --git a/lld/test/ELF/invalid/Inputs/cie-version2.elf b/lld/test/ELF/invalid/Inputs/cie-version2.elf
deleted file mode 100644
index 87f8a5be76f..00000000000
--- a/lld/test/ELF/invalid/Inputs/cie-version2.elf
+++ /dev/null
Binary files differ
diff --git a/lld/test/ELF/invalid/eh-frame-hdr-no-out.s b/lld/test/ELF/invalid/eh-frame-hdr-no-out.s
index 8379253d9fd..3e82cd92d2c 100644
--- a/lld/test/ELF/invalid/eh-frame-hdr-no-out.s
+++ b/lld/test/ELF/invalid/eh-frame-hdr-no-out.s
@@ -1,6 +1,19 @@
// REQUIRES: x86
-// RUN: not ld.lld --eh-frame-hdr %p/Inputs/cie-version2.elf -o %t >& %t.log
-// RUN: FileCheck %s < %t.log
+// 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
-// cie-version2.elf contains unsupported version of CIE = 2.
-// CHECK: FDE version 1 or 3 expected, but got 2
+// CHECK: error: corrupted .eh_frame: FDE version 1 or 3 expected, but got 2
+
+.section .eh_frame
+ .byte 0x08
+ .byte 0x00
+ .byte 0x00
+ .byte 0x00
+ .byte 0x00
+ .byte 0x00
+ .byte 0x00
+ .byte 0x00
+ .byte 0x02
+ .byte 0x00
+ .byte 0x00
+ .byte 0x00
OpenPOWER on IntegriCloud