Lines Matching +full:linux +full:- +full:asan
1 //===-- asan_linux.cc -----------------------------------------------------===//
8 //===----------------------------------------------------------------------===//
12 // Linux-specific details.
13 //===----------------------------------------------------------------------===//
50 // x86-64 FreeBSD 9.2 and older define 'ucontext_t' incorrectly in
51 // 32-bit mode.
75 // This will fail to link with -static. in AsanDoesNotSupportStaticLinkage()
91 if (!info->dlpi_name || info->dlpi_name[0] == 0) in FindFirstDSOCallback()
95 if (internal_strncmp(info->dlpi_name, "linux-", sizeof("linux-") - 1) == 0) in FindFirstDSOCallback()
98 *(const char **)data = info->dlpi_name; in FindFirstDSOCallback()
103 return internal_strstr(libname, "libclang_rt.asan") || in IsDynamicRTName()
108 Report("Your application is linked against incompatible ASan runtimes.\n"); in ReportIncompatibleRT()
120 Report("ASan runtime does not come first in initial library list; " in AsanCheckDynamicRTPrereqs()
137 // as early as possible, otherwise ASan interceptors could bind to in AsanCheckIncompatibleRT()
138 // the functions in dynamic ASan runtime instead of the functions in in AsanCheckIncompatibleRT()
139 // system libraries, causing crashes later in ASan initialization. in AsanCheckIncompatibleRT()
146 "incompatible ASan runtimes.\n"); in AsanCheckIncompatibleRT()
161 *stack = (uptr)ucp->uc_stack.ss_sp; in ReadContextStack()
162 *ssize = ucp->uc_stack.ss_size; in ReadContextStack()