1# RUN: rm -rf %t && mkdir -p %t 2# RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj -o %t/test_ELF_x86-64_PC8.o %s 3# 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.o 4# 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.o 5 6# Test that R_X86_64_PC8 relocation works. 7 8 .section .text.bar,"ax" 9 .align 16, 0x90 10 .type bar,@function 11bar: 12 retq 13.Ltmp1: 14 .size bar, .Ltmp1-bar 15 16 .section .text.baz,"ax" 17 .align 16, 0x90 18 .type baz,@function 19baz: 20 movq %rdi, %rcx 21 jrcxz bar 22 retq 23.Ltmp2: 24 .size baz, .Ltmp2-baz 25 26 27 .section ".note.GNU-stack","",@progbits 28