1# REQUIRES: x86 2 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 10 11.text 12.global _start 13_start: 14 ret 15 16.section .eh_frame,"a",@unwind 17 .long 12 # Size 18 .long 0x00 # ID 19 .byte 0x01 # Version. 20 21 .byte 0x52 # Augmentation string: 'R','\0' 22 .byte 0x00 23 24 .byte 0x01 25 26 .byte 0x01 # LEB128 27 .byte 0x01 # LEB128 28 29 .byte 0x00 # DW_EH_PE_absptr 30 31 .byte 0xFF 32 33 .long 12 # Size 34 .long 0x14 # ID 35 .quad _start + 0x70000000 36