[PATCH] D28498: [asan] Make ASan compatible with linker dead stripping on Linux.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 17 15:00:37 PST 2017


pcc added inline comments.


================
Comment at: lib/CodeGen/TargetLoweringObjectFileImpl.cpp:228
+
+  if (SectionName == "asan_globals") {
+    Flags |= ELF::SHF_ASSOCIATED;
----------------
Should this be testing a new flag on GlobalObject, rather than the section name?

Also, do we need to teach globaldce about this?


Repository:
  rL LLVM

https://reviews.llvm.org/D28498





More information about the llvm-commits mailing list