[PATCH] D28435: [compiler-rt] Define delimiters for sanitizer coverage's binary section on Windows.

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 9 13:20:28 PST 2017


rnk added inline comments.


================
Comment at: lib/asan/asan_win_coverage_sections.cc:18
+__declspec(allocate(".SCOV$A")) uint32_t __start___sancov_guards = 0;
+__declspec(allocate(".SCOV$Z")) uint32_t __stop___sancov_guards = 0;
+}
----------------
You can use the same technique as asan_globals_win.cc to avoid having a dynamic initializer in every TU with coverage.


Repository:
  rL LLVM

https://reviews.llvm.org/D28435





More information about the llvm-commits mailing list