3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/eh-frame-pcrel-overflow.s -o %t1.o
5 # RUN: ld.lld --eh-frame-hdr -Ttext=0x90000000 %t.o -o /dev/null
6 # RUN: not ld.lld --eh-frame-hdr %t.o %t1.o -o /dev/null 2>&1 | FileCheck %s
7 # RUN: ld.lld --eh-frame-hdr %t.o %t1.o -o /dev/null --noinhibit-exec 2>&1 | FileCheck %s --check-prefix=WARN
8 # CHECK: error: {{.*}}.o:(.eh_frame): PC offset is too large: 0x90001054
9 # WARN: warning: {{.*}}.o:(.eh_frame): PC offset is too large: 0x90001054
16 .section .eh_frame,"a",@unwind
21 .byte 0x52 # Augmentation string: 'R','\0'
29 .byte 0x00 # DW_EH_PE_absptr
35 .quad _start + 0x70000000