re PR sanitizer/55374 ([asan] -static-libasan -static-libstdc++ doesn't work)
PR sanitizer/55374 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if LIBASAN_EARLY_SPEC is defined. (LIBASAN_EARLY_SPEC): Define to empty string if not already defined. (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address, before %o. * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define. * g++.dg/asan/large-func-test-1.C: Allow both _Zna[jm] in addition to _Znw[jm] in the backtrace. Allow _Zna[jm] to be the first frame printed in backtrace. * g++.dg/asan/deep-stack-uaf-1.C: Use malloc instead of operator new to avoid errors about mismatched allocation vs. deallocation. From-SVN: r195585
Showing
- gcc/ChangeLog 8 additions, 0 deletionsgcc/ChangeLog
- gcc/config/gnu-user.h 9 additions, 0 deletionsgcc/config/gnu-user.h
- gcc/gcc.c 9 additions, 2 deletionsgcc/gcc.c
- gcc/testsuite/ChangeLog 7 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/g++.dg/asan/deep-stack-uaf-1.C 1 addition, 1 deletiongcc/testsuite/g++.dg/asan/deep-stack-uaf-1.C
- gcc/testsuite/g++.dg/asan/large-func-test-1.C 2 additions, 2 deletionsgcc/testsuite/g++.dg/asan/large-func-test-1.C
Loading
Please register or sign in to comment