[PATCH] D35798: [compiler-rt] Allow libignore to handle modules with multiple executable sections

Francis Ricci via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 24 07:20:13 PDT 2017


fjricci created this revision.
Herald added a subscriber: dberris.

Darwin procmaps added support for section-level memory mappings.
This patch ensures that libignore doesn't Die() when encountering a suppression
file match in a module with multiple executable sections.


https://reviews.llvm.org/D35798

Files:
  lib/sanitizer_common/sanitizer_libignore.cc


Index: lib/sanitizer_common/sanitizer_libignore.cc
===================================================================
--- lib/sanitizer_common/sanitizer_libignore.cc
+++ lib/sanitizer_common/sanitizer_libignore.cc
@@ -71,7 +71,7 @@
         }
         loaded = true;
         if (lib->loaded)
-          continue;
+          break;
         VReport(1,
                 "Matched called_from_lib suppression '%s' against library"
                 " '%s'\n",


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35798.107898.patch
Type: text/x-patch
Size: 457 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170724/3557d5cd/attachment.bin>


More information about the llvm-commits mailing list