This is an archive of the discontinued LLVM Phabricator instance.

[asan] Port asan_malloc_linux.cc to RTEMS
ClosedPublic

Authored by waltl on May 4 2018, 1:50 PM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

waltl created this revision.May 4 2018, 1:50 PM
kcc accepted this revision.May 4 2018, 3:03 PM

LGTM

This revision is now accepted and ready to land.May 4 2018, 3:03 PM
This revision was automatically updated to reflect the committed changes.