[PATCH] [Sanitizers] Introduce GET_LINK_MAP_BY_DLOPEN_HANDLE() macro

Viktor Kutuzov vkutuzov at accesssoftek.com
Thu Jan 29 03:29:10 PST 2015


> Is it possible to calculate it in sanitizer_platform_limits_posix.cc by using offsetof() ?


The Obj_Entry structure is defined in rtld's internals and have a lot of members so it doesn't seem reasonable to replicate its definition in sanitizers sources.


================
Comment at: lib/sanitizer_common/sanitizer_common_interceptors.inc:88
@@ -87,3 +87,3 @@
 #ifndef COMMON_INTERCEPTOR_LIBRARY_LOADED
-#define COMMON_INTERCEPTOR_LIBRARY_LOADED(filename, map) {}
+#define COMMON_INTERCEPTOR_LIBRARY_LOADED(filename, handle) {}
 #endif
----------------
Should these macros expand into ##do {} while(0)##?

http://reviews.llvm.org/D7233

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list