[Sanitizer] Use different MemoryMappingLayout::DumpListOfModules on Linux and Mac.

Make a unit test added in r198004 more robust.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@198012 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Remove now unused symbolization functionality from MemoryMappingLayout

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@198014 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Make sure none of the __asan_gen_ global strings end up in the symbol table, add a test.

This should fix http://llvm.org/bugs/show_bug.cgi?id=17976
Another test checking for the global variables' locations and prefixes on Darwin will be committed separately.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@198017 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Fix the test for __asan_gen_ globals and actually fix http://llvm.org/bugs/show_bug.cgi?id=17976
by setting the correct linkage (as stated in the bug).


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@198018 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Minor code health stuff.

- introduce logging macros
- fix incorrect vector construction

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@198021 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Add a test for __asan_gen_ globals labels on Darwin.

Per Nick Kledzik (http://llvm.org/bugs/show_bug.cgi?id=17976):
"""
For MacOSX, the labels in __cstring section should be 'L' labels, and the labels
in the __const section should be non-L or 'l' labels.  The later ('l') will cause
the linker to remove the label in the final executable.
"""

, so we need to ensure that the globals emitted by ASan have appropriate labels.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@198022 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Add Symbolizer::GetModuleNameAndOffsetForPC() and use it in LSan suppression matching.

This allows us to avoid retrieving file/line info for suppressed modules.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@198025 91177308-0d34-0410-b5e6-96231b3b80d8