[PATCH] D43080: Adding Msan support to FreeBSD
Kamil Rytarowski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 10 11:00:50 PST 2018
krytarowski added inline comments.
================
Comment at: lib/sanitizer_common/sanitizer_platform_limits_posix.h:27
# define GET_LINK_MAP_BY_DLOPEN_HANDLE(handle) \
- ((link_map*)((handle) == nullptr ? nullptr : ((char*)(handle) + 544)))
+ ((link_map*)((handle) == nullptr ? nullptr : ((char*)(handle) + 560)))
// Get sys/_types.h, because that tells us whether 64-bit inodes are
----------------
dim wrote:
> Hmm, where does this magic number come from? I hope this isn't system version dependent...
link_map offset in Obj_Entry
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D43080
More information about the llvm-commits
mailing list