[PATCH] D93367: [ELF] --emit-relocs: fix a crash if .rela.dyn is an empty output section
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 16 00:22:33 PST 2020
grimar added inline comments.
================
Comment at: lld/ELF/OutputSections.cpp:406
// all InputSections in the OutputSection have the same dependency.
if (auto *ex = dyn_cast<ARMExidxSyntheticSection>(first))
link = ex->getLinkOrderDep()->getParent()->sectionIndex;
----------------
I wonder if the same crash can happen here with an empty `.ARM.exidx`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93367/new/
https://reviews.llvm.org/D93367
More information about the llvm-commits
mailing list