[PATCH] D26771: [asan] Create a .ASAN$G(A-Z) section for global registration

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 16 15:20:20 PST 2016


rnk created this revision.
rnk added reviewers: pcc, kcc, mehdi_amini, kubabrecka.
rnk added a subscriber: llvm-commits.
Herald added a subscriber: mgorny.

The expectation is that new instrumented code will add global variable
metadata to the .ASAN$GL section, and we will use this new code to
iterate over it.

This technique seems to break when using incremental linking, which
seems to align every global to a 256 byte boundary. Presumably this is
so that it can incrementally cope with global changing size. Clang
already passes -incremental:no as a linker flag when you invoke it to do
the link step.


https://reviews.llvm.org/D26771

Files:
  lib/asan/CMakeLists.txt
  lib/asan/asan_globals.cc
  lib/asan/asan_globals_win.cc
  lib/asan/asan_globals_win.h
  lib/asan/asan_win.cc
  lib/asan/asan_win_dll_thunk.cc
  lib/asan/asan_win_dynamic_runtime_thunk.cc
  lib/asan/tests/CMakeLists.txt
  test/asan/TestCases/Windows/global-dead-strip.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26771.78274.patch
Type: text/x-patch
Size: 7573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161116/7d9f63d4/attachment.bin>


More information about the llvm-commits mailing list