Made RuntimeDyldMachO support vanilla i386

relocations.  The algorithm is the same as
that for x86_64.  Scattered relocations, a
feature present in i386 but not on x86_64,
are not yet supported.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153466 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sean Callanan
2012-03-26 20:45:52 +00:00
parent c71108b6f8
commit b38aae442f
2 changed files with 44 additions and 0 deletions

View File

@@ -74,6 +74,13 @@ class RuntimeDyldMachO : public RuntimeDyldImpl {
unsigned Type,
unsigned Size,
int64_t Addend);
bool resolveI386Relocation(uint8_t *LocalAddress,
uint64_t FinalAddress,
uint64_t Value,
bool isPCRel,
unsigned Type,
unsigned Size,
int64_t Addend);
bool resolveX86_64Relocation(uint8_t *LocalAddress,
uint64_t FinalAddress,
uint64_t Value,