1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/eh-frame-reloc-out-of-range.s -o %t.o 3# RUN: not ld.lld %t.o -T %s -o /dev/null 2>&1 | FileCheck %s 4 5PHDRS { eh PT_LOAD; text PT_LOAD; } 6SECTIONS { . = 0x10000; 7 .eh_frame_hdr : { *(.eh_frame_hdr*) } : eh 8 .eh_frame : { *(.eh_frame) } : eh 9 . = 0xF00000000; 10 .text : { *(.text*) } : text 11} 12 13# CHECK: error: {{.*}}:(.eh_frame+0x20): relocation R_X86_64_PC32 out of range: 64424443872 is not in [-2147483648, 2147483647] 14