[MCJIT] Fix the alignment requirements for ARM and AArch64 which were mistakenly
authorLang Hames <lhames@gmail.com>
Thu, 17 Jul 2014 23:11:30 +0000 (23:11 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 17 Jul 2014 23:11:30 +0000 (23:11 +0000)
relaxed in the big RuntimeDyldMachO cleanup of r213293.

No test case yet - this was found via inspection and there's no easy way to test
GOT alignment in RuntimeDyldChecker at the moment. I'm working on adding support
for this now, and hope to have a test case for this soon.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213331 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h

index c9fcedec50f09bc8e0824db90a9c41a62f9deac1..9f48e4439a5388fd10ced487686bdb5f0faca274 100644 (file)
@@ -24,7 +24,7 @@ public:
 
   unsigned getMaxStubSize() override { return 8; }
 
-  unsigned getStubAlignment() override { return 1; }
+  unsigned getStubAlignment() override { return 8; }
 
   relocation_iterator
   processRelocationRef(unsigned SectionID, relocation_iterator RelI,
index 7e14992996abe3699167d64ed33dbefeb5e6954b..1de9942198249a695bcb623bff21bbab03b8b183 100644 (file)
@@ -23,7 +23,7 @@ public:
 
   unsigned getMaxStubSize() override { return 8; }
 
-  unsigned getStubAlignment() override { return 1; }
+  unsigned getStubAlignment() override { return 4; }
 
   relocation_iterator
   processRelocationRef(unsigned SectionID, relocation_iterator RelI,