diff options
Diffstat (limited to 'ELF/Arch/PPC.cpp')
| -rw-r--r-- | ELF/Arch/PPC.cpp | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/ELF/Arch/PPC.cpp b/ELF/Arch/PPC.cpp index 6af0df331df6..20cae0e59cf4 100644 --- a/ELF/Arch/PPC.cpp +++ b/ELF/Arch/PPC.cpp @@ -21,13 +21,18 @@ using namespace lld::elf;  namespace {  class PPC final : public TargetInfo {  public: -  PPC() { GotBaseSymOff = 0x8000; } +  PPC();    void relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const override;    RelExpr getRelExpr(RelType Type, const Symbol &S,                       const uint8_t *Loc) const override;  };  } // namespace +PPC::PPC() { +  GotBaseSymOff = 0x8000; +  GotBaseSymInGotPlt = false; +} +  RelExpr PPC::getRelExpr(RelType Type, const Symbol &S,                          const uint8_t *Loc) const {    switch (Type) {  | 
