summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2019-05-30 19:59:20 +0000
committerLang Hames <lhames@gmail.com>2019-05-30 19:59:20 +0000
commit0e124b37bd7fa42ab1087668b1fa7c35a9684deb (patch)
treedbe815eb28e0f51b3af0f3f1539a81e5f52457c7 /llvm/test/ExecutionEngine
parent5f0f4e3ae03afa84034c01ddaac559e0b5cb6532 (diff)
downloadbcm5719-llvm-0e124b37bd7fa42ab1087668b1fa7c35a9684deb.tar.gz
bcm5719-llvm-0e124b37bd7fa42ab1087668b1fa7c35a9684deb.zip
[RuntimeDyld] Apply padding and alignment bumps to all sections with stubs, and
increase the MachO/x86-64 stub alignment to 8. Stub alignment should be guaranteed for any section containing RuntimeDyld stubs/GOT-entries. To do this we should pad and align all sections containing stubs, not just code sections. This commit also bumps the MachO/x86-64 stub alignment to 8, so that GOT entries will be aligned. llvm-svn: 362139
Diffstat (limited to 'llvm/test/ExecutionEngine')
-rw-r--r--llvm/test/ExecutionEngine/RuntimeDyld/X86/MachO_x86-64_PIC_relocations.s5
1 files changed, 3 insertions, 2 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 dc69a150725..92052957a37 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
@@ -22,8 +22,9 @@ insn2:
movl x(%rip), %eax
# Test PC-rel GOT relocation.
-# Verify both the contents of the GOT entry for y, and that the movq instruction
-# references the correct GOT entry address:
+# Verify the alignment of the GOT entry, the contents of the GOT entry for y,
+# and that the movq instruction references the correct GOT entry address:
+# rtdyld-check: stub_addr(test_x86-64.o/__text, y)[2:0] = 0
# rtdyld-check: *{8}(stub_addr(test_x86-64.o/__text, y)) = y
# rtdyld-check: decode_operand(insn3, 4) = stub_addr(test_x86-64.o/__text, y) - next_pc(insn3)
insn3:
OpenPOWER on IntegriCloud