Skip to content

Commit 7327ca4

Browse files
Forestrykspoechsel
authored andcommitted
Add hint about large binary to relocation out of range error (#7)
1 parent 441b382 commit 7327ca4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lld/ELF/Relocations.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ void elf::reportRangeError(uint8_t *loc, const Relocation &rel, const Twine &v,
122122
hint += "; consider recompiling with -fdebug-types-section to reduce size "
123123
"of debug sections";
124124

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

0 commit comments

Comments
 (0)