[asan] Port asan_malloc_linux.cc to RTEMS
authorWalter Lee <waltl@google.com>
Mon, 7 May 2018 16:39:09 +0000 (16:39 +0000)
committerWalter Lee <waltl@google.com>
Mon, 7 May 2018 16:39:09 +0000 (16:39 +0000)
commit7b24aea150db78470fda8d7106190b8b9e5b7380
treecec4cb729e65b28739cc40902357e055e749c5f2
parent5db43c66b7c22efaf37eb11337984ada9542af16
[asan] Port asan_malloc_linux.cc to RTEMS

We reuse the allocation interceptors as is.  RTEMS doesn't support
dlsyms.  However, it needs to handle memory allocation requests before
the ASan run-time has been initialized.  We use the dlsym alloc pool
for this purpose, and we increase its size to 4k to support this
usage.

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

llvm-svn: 331649
compiler-rt/lib/asan/asan_malloc_linux.cc