[PATCH] D44601: LLD: Avoid segfault with --emit-relocs

Domagoj Stolfa via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 18 18:02:28 PDT 2018


dstolfa added a comment.

I've verified the breakage on Linux as well. It seems to be caused by InX::EhFrame->getParent() being nullptr when EmitRelocs is set. This is because near the start of the InputSection vector, there are additional input sections that end up pointing to InX::EhFrame as the parent and getOutputSectionName returns nullptr.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D44601





More information about the llvm-commits mailing list