[PATCH] D45788: Mitigate relocation overflow
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 26 14:59:21 PDT 2018
ruiu added inline comments.
================
Comment at: ELF/Writer.cpp:1690
template <class ELFT> void Writer<ELFT>::addStartEndSymbols() {
- auto Define = [&](StringRef Start, StringRef End, OutputSection *OS) {
- // These symbols resolve to the image base if the section does not exist.
- // A special value -1 indicates end of the section.
+ // These symbols resolve to the image base or ".text" if the section
+ // does not exist. Set symbol value to ".text" mitigates the possibilities
----------------
Please separate this part as a separate patch, as this patch contains two unrelated changes.
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D45788
More information about the llvm-commits
mailing list