summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/RuntimeDyld/Targets
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2014-07-17 23:11:30 +0000
committerLang Hames <lhames@gmail.com>2014-07-17 23:11:30 +0000
commite5fc826f8876fc10308745833d94dcd428ffcb83 (patch)
treec29586d7ddbcf787a618192df9f5d3fe9b6a84c0 /llvm/lib/ExecutionEngine/RuntimeDyld/Targets
parentbe84b295b985211021894a1d27d3431296b4bcdc (diff)
downloadbcm5719-llvm-e5fc826f8876fc10308745833d94dcd428ffcb83.tar.gz
bcm5719-llvm-e5fc826f8876fc10308745833d94dcd428ffcb83.zip
[MCJIT] Fix the alignment requirements for ARM and AArch64 which were mistakenly
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. llvm-svn: 213331
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/Targets')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h2
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h b/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h
index c9fcedec50f..9f48e4439a5 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h
@@ -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,
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h b/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h
index 7e14992996a..1de99421982 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h
@@ -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,
OpenPOWER on IntegriCloud