[PATCH] D29636: [ELF] - Added partial support for --emit-relocs (no --gc-section case) #2

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 7 06:27:24 PST 2017


grimar added a comment.

So difference with https://reviews.llvm.org/D29273 is scanRelocationSections() method which scans over REL[A} sections after
proccessing the commands and marks all relocation sections that refer to dead target also as dead.
That way we do not emit them to the output, do not crash, what is expected and does not use DependentSection member also.
What keeps it be used for GC cases only.


https://reviews.llvm.org/D29636





More information about the llvm-commits mailing list