brintos

brintos / llvm-project-archived public Read only

0
0
Text · 938 B · 3dfcf9e Raw
36 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o4# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/eh-frame-pcrel-overflow.s -o %t1.o5# RUN: ld.lld --eh-frame-hdr -Ttext=0x90000000 %t.o -o /dev/null6# RUN: not ld.lld --eh-frame-hdr %t.o %t1.o -o /dev/null 2>&1 | FileCheck %s7# RUN: ld.lld --eh-frame-hdr %t.o %t1.o -o /dev/null --noinhibit-exec 2>&1 | FileCheck %s --check-prefix=WARN8# CHECK: error: {{.*}}.o:(.eh_frame): PC offset is too large: 0x900010549# WARN: warning: {{.*}}.o:(.eh_frame): PC offset is too large: 0x9000105410 11.text12.global _start13_start:14  ret15 16.section .eh_frame,"a",@unwind17  .long 12   # Size18  .long 0x00 # ID19  .byte 0x01 # Version.20 21  .byte 0x52 # Augmentation string: 'R','\0'22  .byte 0x0023 24  .byte 0x0125 26  .byte 0x01 # LEB12827  .byte 0x01 # LEB12828 29  .byte 0x00 # DW_EH_PE_absptr30 31  .byte 0xFF32 33  .long 12  # Size34  .long 0x14 # ID35  .quad _start + 0x7000000036