gcc/libsanitizer/hwasan
Rainer Orth 088d3cbc5f libsanitizer: Check assembler support for symbol assignment [PR112563]
The recent libsanitizer import broke the build on Solaris/SPARC with the
native as:

/usr/ccs/bin/as: ".libs/sanitizer_errno.s", line 4247: error: symbol
"__sanitizer_internal_memset" is used but not defined
/usr/ccs/bin/as: ".libs/sanitizer_errno.s", line 4247: error: symbol
"__sanitizer_internal_memcpy" is used but not defined
/usr/ccs/bin/as: ".libs/sanitizer_errno.s", line 4247: error: symbol
"__sanitizer_internal_memmove" is used but not defined

Since none of the alternatives considered in the PR worked out, this
patch checks if the assembler does support symbol assignment, disabling
the code otherwise.  This returns the code to the way it was up to LLVM 16.

Bootstrapped without regressions on sparc-sun-solaris2.11 (as and gas) and
i386-pc-solaris2.11 (as and gas).

2023-11-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	libsanitizer:
	PR sanitizer/112563
	* configure.ac (libsanitizer_cv_as_sym_assign): Check for
	assembler symbol assignment support.
	* configure: Regenerate.
	* asan/Makefile.am (DEFS): Add @AS_SYM_ASSIGN_DEFS@.
	* Makefile.in, asan/Makefile.in, hwasan/Makefile.in,
	interception/Makefile.in, libbacktrace/Makefile.in,
	lsan/Makefile.in, sanitizer_common/Makefile.in, tsan/Makefile.in,
	ubsan/Makefile.in: Regenerate.
2023-11-28 14:54:34 +01:00
..
hwasan.cpp
hwasan.h
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.cpp
hwasan_interceptors_vfork.S
hwasan_interface_internal.h
hwasan_linux.cpp
hwasan_malloc_bisect.h
hwasan_mapping.h
hwasan_memintrinsics.cpp
hwasan_new_delete.cpp
hwasan_platform_interceptors.h
hwasan_poisoning.cpp
hwasan_poisoning.h
hwasan_preinit.cpp
hwasan_registers.h
hwasan_report.cpp
hwasan_report.h
hwasan_setjmp_aarch64.S
hwasan_setjmp_riscv64.S
hwasan_setjmp_x86_64.S
hwasan_tag_mismatch_aarch64.S
hwasan_tag_mismatch_riscv64.S
hwasan_thread.cpp
hwasan_thread.h
hwasan_thread_list.cpp
hwasan_thread_list.h
hwasan_type_test.cpp
libtool-version
Makefile.am
Makefile.in libsanitizer: Check assembler support for symbol assignment [PR112563] 2023-11-28 14:54:34 +01:00