mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Include the full 64 bits of relocation data in the type info for MachO relocations, so that we can recognize scattered relocations.
llvm-svn: 143033
This commit is contained in:
parent
7a9bb4d47f
commit
27580bf1eb
@ -637,7 +637,9 @@ error_code MachOObjectFile::getRelocationType(DataRefImpl Rel,
|
||||
uint64_t &Res) const {
|
||||
InMemoryStruct<macho::RelocationEntry> RE;
|
||||
getRelocation(Rel, RE);
|
||||
Res = RE->Word1;
|
||||
Res = RE->Word0;
|
||||
Res <<= 32;
|
||||
Res |= RE->Word1;
|
||||
return object_error::success;
|
||||
}
|
||||
error_code MachOObjectFile::getRelocationTypeName(DataRefImpl Rel,
|
||||
|
Loading…
Reference in New Issue
Block a user