[PATCH] D24733: [ELF] Add .debug* and .comment sections to the list of sections ignored by GC.

Eugene Leviant via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 19 10:50:25 PDT 2016


evgeny777 added inline comments.

================
Comment at: ELF/MarkLive.cpp:72
@@ -71,3 +71,3 @@
   auto *D = dyn_cast<DefinedRegular<ELFT>>(&B);
-  if (!D || !D->Section)
+  if (!D || !D->Section || D->Section == &InputSectionBase<ELFT>::Discarded)
     return {nullptr, 0};
----------------
rafael wrote:
> Is this tested in this patch? Can in be in a followup?
This is needed for .debug_lines section, because it has relocations to comdat sections. I'll update test case for this change.


Repository:
  rL LLVM

https://reviews.llvm.org/D24733





More information about the llvm-commits mailing list