22 lines · plain
1# RUN: rm -rf %t && mkdir %t && cd %t2# RUN: llvm-mc -triple=arm64-none-linux-gnu -large-code-model -filetype=obj -o large-reloc.o %s3# RUN: llvm-rtdyld -triple=arm64-none-linux-gnu -verify -map-section large-reloc.o,.eh_frame=0x10000 -map-section large-reloc.o,.text=0xffff000000000000 -check=%s large-reloc.o4# RUN: llvm-mc -triple=aarch64_be-none-linux-gnu -large-code-model -filetype=obj -o large-reloc.o %s5# RUN: llvm-rtdyld -triple=aarch64_be-none-linux-gnu -verify -map-section large-reloc.o,.eh_frame=0x10000 -map-section large-reloc.o,.text=0xffff000000000000 -check=%s large-reloc.o6 7 .text8 .globl g9 .p2align 210 .type g,@function11g:12 .cfi_startproc13 mov x0, xzr14 ret15 .Lfunc_end0:16 .size g, .Lfunc_end0-g17 .cfi_endproc18 19# Skip the CIE and load the 8 bytes PC begin pointer.20# Assuming the CIE and the FDE length are both 4 bytes.21# rtdyld-check: *{8}(section_addr(large-reloc.o, .eh_frame) + (*{4}(section_addr(large-reloc.o, .eh_frame))) + 0xc) = g - (section_addr(large-reloc.o, .eh_frame) + (*{4}(section_addr(large-reloc.o, .eh_frame))) + 0xc)22