Thanks to visit codestin.com
Credit goes to github.com

Skip to content
8 changes: 8 additions & 0 deletions lld/ELF/Arch/PPC64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ class PPC64 final : public TargetInfo {

bool adjustPrologueForCrossSplitStack(uint8_t *Loc, uint8_t *End,
uint8_t StOther) const override;
uint32_t getThunkSectionSpacing() const override;
};
} // namespace

Expand Down Expand Up @@ -925,6 +926,13 @@ bool PPC64::adjustPrologueForCrossSplitStack(uint8_t *Loc, uint8_t *End,
return true;
}


uint32_t PPC64::getThunkSectionSpacing() const {
// REL14 range
return 0x8000;
}


TargetInfo *elf::getPPC64TargetInfo() {
static PPC64 Target;
return &Target;
Expand Down