[PATCH] D37561: [ELF] - Don't crash when --emit-relocs is used with --gc-sections
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 14 11:13:05 PDT 2017
ruiu added inline comments.
================
Comment at: ELF/InputSection.cpp:86-88
+ Live = !Config->GcSections;
+ if (!(Flags & SHF_ALLOC))
+ Live = Type != SHT_REL && Type != SHT_RELA;
----------------
This is too magical that it needs comment.
https://reviews.llvm.org/D37561
More information about the llvm-commits
mailing list