diff options
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp b/lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp index 0bd12958b27..eadeeb43848 100644 --- a/lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp +++ b/lld/lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp @@ -245,7 +245,7 @@ protected: public: AArch64RelocationPass(const ELFLinkingContext &ctx) - : _file(ctx), _ctx(ctx), _null(nullptr), _PLT0(nullptr), _got0(nullptr), + : _file(ctx), _ctx(ctx), _null(nullptr), _plt0(nullptr), _got0(nullptr), _got1(nullptr) {} /// \brief Do the pass. @@ -289,9 +289,9 @@ public: // Add all created atoms to the link. uint64_t ordinal = 0; - if (_PLT0) { - _PLT0->setOrdinal(ordinal++); - mf->addAtom(*_PLT0); + if (_plt0) { + _plt0->setOrdinal(ordinal++); + mf->addAtom(*_plt0); } for (auto &plt : _pltVector) { plt->setOrdinal(ordinal++); @@ -301,7 +301,7 @@ public: _null->setOrdinal(ordinal++); mf->addAtom(*_null); } - if (_PLT0) { + if (_plt0) { _got0->setOrdinal(ordinal++); _got1->setOrdinal(ordinal++); mf->addAtom(*_got0); @@ -342,7 +342,7 @@ protected: /// \brief The got and plt entries for .PLT0. This is used to call into the /// dynamic linker for symbol resolution. /// @{ - PLT0Atom *_PLT0; + PLT0Atom *_plt0; GOTAtom *_got0; GOTAtom *_got1; /// @} @@ -394,22 +394,22 @@ public: : AArch64RelocationPass(ctx) {} const PLT0Atom *getPLT0() { - if (_PLT0) - return _PLT0; + if (_plt0) + return _plt0; // Fill in the null entry. getNullGOT(); - _PLT0 = new (_file._alloc) AArch64PLT0Atom(_file); + _plt0 = new (_file._alloc) AArch64PLT0Atom(_file); _got0 = new (_file._alloc) AArch64GOTAtom(_file, ".got.plt"); _got1 = new (_file._alloc) AArch64GOTAtom(_file, ".got.plt"); - _PLT0->addReferenceELF_AArch64(R_AARCH64_ADR_GOT_PAGE, 4, _got0, 0); - _PLT0->addReferenceELF_AArch64(R_AARCH64_LD64_GOT_LO12_NC, 8, _got1, 0); - _PLT0->addReferenceELF_AArch64(ADD_AARCH64_GOTRELINDEX, 12, _got1, 0); + _plt0->addReferenceELF_AArch64(R_AARCH64_ADR_GOT_PAGE, 4, _got0, 0); + _plt0->addReferenceELF_AArch64(R_AARCH64_LD64_GOT_LO12_NC, 8, _got1, 0); + _plt0->addReferenceELF_AArch64(ADD_AARCH64_GOTRELINDEX, 12, _got1, 0); #ifndef NDEBUG - _PLT0->_name = "__PLT0"; + _plt0->_name = "__PLT0"; _got0->_name = "__got0"; _got1->_name = "__got1"; #endif - return _PLT0; + return _plt0; } const PLTAtom *getPLTEntry(const Atom *a) { |

