28 lines · plain
1# RUN: rm -rf %t && mkdir -p %t2# RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj -o %t/test_ELF_x86-64_PC8.o %s3# RUN: llvm-rtdyld -triple=x86_64-pc-linux -verify -map-section test_ELF_x86-64_PC8.o,.text.bar=0x10000 -map-section test_ELF_x86-64_PC8.o,.text.baz=0x10040 %t/test_ELF_x86-64_PC8.o4# RUN: llvm-rtdyld -triple=x86_64-pc-linux -verify -map-section test_ELF_x86-64_PC8.o,.text.baz=0x10000 -map-section test_ELF_x86-64_PC8.o,.text.bar=0x10040 %t/test_ELF_x86-64_PC8.o5 6# Test that R_X86_64_PC8 relocation works.7 8 .section .text.bar,"ax"9 .align 16, 0x9010 .type bar,@function11bar:12 retq13.Ltmp1:14 .size bar, .Ltmp1-bar15 16 .section .text.baz,"ax"17 .align 16, 0x9018 .type baz,@function19baz:20 movq %rdi, %rcx21 jrcxz bar22 retq23.Ltmp2:24 .size baz, .Ltmp2-baz25 26 27 .section ".note.GNU-stack","",@progbits28