gcc/libsanitizer/hwasan
H.J. Lu a23653c6a6 libsanitizer: Add AM_CCASFLAGS to Makefile.am
commit 9069eb28d4
Author: Igor Tsimbalist <igor.v.tsimbalist@intel.com>
Date:   Fri Nov 17 22:34:50 2017 +0100

    Enable building libsanitizer with Intel CET

    libsanitizer/
            * acinclude.m4: Add enable.m4 and cet.m4.
            * Makefile.in: Regenerate.
            * asan/Makefile.am: Update AM_CXXFLAGS.
            * asan/Makefile.in: Regenerate.
            * configure: Likewise.
            * configure.ac: Set CET_FLAGS. Update EXTRA_CFLAGS,
            EXTRA_CXXFLAGS, EXTRA_ASFLAGS.
            * interception/Makefile.am: Update AM_CXXFLAGS.
            * interception/Makefile.in: Regenerate.
            * libbacktrace/Makefile.am: Update AM_CFLAGS, AM_CXXFLAGS.
            * libbacktrace/Makefile.in: Regenerate.
            * lsan/Makefile.am: Update AM_CXXFLAGS.
            * lsan/Makefile.in: Regenerate.
            * sanitizer_common/Makefile.am: Update AM_CXXFLAGS,
            AM_CCASFLAGS.
            * sanitizer_common/sanitizer_linux_x86_64.S: Include cet.h.
            Add _CET_ENDBR macro.
            * sanitizer_common/Makefile.in: Regenerate.
            * tsan/Makefile.am: Update AM_CXXFLAGS.
            * tsan/Makefile.in: Regenerate.
            * tsan/tsan_rtl_amd64.S Include cet.h. Add _CET_ENDBR macro.
            * ubsan/Makefile.am: Update AM_CXXFLAGS.
            * ubsan/Makefile.in: Regenerate.

failed to add EXTRA_ASFLAGS to AM_CCASFLAGS in all Makefile.am.  As
the result, CET aren't enabled in all assembly codes.

Add AM_CCASFLAGS to Makefile.am to compile assembly codes with $CET_FLAGS.

	PR sanitizer/102632
	* asan/Makefile.am (AM_CCASFLAGS): New.  Set to $(EXTRA_ASFLAGS).
	* hwasan/Makefile.am (AM_CCASFLAGS): Likewise.
	* interception/Makefile.am (AM_CCASFLAGS): Likewise.
	* lsan/Makefile.am (AM_CCASFLAGS): Likewise.
	* tsan/Makefile.am (AM_CCASFLAGS): Likewise.
	* ubsan/Makefile.am (AM_CCASFLAGS): Likewise.
	* asan/Makefile.in: Regenerate.
	* hwasan/Makefile.in: Likewise.
	* interception/Makefile.in: Likewise.
	* lsan/Makefile.in: Likewise.
	* tsan/Makefile.in: Likewise.
	* ubsan/Makefile.in: Likewise.
2021-10-08 06:17:01 -07:00
..
hwasan_allocation_functions.cpp
hwasan_allocator.cpp
hwasan_allocator.h
hwasan_checks.h
hwasan_dynamic_shadow.cpp
hwasan_dynamic_shadow.h
hwasan_exceptions.cpp
hwasan_flags.h
hwasan_flags.inc
hwasan_fuchsia.cpp
hwasan_globals.cpp
hwasan_globals.h
hwasan_interceptors_vfork.S
hwasan_interceptors.cpp
hwasan_interface_internal.h
hwasan_linux.cpp
hwasan_malloc_bisect.h
hwasan_mapping.h
hwasan_memintrinsics.cpp
hwasan_new_delete.cpp
hwasan_poisoning.cpp
hwasan_poisoning.h
hwasan_report.cpp
hwasan_report.h
hwasan_setjmp_aarch64.S
hwasan_setjmp_x86_64.S
hwasan_tag_mismatch_aarch64.S
hwasan_thread_list.cpp
hwasan_thread_list.h
hwasan_thread.cpp
hwasan_thread.h
hwasan_type_test.cpp
hwasan.cpp
hwasan.h
libtool-version
Makefile.am libsanitizer: Add AM_CCASFLAGS to Makefile.am 2021-10-08 06:17:01 -07:00
Makefile.in libsanitizer: Add AM_CCASFLAGS to Makefile.am 2021-10-08 06:17:01 -07:00