[ELF] Bump the limit of thunk creation passes from 10 to 15

I have noticed that a 374MiB powerpc64le 'ld.lld' requires 11 passes to link.
There is a ThunkSection (whose parent OutputSection is ".text" of 169MiB) with 12867 thunks.
This commit is contained in:
Fangrui Song 2020-09-16 14:03:34 -07:00
parent cd13476ab5
commit 15f0ad2fa2
1 changed files with 2 additions and 2 deletions

View File

@ -1701,8 +1701,8 @@ template <class ELFT> void Writer<ELFT>::finalizeAddressDependentContent() {
bool changed = target->needsThunks && tc.createThunks(outputSections);
// With Thunk Size much smaller than branch range we expect to
// converge quickly; if we get to 10 something has gone wrong.
if (changed && tc.pass >= 10) {
// converge quickly; if we get to 15 something has gone wrong.
if (changed && tc.pass >= 15) {
error("thunk creation not converged");
break;
}