[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / invalid-eh-frame2.s
blob87ce8ede725039417c73fbef4e9536b23c6d3b00
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
4 # RUN: not ld.lld --eh-frame-hdr %t -o /dev/null 2>&1 | FileCheck %s
6 # CHECK: error: corrupted .eh_frame: corrupted CIE (failed to read string)
7 # CHECK-NEXT: >>> defined in {{.*}}:(.eh_frame+0x9)
9 .section .eh_frame,"a",@unwind
10 .align 1
11 .byte 0x08
12 .byte 0x00
13 .byte 0x00
14 .byte 0x00
15 .byte 0x00
16 .byte 0x00
17 .byte 0x00
18 .byte 0x00
19 .byte 0x01
20 .byte 0x01
21 .byte 0x01
22 .byte 0x01