[lld] [lld][macho] Error out gracefully when offset is outside literal section (PR #164660)
Ellis Hoag via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 24 11:59:15 PDT 2025
ellishg wrote:
I also see `ConcatInputSection::getOffset()`
https://github.com/llvm/llvm-project/blob/fb87708317e28573151d588bd117701dd77f2e16/lld/MachO/InputSection.h#L111
and `CStringInputSection::getOffset()`
https://github.com/llvm/llvm-project/blob/fb87708317e28573151d588bd117701dd77f2e16/lld/MachO/InputSection.cpp#L323-L327
For completeness, can we add this check to those functions too?
https://github.com/llvm/llvm-project/pull/164660
More information about the llvm-commits
mailing list