[asan][memprof] Declare _DYNAMIC and fix -Wparentheses
authorFangrui Song <i@maskray.me>
Mon, 28 Dec 2020 04:28:59 +0000 (20:28 -0800)
committerFangrui Song <i@maskray.me>
Mon, 28 Dec 2020 04:28:59 +0000 (20:28 -0800)
commitfde3ae88ee4236d6ecb8178c6c893df5a5a04437
treede292be63c153fee331a3c41c78e992653488a76
parent31c2b93d83f63ce7f9bb4977f58de2e00bf18e0f
[asan][memprof] Declare _DYNAMIC and fix -Wparentheses

Declare `extern ElfW(Dyn) _DYNAMIC[];` so that it will trivially work on musl.
compiler-rt/lib/asan/asan_linux.cpp
compiler-rt/lib/memprof/memprof_linux.cpp
compiler-rt/lib/memprof/memprof_mapping.h