[PATCH] D35554: Add NetBSD support in sanitizer_platform_limits_posix.*

Joerg Sonnenberger via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 18 06:06:55 PDT 2017


joerg added inline comments.


================
Comment at: lib/sanitizer_common/sanitizer_platform_limits_posix.h:32
+#define GET_LINK_MAP_BY_DLOPEN_HANDLE(handle) \
+  ((link_map *)((handle) == nullptr ? nullptr : ((char *)(handle) + 324)))
+#else
----------------
dlinfo with RTLD_DI_LINKMAP?


================
Comment at: lib/sanitizer_common/sanitizer_platform_limits_posix.h:240
+#endif
+#endif
   };
----------------
Why is this duplicating random sets of system headers? Just for using syscall(2) directly? Ugly.


Repository:
  rL LLVM

https://reviews.llvm.org/D35554





More information about the llvm-commits mailing list