[PATCH] Make sure globals created by UBSan are not instrumented by ASan.

Alexey Samsonov vonosmas at gmail.com
Thu Jul 17 17:21:48 PDT 2014


Hi rsmith,

This change adds description of globals created by UBSan
instrumentation (UBSan handlers, type descriptors, filenames) to
llvm.asan.globals metadata, effectively "blacklisting" them. This can
dramatically decrease the data section in binaries built with UBSan+ASan,
as UBSan tends to create a lot of handlers, and ASan instrumentation
increases the global size to at least 64 bytes.

http://reviews.llvm.org/D4575

Files:
  lib/CodeGen/CGExpr.cpp
  lib/CodeGen/CodeGenModule.cpp
  lib/CodeGen/CodeGenModule.h
  test/CodeGenCXX/catch-undef-behavior.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4575.11618.patch
Type: text/x-patch
Size: 5431 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140718/5b7b3240/attachment.bin>


More information about the cfe-commits mailing list