(fix commit
ce75cf1)
* os_dep.c [ADDRESS_SANITIZER && (UNIX_LIKE || NEED_FIND_LIMIT
|| MPROTECT_VDB)] (__asan_default_options): Do not define if
CUSTOM_ASAN_DEF_OPTIONS is defined; export it (use GC_API).
#endif /* NETBSD */
#if defined(ADDRESS_SANITIZER) && (defined(UNIX_LIKE) \
- || defined(NEED_FIND_LIMIT) || defined(MPROTECT_VDB))
+ || defined(NEED_FIND_LIMIT) || defined(MPROTECT_VDB)) \
+ && !defined(CUSTOM_ASAN_DEF_OPTIONS)
/* To tell ASan to allow GC to use its own SIGBUS/SEGV handlers. */
- const char *__asan_default_options(void)
+ /* The function is exported just to be visible to ASan library. */
+ GC_API const char *__asan_default_options(void)
{
return "allow_user_segv_handler=1";
}