diff options
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/ArchHandler_x86.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/MachO/ArchHandler_x86.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lld/lib/ReaderWriter/MachO/ArchHandler_x86.cpp b/lld/lib/ReaderWriter/MachO/ArchHandler_x86.cpp index 4f83cd1ca6c..19c8780e707 100644 --- a/lld/lib/ReaderWriter/MachO/ArchHandler_x86.cpp +++ b/lld/lib/ReaderWriter/MachO/ArchHandler_x86.cpp @@ -152,7 +152,7 @@ private: lazyPointer, /// Location contains a lazy pointer. lazyImmediateLocation, /// Location contains immediate value used in stub. }; - + static bool useExternalRelocationTo(const Atom &target); void applyFixupFinal(const Reference &ref, uint8_t *location, @@ -170,9 +170,9 @@ private: //===----------------------------------------------------------------------===// ArchHandler_x86::ArchHandler_x86() {} - + ArchHandler_x86::~ArchHandler_x86() { } - + const Registry::KindStrings ArchHandler_x86::_sKindStrings[] = { LLD_KIND_STRING_ENTRY(invalid), LLD_KIND_STRING_ENTRY(modeCode), @@ -192,29 +192,29 @@ const Registry::KindStrings ArchHandler_x86::_sKindStrings[] = { const ArchHandler::StubInfo ArchHandler_x86::_sStubInfo = { "dyld_stub_binder", - // Lazy pointer references + // Lazy pointer references { Reference::KindArch::x86, pointer32, 0, 0 }, { Reference::KindArch::x86, lazyPointer, 0, 0 }, - + // GOT pointer to dyld_stub_binder { Reference::KindArch::x86, pointer32, 0, 0 }, // x86 code alignment - 1, - + 1, + // Stub size and code - 6, + 6, { 0xff, 0x25, 0x00, 0x00, 0x00, 0x00 }, // jmp *lazyPointer { Reference::KindArch::x86, abs32, 2, 0 }, { false, 0, 0, 0 }, - + // Stub Helper size and code 10, { 0x68, 0x00, 0x00, 0x00, 0x00, // pushl $lazy-info-offset 0xE9, 0x00, 0x00, 0x00, 0x00 }, // jmp helperhelper { Reference::KindArch::x86, lazyImmediateLocation, 1, 0 }, { Reference::KindArch::x86, branch32, 6, 0 }, - + // Stub Helper-Common size and code 12, { 0x68, 0x00, 0x00, 0x00, 0x00, // pushl $dyld_ImageLoaderCache @@ -375,7 +375,7 @@ ArchHandler_x86::getPairReferenceInfo(const normalized::Relocation &reloc1, if (ec) return ec; if (fromTarget != inAtom) { - if (*target != inAtom) + if (*target != inAtom) return make_dynamic_error_code(Twine("SECTDIFF relocation where " "neither target is in atom")); *kind = negDelta32; |

