From e191c349605f44747b01f00331ca34eca923b953 Mon Sep 17 00:00:00 2001 From: Andrey Drobyshev Date: Tue, 16 Jul 2019 15:23:18 +0300 Subject: [Tizen] Implement detecting of sanitized libraries Parse ".dynamic" section (ELF dynamic array tags) of the module being added, find ".rel(a).plt" section and search it for presence of '__asan_init' symbol. Change-Id: Ie7cc4c818b791b5f00713b42ba15131325b8152c Signed-off-by: Andrey Drobyshev --- src/pal/inc/pal.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/pal/inc') diff --git a/src/pal/inc/pal.h b/src/pal/inc/pal.h index 08a35c8f62..abb25e889f 100644 --- a/src/pal/inc/pal.h +++ b/src/pal/inc/pal.h @@ -2678,6 +2678,14 @@ PAL_GetProcAddressDirect( IN NATIVE_LIBRARY_HANDLE dl_handle, IN LPCSTR lpProcName); +#ifdef TIZEN_ASAN_ENVIRONMENT +PALIMPORT +BOOL +PALAPI +PAL_IsSanitizedLibraryDirect( + IN NATIVE_LIBRARY_HANDLE dl_handle); +#endif + /*++ Function: PAL_LOADLoadPEFile -- cgit v1.2.3