llvm-project/compiler-rt/lib/scudo/standalone
Kostya Kortchinsky f50a953ea7 [scudo][standalone] Link tests against libatomic
Summary:
Some clang versions (< 6.0) do not inline the atomic builtin functions
leaving unresolved references to `__atomic_load_8` and so on (seems to
be mostly 64-bit atomics on 32-bit platforms).
I tried without success to use some cmake magic to detect when that
would be the case, and decided to fall back to unconditionally
linking libatomic.

Reviewers: morehouse, eugenis, vitalybuka, hctim, tejohnson

Reviewed By: tejohnson

Subscribers: mgorny, delcypher, jfb, #sanitizers, llvm-commits

Tags: #llvm, #sanitizers

Differential Revision: https://reviews.llvm.org/D64134

llvm-svn: 365052
2019-07-03 16:32:01 +00:00
..
tests [scudo][standalone] Link tests against libatomic 2019-07-03 16:32:01 +00:00
CMakeLists.txt [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00
allocator_config.h [scudo][standalone] Introduce the combined allocator 2019-06-17 15:23:11 +00:00
atomic_helpers.h [scudo][standalone] Introduce platform specific code & mutexes 2019-02-26 16:47:25 +00:00
bytemap.h [scudo][standalone] Unmap memory in tests 2019-06-11 19:50:12 +00:00
checksum.cc [scudo][standalone] Introduce the chunk header 2019-05-08 21:54:02 +00:00
checksum.h [scudo][standalone] Introduce the chunk header 2019-05-08 21:54:02 +00:00
chunk.h [scudo][standalone] Introduce the chunk header 2019-05-08 21:54:02 +00:00
combined.h [scudo][standalone] Introduce the combined allocator 2019-06-17 15:23:11 +00:00
common.cc [scudo][standalone] Introduce platform specific code & mutexes 2019-02-26 16:47:25 +00:00
common.h [scudo][standalone] Introduce the SizeClassMap 2019-04-25 15:49:34 +00:00
crc32_hw.cc [scudo][standalone] Implement checksumming functions 2019-03-12 14:46:31 +00:00
flags.cc [scudo][standalone] Add flags & related parsers 2019-04-09 14:57:25 +00:00
flags.h [scudo][standalone] Add flags & related parsers 2019-04-09 14:57:25 +00:00
flags.inc [scudo][standalone] Add flags & related parsers 2019-04-09 14:57:25 +00:00
flags_parser.cc [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00
flags_parser.h [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00
fuchsia.cc [scudo][standalone] Fuchsia related changes 2019-06-18 17:41:17 +00:00
fuchsia.h [scudo][standalone] Introduce the Secondary allocator 2019-04-24 14:20:49 +00:00
interface.h [scudo][standalone] Add flags & related parsers 2019-04-09 14:57:25 +00:00
internal_defs.h [scudo][standalone] Introduce the thread specific data structures 2019-06-10 16:50:52 +00:00
linux.cc [scudo][standalone] Fuchsia related changes 2019-06-18 17:41:17 +00:00
linux.h [scudo][standalone] Introduce the Secondary allocator 2019-04-24 14:20:49 +00:00
list.h [scudo][standalone] Introduce the Secondary allocator 2019-04-24 14:20:49 +00:00
local_cache.h [scudo][standalone] Introduce the Primary(s) and LocalCache 2019-05-20 14:40:04 +00:00
mutex.h [scudo][standalone] Fuchsia related changes 2019-06-18 17:41:17 +00:00
platform.h
primary32.h [scudo][standalone] Unmap memory in tests 2019-06-11 19:50:12 +00:00
primary64.h [scudo][standalone] Unmap memory in tests 2019-06-11 19:50:12 +00:00
quarantine.h [scudo][standalone] Introduce the thread specific data structures 2019-06-10 16:50:52 +00:00
release.h [scudo][standalone] Add the memory reclaiming mechanism 2019-04-30 14:56:18 +00:00
report.cc [scudo][standalone] Add error reports 2019-03-20 14:31:23 +00:00
report.h [scudo][standalone] Add error reports 2019-03-20 14:31:23 +00:00
secondary.cc [scudo][standalone] Introduce the Secondary allocator 2019-04-24 14:20:49 +00:00
secondary.h [scudo][standalone] Introduce the Secondary allocator 2019-04-24 14:20:49 +00:00
size_class_map.h [scudo][standalone] Add the memory reclaiming mechanism 2019-04-30 14:56:18 +00:00
stats.h [scudo][standalone] Adding a stats class 2019-03-07 21:44:35 +00:00
string_utils.cc [scudo][standalone] Add string utility functions 2019-03-19 14:47:05 +00:00
string_utils.h [scudo][standalone] Add string utility functions 2019-03-19 14:47:05 +00:00
tsd.h [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00
tsd_exclusive.h [scudo][standalone] Unmap memory in tests 2019-06-11 19:50:12 +00:00
tsd_shared.h [scudo] Correct a behavior on the shared TSD registry 2019-06-25 19:58:11 +00:00
vector.h [scudo][standalone] Add a standalone vector class 2019-02-27 16:30:05 +00:00
wrappers_c.cc [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00
wrappers_c.h [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00
wrappers_c.inc [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00
wrappers_c_bionic.cc [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00
wrappers_c_checks.h [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00
wrappers_cpp.cc [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00