Skip to content

Commit 57b330f

Browse files
authored
Add hint about large binary to relocation out of range error (#7)
1 parent cf1b9ac commit 57b330f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lld/ELF/Relocations.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ void elf::reportRangeError(uint8_t *loc, const Relocation &rel, const Twine &v,
110110
hint += "; consider recompiling with -fdebug-types-section to reduce size "
111111
"of debug sections";
112112

113+
hint += "; this likely happened because your binary is too big, see https://wiki/x/EQbxK for more info";
114+
113115
errorOrWarn(errPlace.loc + "relocation " + lld::toString(rel.type) +
114116
" out of range: " + v.str() + " is not in [" + Twine(min).str() +
115117
", " + Twine(max).str() + "]" + hint);

0 commit comments

Comments
 (0)