diff options
Diffstat (limited to 'compiler-rt/lib/hwasan/CMakeLists.txt')
| -rw-r--r-- | compiler-rt/lib/hwasan/CMakeLists.txt | 14 | 
1 files changed, 0 insertions, 14 deletions
diff --git a/compiler-rt/lib/hwasan/CMakeLists.txt b/compiler-rt/lib/hwasan/CMakeLists.txt index 17a8e907bf8..42bf4366f19 100644 --- a/compiler-rt/lib/hwasan/CMakeLists.txt +++ b/compiler-rt/lib/hwasan/CMakeLists.txt @@ -36,20 +36,6 @@ append_list_if(COMPILER_RT_HAS_FFREESTANDING_FLAG -ffreestanding HWASAN_RTL_CFLA  set(HWASAN_DYNAMIC_LINK_FLAGS ${SANITIZER_COMMON_LINK_FLAGS}) -if(ANDROID) -# On Android, -z global does not do what it is documented to do. -# On Android, -z global moves the library ahead in the lookup order, -# placing it right after the LD_PRELOADs. This is used to compensate for the fact -# that Android linker does not look at the dependencies of the main executable -# that aren't dependencies of the current DSO when resolving symbols from said DSO. -# As a net result, this allows running ASan executables without LD_PRELOAD-ing the -# ASan runtime library. -# The above is applicable to L MR1 or newer. -  if (COMPILER_RT_HAS_Z_GLOBAL) -    list(APPEND HWASAN_DYNAMIC_LINK_FLAGS -Wl,-z,global) -  endif() -endif() -  set(HWASAN_DYNAMIC_CFLAGS ${HWASAN_RTL_CFLAGS})  append_list_if(COMPILER_RT_HAS_FTLS_MODEL_INITIAL_EXEC    -ftls-model=initial-exec HWASAN_DYNAMIC_CFLAGS)  | 

