diff options
| author | Igor Kudrin <ikudrin.dev@gmail.com> | 2015-11-17 17:47:53 +0000 |
|---|---|---|
| committer | Igor Kudrin <ikudrin.dev@gmail.com> | 2015-11-17 17:47:53 +0000 |
| commit | e7ad0937bb3a38701c9358809f59f1c2bda769c3 (patch) | |
| tree | 3c6ce710a4ef3b42e22dc9f32961507df95429f8 | |
| parent | 6059ef98d99df1bb6bc47e57c7620b8836c33861 (diff) | |
| download | bcm5719-llvm-e7ad0937bb3a38701c9358809f59f1c2bda769c3.tar.gz bcm5719-llvm-e7ad0937bb3a38701c9358809f59f1c2bda769c3.zip | |
[ELF2] getPLTRefReloc() -> getPltRefReloc().
llvm-svn: 253351
| -rw-r--r-- | lld/ELF/InputSection.cpp | 2 | ||||
| -rw-r--r-- | lld/ELF/Target.cpp | 6 | ||||
| -rw-r--r-- | lld/ELF/Target.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index bd11ab58e4c..c8dc53f2b32 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -137,7 +137,7 @@ void InputSectionBase<ELFT>::relocate( uintX_t SymVA = getSymVA<ELFT>(Body); if (Target->relocNeedsPlt(Type, Body)) { SymVA = Out<ELFT>::Plt->getEntryAddr(Body); - Type = Target->getPLTRefReloc(Type); + Type = Target->getPltRefReloc(Type); } else if (Target->relocNeedsGot(Type, Body)) { SymVA = Out<ELFT>::Got->getEntryAddr(Body); Type = Body.isTLS() ? Target->getTlsGotReloc() : Target->getGotRefReloc(); diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp index 269a4d7dc63..513eccb41d3 100644 --- a/lld/ELF/Target.cpp +++ b/lld/ELF/Target.cpp @@ -61,7 +61,7 @@ public: class X86_64TargetInfo final : public TargetInfo { public: X86_64TargetInfo(); - unsigned getPLTRefReloc(unsigned Type) const override; + unsigned getPltRefReloc(unsigned Type) const override; void writeGotPltHeaderEntries(uint8_t *Buf) const override; void writeGotPltEntry(uint8_t *Buf, uint64_t Plt) const override; void writePltZeroEntry(uint8_t *Buf, uint64_t GotEntryAddr, @@ -152,7 +152,7 @@ bool TargetInfo::relocNeedsCopy(uint32_t Type, const SymbolBody &S) const { return false; } -unsigned TargetInfo::getPLTRefReloc(unsigned Type) const { return PCRelReloc; } +unsigned TargetInfo::getPltRefReloc(unsigned Type) const { return PCRelReloc; } bool TargetInfo::relocPointsToGot(uint32_t Type) const { return false; } @@ -279,7 +279,7 @@ bool X86_64TargetInfo::relocNeedsGot(uint32_t Type, const SymbolBody &S) const { relocNeedsPlt(Type, S); } -unsigned X86_64TargetInfo::getPLTRefReloc(unsigned Type) const { +unsigned X86_64TargetInfo::getPltRefReloc(unsigned Type) const { if (Type == R_X86_64_PLT32) return R_X86_64_PC32; return Type; diff --git a/lld/ELF/Target.h b/lld/ELF/Target.h index c095c67b5c6..b8f631b3e7b 100644 --- a/lld/ELF/Target.h +++ b/lld/ELF/Target.h @@ -44,7 +44,7 @@ public: bool supportsLazyRelocations() const { return LazyRelocations; } unsigned getGotHeaderEntriesNum() const { return GotHeaderEntriesNum; } unsigned getGotPltHeaderEntriesNum() const { return GotPltHeaderEntriesNum; } - virtual unsigned getPLTRefReloc(unsigned Type) const; + virtual unsigned getPltRefReloc(unsigned Type) const; virtual void writeGotHeaderEntries(uint8_t *Buf) const; virtual void writeGotPltHeaderEntries(uint8_t *Buf) const; virtual void writeGotPltEntry(uint8_t *Buf, uint64_t Plt) const = 0; |

