[llvm] [ASAN] For Asan instrumented global, emit two symbols, one with actual size and other with instrumented size. (PR #70166)

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 25 00:03:50 PDT 2023


================
@@ -868,14 +881,27 @@ void AsmPrinter::emitGlobalVariable(const GlobalVariable *GV) {
 
   MCSymbol *EmittedInitSym = GVSym;
 
+  if (GV->hasAttribute(Attribute::SanitizeAddress)) {
----------------
skc7 wrote:

This would be replaced by "asan_instrumented" attribute, once #68865 gets accepted.

https://github.com/llvm/llvm-project/pull/70166


More information about the llvm-commits mailing list