diff options
| author | Lang Hames <lhames@gmail.com> | 2015-07-04 01:35:26 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2015-07-04 01:35:26 +0000 |
| commit | 78937c2ae54cda926dba2ab2a3fa4346cd2e7940 (patch) | |
| tree | a4ee7d8fe970470037c7a90bccde1358989cdb4c /llvm/test | |
| parent | b0398827c201c74d4653580274e2650a6275b283 (diff) | |
| download | bcm5719-llvm-78937c2ae54cda926dba2ab2a3fa4346cd2e7940.tar.gz bcm5719-llvm-78937c2ae54cda926dba2ab2a3fa4346cd2e7940.zip | |
[RuntimeDyld] Skip relocations for external symbols with 64-bit address ~0ULL.
Requested by Eugene Rozenfeld of the LLILC team, this feature allows JIT
clients to skip relocations for selected external symbols by returning ~0ULL
from their symbol resolver. If this value is returned for a given symbol,
RuntimeDyld will skip all relocations for that symbol. The client will be
responsible for applying the skipped relocations manually before the code
is executed.
llvm-svn: 241383
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/ExecutionEngine/RuntimeDyld/X86/MachO_x86-64_PIC_relocations.s | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/llvm/test/ExecutionEngine/RuntimeDyld/X86/MachO_x86-64_PIC_relocations.s b/llvm/test/ExecutionEngine/RuntimeDyld/X86/MachO_x86-64_PIC_relocations.s index f28e4d24599..2ef8cc439df 100644 --- a/llvm/test/ExecutionEngine/RuntimeDyld/X86/MachO_x86-64_PIC_relocations.s +++ b/llvm/test/ExecutionEngine/RuntimeDyld/X86/MachO_x86-64_PIC_relocations.s @@ -1,5 +1,5 @@ # RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -relocation-model=pic -filetype=obj -o %T/test_x86-64.o %s -# RUN: llvm-rtdyld -triple=x86_64-apple-macosx10.9 -verify -check=%s %/T/test_x86-64.o +# RUN: llvm-rtdyld -triple=x86_64-apple-macosx10.9 -dummy-extern ds1=0xfffffffffffffffe -dummy-extern ds2=0xffffffffffffffff -verify -check=%s %/T/test_x86-64.o .section __TEXT,__text,regular,pure_instructions .globl foo @@ -46,4 +46,15 @@ eh_frame_test: x: .long 5 +# Test dummy-extern relocation. +# rtdyld-check: *{8}z1 = ds1 +z1: + .quad ds1 + +# Test external-symbol relocation bypass: symbols with addr 0xffffffffffffffff +# don't have their relocations applied. +# rtdyld-check: *{8}z2 = 0 +z2: + .quad ds2 + .subsections_via_symbols |

