[compiler-rt] Revert "[hwasan] Add fixed_shadow_base flag" (PR #95435)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 13 16:49:12 PDT 2024
vitalybuka wrote:
> I think that's incorrect:
>
> ```
> #ifndef SANITIZER_CAN_USE_PREINIT_ARRAY
> #if (SANITIZER_LINUX || SANITIZER_FUCHSIA || SANITIZER_NETBSD) && !defined(PIC)
> #define SANITIZER_CAN_USE_PREINIT_ARRAY 1
> // Before Solaris 11.4, .preinit_array is fully supported only with GNU ld.
> // FIXME: Check for those conditions.
> ```
>
> ANDROID is Linnux and does in fact _support_ preinit array, we just don't use it for HWASan.
Is hwasan dynamic lib? if so .preinit_array can not be used
https://github.com/llvm/llvm-project/pull/95435
More information about the llvm-commits
mailing list