summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2014-09-11 17:27:01 +0000
committerLang Hames <lhames@gmail.com>2014-09-11 17:27:01 +0000
commit4669cd08a75d1969a1b8b3deb7890b8fc0c00303 (patch)
treea1b11f71188bc128d8b25b6bedc00604ec226990 /llvm/test/ExecutionEngine
parenteb7c1a6e50a6790cf498dc44ccb63ba1dc7447e2 (diff)
downloadbcm5719-llvm-4669cd08a75d1969a1b8b3deb7890b8fc0c00303.tar.gz
bcm5719-llvm-4669cd08a75d1969a1b8b3deb7890b8fc0c00303.zip
[MCJIT] Take the relocation addend into account when applying ARM MachO VANILLA
and BR24 relocations. <rdar://problem/18296496> llvm-svn: 217605
Diffstat (limited to 'llvm/test/ExecutionEngine')
-rw-r--r--llvm/test/ExecutionEngine/RuntimeDyld/ARM/MachO_ARM_PIC_relocations.s3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/RuntimeDyld/ARM/MachO_ARM_PIC_relocations.s b/llvm/test/ExecutionEngine/RuntimeDyld/ARM/MachO_ARM_PIC_relocations.s
index d0d30271f0d..2dc776cd447 100644
--- a/llvm/test/ExecutionEngine/RuntimeDyld/ARM/MachO_ARM_PIC_relocations.s
+++ b/llvm/test/ExecutionEngine/RuntimeDyld/ARM/MachO_ARM_PIC_relocations.s
@@ -34,6 +34,9 @@ insn3:
foo:
bx lr
+# Add 'aaa' to the common symbols to make sure 'baz' isn't at the start of the
+# section. This ensures that we test VANILLA relocation addends correctly.
+ .comm aaa, 4, 2
.comm baz, 4, 2
.subsections_via_symbols
OpenPOWER on IntegriCloud