Skip to content

Commit 9f2bdd2

Browse files
committed
adalava - implement PPC64::getThunkSectionSpacing() as workaround to "large files issue":
https://bugs.llvm.org/show_bug.cgi?id=40740
1 parent 6b293b1 commit 9f2bdd2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lld/ELF/Arch/PPC64.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ class PPC64 final : public TargetInfo {
123123

124124
bool adjustPrologueForCrossSplitStack(uint8_t *Loc, uint8_t *End,
125125
uint8_t StOther) const override;
126+
uint32_t getThunkSectionSpacing() const override;
126127
};
127128
} // namespace
128129

@@ -925,6 +926,13 @@ bool PPC64::adjustPrologueForCrossSplitStack(uint8_t *Loc, uint8_t *End,
925926
return true;
926927
}
927928

929+
930+
uint32_t PPC64::getThunkSectionSpacing() const {
931+
// REL14 range
932+
return 0x8000;
933+
}
934+
935+
928936
TargetInfo *elf::getPPC64TargetInfo() {
929937
static PPC64 Target;
930938
return &Target;

0 commit comments

Comments
 (0)