mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-15 07:33:18 +00:00
[RuntimeDyld] Fix stub size and offset for AArch64 in RuntimeDyldMachO.h.
<rdar://problem/17648000> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212864 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b233e0ea1e
commit
f7d3052fc7
@ -16,7 +16,6 @@
|
||||
|
||||
#include "ObjectImageCommon.h"
|
||||
#include "RuntimeDyldImpl.h"
|
||||
#include "llvm/ADT/IndexedMap.h"
|
||||
#include "llvm/Object/MachO.h"
|
||||
#include "llvm/Support/Format.h"
|
||||
|
||||
@ -56,11 +55,20 @@ private:
|
||||
return 8; // 32-bit instruction and 32-bit address
|
||||
else if (Arch == Triple::x86_64)
|
||||
return 8; // GOT entry
|
||||
else if (Arch == Triple::arm64)
|
||||
return 8; // GOT entry
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned getStubAlignment() override { return 1; }
|
||||
unsigned getStubAlignment() override {
|
||||
if (Arch == Triple::arm || Arch == Triple::thumb)
|
||||
return 4;
|
||||
else if (Arch == Triple::arm64)
|
||||
return 8;
|
||||
else
|
||||
return 1;
|
||||
}
|
||||
|
||||
relocation_iterator processSECTDIFFRelocation(
|
||||
unsigned SectionID,
|
||||
|
Loading…
x
Reference in New Issue
Block a user