From 4669cd08a75d1969a1b8b3deb7890b8fc0c00303 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Thu, 11 Sep 2014 17:27:01 +0000 Subject: [MCJIT] Take the relocation addend into account when applying ARM MachO VANILLA and BR24 relocations. llvm-svn: 217605 --- llvm/test/ExecutionEngine/RuntimeDyld/ARM/MachO_ARM_PIC_relocations.s | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/test/ExecutionEngine') 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 -- cgit v1.2.3