llvm-project/compiler-rt/lib/scudo/standalone
Amy Kwan 4cd8dd3fe0 [scudo][standalone] Link tests against libatomic if libatomic exists
It is possible that libatomic does not exist on some systems. This patch updates
the scudo standalone tests to link against libatomic if the library exists.

This is an update to the original patch: https://reviews.llvm.org/D64134 and
aims to resolve https://bugs.llvm.org/show_bug.cgi?id=51431.

Differential Revision: https://reviews.llvm.org/D108503
2021-08-22 13:47:04 -05:00
..
benchmarks [scudo] Get rid of initLinkerInitialized 2021-05-26 09:53:40 -07:00
fuzz scudo: Add support for tracking stack traces of secondary allocations. 2021-03-09 11:43:03 -08:00
include/scudo [scudo] Handle predefined M_MEMTAG_TUNING_* constants (NFC). 2021-06-22 17:39:55 -07:00
tests [scudo][standalone] Link tests against libatomic if libatomic exists 2021-08-22 13:47:04 -05:00
tools [scudo] [standalone] [NFC] clang-format code. 2020-12-10 12:25:42 -08:00
CMakeLists.txt [sanitizer] Fix for CMAKE_CXX_FLAGS update 2021-08-19 12:05:55 -07:00
allocator_config.h [scudo] Enabled MTE before the first allocator 2021-06-23 23:01:26 -07:00
atomic_helpers.h scudo: Make it thread-safe to set some runtime configuration flags. 2020-09-30 09:42:45 -07:00
bytemap.h [scudo] Get rid of initLinkerInitialized 2021-05-26 09:53:40 -07:00
checksum.cpp Add vendor identity check for Hygon Dhyana processor in Scudo 2020-05-11 09:17:57 -07:00
checksum.h scudo: Replace a couple of macros with their expansions. 2019-11-27 10:12:27 -08:00
chunk.h scudo: Add an API for disabling memory initialization per-thread. 2020-09-18 12:04:27 -07:00
combined.h [scudo] Use stdint types for internal types (redo) 2021-08-16 14:46:42 -07:00
common.cpp [scudo] Rework dieOnMapUnmapError 2021-05-25 08:27:37 -07:00
common.h [scudo] Add Scudo support for Trusty OS 2021-06-08 14:02:10 -07:00
crc32_hw.cpp [scudo][standalone] Get statistics in a char buffer 2019-10-09 15:09:28 +00:00
flags.cpp [scudo][standalone] Restore GWP-ASan flag parsing 2021-01-27 12:35:34 -08:00
flags.h [Scudo] [GWP-ASan] Add GWP-ASan to Scudo Standalone. 2019-12-13 09:09:41 -08:00
flags.inc [Scudo] Delete unused flag 'rss_limit_mb'. 2021-05-14 13:45:43 -07:00
flags_parser.cpp scudo: Replace a couple of macros with their expansions. 2019-11-27 10:12:27 -08:00
flags_parser.h [scudo][standalone] Restore GWP-ASan flag parsing 2021-01-27 12:35:34 -08:00
fuchsia.cpp [scudo] Rework dieOnMapUnmapError 2021-05-25 08:27:37 -07:00
fuchsia.h [scudo][standalone] Introduce the Secondary allocator 2019-04-24 14:20:49 +00:00
internal_defs.h [scudo] Use stdint types for internal types (redo) 2021-08-16 14:46:42 -07:00
linux.cpp [scudo] Remove false DCHECK 2021-07-01 12:06:33 -07:00
linux.h scudo: Introduce a new mechanism to let Scudo access a platform-specific TLS slot 2020-09-10 19:14:28 -07:00
list.h [scudo] Use require_constant_initialization 2021-05-01 01:46:47 -07:00
local_cache.h [scudo] Get rid of initLinkerInitialized 2021-05-26 09:53:40 -07:00
memtag.h [scudo] Don't enabled MTE for small alignment 2021-07-14 12:04:16 -07:00
mutex.h [scudo] Get rid of initLinkerInitialized 2021-05-26 09:53:40 -07:00
options.h [scudo] Use require_constant_initialization 2021-05-01 01:46:47 -07:00
platform.h [scudo] Add Scudo support for Trusty OS 2021-06-08 14:02:10 -07:00
primary32.h [scudo] Ensure proper allocator alignment in TSD test 2021-06-16 14:21:58 -07:00
primary64.h [scudo] Fix format string specifiers 2021-08-17 08:37:49 -07:00
quarantine.h [scudo] Ensure proper allocator alignment in TSD test 2021-06-16 14:21:58 -07:00
release.cpp [scudo][standalone] Release smaller blocks less often 2020-07-16 09:44:25 -07:00
release.h [scudo][standalone] Fuchsia related fixes 2021-04-15 13:26:23 -07:00
report.cpp [scudo] Rework Vector/String 2021-06-03 18:12:24 -07:00
report.h [scudo][standalone] Add error reports 2019-03-20 14:31:23 +00:00
secondary.h [scudo] Fix format string specifiers 2021-08-17 08:37:49 -07:00
size_class_map.h [scudo] Fix format string specifiers 2021-08-17 08:37:49 -07:00
stack_depot.h [scudo] Use require_constant_initialization 2021-05-01 01:46:47 -07:00
stats.h [scudo] Get rid of initLinkerInitialized 2021-05-26 09:53:40 -07:00
string_utils.cpp scudo/standalone: prepare for enabling format string checking 2021-08-13 13:45:30 +02:00
string_utils.h scudo/standalone: prepare for enabling format string checking 2021-08-13 13:45:30 +02:00
trusty.cpp [scudo] Add Scudo support for Trusty OS 2021-06-08 14:02:10 -07:00
trusty.h [scudo] Add Scudo support for Trusty OS 2021-06-08 14:02:10 -07:00
tsd.h [scudo] Ensure proper allocator alignment in TSD test 2021-06-16 14:21:58 -07:00
tsd_exclusive.h [scudo] Get rid of initLinkerInitialized 2021-05-26 09:53:40 -07:00
tsd_shared.h [scudo] Get rid of initLinkerInitialized 2021-05-26 09:53:40 -07:00
vector.h [scudo] Make Vector() constexpr 2021-08-03 08:07:27 -07:00
wrappers_c.cpp [scudo] Use require_constant_initialization 2021-05-01 01:46:47 -07:00
wrappers_c.h scudo: Interleave odd and even tags for adjacent blocks. 2020-07-23 15:09:13 -07:00
wrappers_c.inc [scudo] Fix format string specifiers 2021-08-17 08:37:49 -07:00
wrappers_c_bionic.cpp [scudo] Use require_constant_initialization 2021-05-01 01:46:47 -07:00
wrappers_c_checks.h [scudo] Use stdint types for internal types (redo) 2021-08-16 14:46:42 -07:00
wrappers_cpp.cpp Revert "[Scudo] Make -fsanitize=scudo use standalone. Migrate tests." 2021-05-26 10:50:26 -07:00