gcc/libsanitizer/ubsan
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
..
libtool-version
Makefile.am Config,Darwin: Allow for configuring Darwin to use embedded runpath. 2023-10-22 19:30:02 +01:00
Makefile.in libsanitizer: Check assembler support for symbol assignment [PR112563] 2023-11-28 14:54:34 +01:00
ubsan_checks.inc
ubsan_diag_standalone.cpp libsanitizer: Merge with upstream 2021-07-20 14:21:51 -07:00
ubsan_diag.cpp libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
ubsan_diag.h
ubsan_flags.cpp libsanitizer: Apply local patches 2023-11-15 12:46:56 +01:00
ubsan_flags.h
ubsan_flags.inc
ubsan_handlers_cxx.cpp libsanitizer: Readd __ubsan_handle_function_type_mismatch_v1{,_abort} 2023-11-15 12:49:10 +01:00
ubsan_handlers_cxx.h libsanitizer: Readd __ubsan_handle_function_type_mismatch_v1{,_abort} 2023-11-15 12:49:10 +01:00
ubsan_handlers.cpp libsanitizer: Apply local patches 2023-11-15 12:46:56 +01:00
ubsan_handlers.h libsanitizer: Apply local patches 2023-11-15 12:46:56 +01:00
ubsan_init_standalone_preinit.cpp
ubsan_init_standalone.cpp
ubsan_init.cpp libsanitizer: merge from upstream (0a1bcab9f3bf75c4c5d3e53bafb3eeb80320af46). 2022-05-04 11:00:48 +02:00
ubsan_init.h
ubsan_interface.inc libsanitizer: Readd __ubsan_handle_function_type_mismatch_v1{,_abort} 2023-11-15 12:49:10 +01:00
ubsan_monitor.cpp libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
ubsan_monitor.h
ubsan_platform.h libsanitizer: Apply local patches 2023-11-15 12:46:56 +01:00
ubsan_signals_standalone.cpp libsanitizer: merge from upstream (c425db2eb558c263) 2023-11-15 12:45:58 +01:00
ubsan_signals_standalone.h
ubsan_type_hash_itanium.cpp libsanitizer: merge from upstream (3185e47b5a8444e9fd). 2023-04-26 15:51:56 +02:00
ubsan_type_hash_win.cpp libsanitizer: merge from master. 2020-11-13 17:28:49 +01:00
ubsan_type_hash.cpp
ubsan_type_hash.h
ubsan_value.cpp libsanitizer: merge from master (84a71d5259c2682403cdbd8710592410a2f128ab) 2022-08-30 12:53:50 +02:00
ubsan_value.h
ubsan_win_dll_thunk.cpp
ubsan_win_dynamic_runtime_thunk.cpp
ubsan_win_weak_interception.cpp