1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00
llvm-mirror/test/DebugInfo/X86/eh-frame-cie-id.s
Igor Kudrin 6b87aa0046 [DebugInfo] Refine the condition to detect CIEs.
The condition was not accurate enough and could interpret some FDEs in
.eh_frame or 64-bit DWARF .debug_frame sections as CIEs. Even though
such FDEs are unlikely in a normal situation, the wrong interpretation
could hide an issue in a buggy generator.

Differential Revision: https://reviews.llvm.org/D73886
2020-03-05 17:37:09 +07:00

16 lines
578 B
ArmAsm

# RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o - | \
# RUN: not --crash llvm-dwarfdump -debug-frame - 2>&1 | \
# RUN: FileCheck %s
# CHECK: Parsing FDE data at 0 failed due to missing CIE
.section .eh_frame,"a",@unwind
## This FDE was formerly wrongly interpreted as a CIE because its CIE pointer
## is similar to CIE id of a .debug_frame FDE.
.long .Lend - .LCIEptr # Length
.LCIEptr:
.long 0xffffffff # CIE pointer
.quad 0x1111abcd # Initial location
.quad 0x00010000 # Address range
.Lend: