binutils-gdb/config
H.J. Lu 219822fd5d mmap: Avoid the sanitizer configure check failure
When -fsanitize=address,undefined is used to build, the mmap configure
check failed with

=================================================================
==231796==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 4096 byte(s) in 1 object(s) allocated from:
    #0 0x7cdd3d0defdf in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x5750c7f6d72b in main /home/alan/build/gas-san/all/bfd/conftest.c:239

Direct leak of 4096 byte(s) in 1 object(s) allocated from:
    #0 0x7cdd3d0defdf in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x5750c7f6d2e1 in main /home/alan/build/gas-san/all/bfd/conftest.c:190

SUMMARY: AddressSanitizer: 8192 byte(s) leaked in 2 allocation(s).

Define GCC_AC_FUNC_MMAP with export ASAN_OPTIONS=detect_leaks=0 to avoid
the sanitizer configure check failure.

config/

	* mmap.m4 (GCC_AC_FUNC_MMAP): New.
	* no-executables.m4 (AC_FUNC_MMAP): Renamed to GCC_AC_FUNC_MMAP.
	Change AC_FUNC_MMAP to GCC_AC_FUNC_MMAP.

libiberty/

	* Makefile.in (aclocal_deps): Add $(srcdir)/../config/mmap.m4.
	* acinclude.m4: Change AC_FUNC_MMAP to GCC_AC_FUNC_MMAP.
	* aclocal.m4: Regenerated.
	* configure: Likewise.

zlib/

	* acinclude.m4: Include ../config/mmap.m4.
	* Makefile.in: Regenerated.
	* configure: Likewise.
2024-04-10 03:57:02 -07:00
..
acinclude.m4 config: delete unused sim macros 2021-05-18 17:46:55 -04:00
acx.m4 Re: Merge configure.ac from gcc project 2022-10-12 10:08:14 +10:30
asmcfi.m4
ax_check_define.m4
ax_count_cpus.m4 Merge changes from GCC for the config/ directory 2020-02-19 17:51:24 +00:00
ax_cxx_compile_stdcxx.m4 Merge configure.ac from gcc project 2022-10-10 11:14:21 +10:30
ax_pthread.m4
bfd64.m4 unify 64-bit bfd checks 2022-01-01 12:49:07 -05:00
bitfields.m4
bootstrap-asan.mk
bootstrap-cet.mk
bootstrap-debug-big.mk
bootstrap-debug-ckovw.mk
bootstrap-debug-lean.mk
bootstrap-debug-lib.mk
bootstrap-debug.mk
bootstrap-lto-lean.mk Fix PR bootstrap/102389: --with-build-config=bootstrap-lto is broken 2023-08-12 10:24:26 +09:30
bootstrap-lto-noplugin.mk
bootstrap-lto.mk Fix PR bootstrap/102389: --with-build-config=bootstrap-lto is broken 2023-08-12 10:24:26 +09:30
bootstrap-O1.mk
bootstrap-O3.mk
bootstrap-Og.mk Merge changes from GCC for the config/ directory 2020-02-19 17:51:24 +00:00
bootstrap-time.mk
bootstrap-ubsan.mk
cet.m4 GCC_CET_HOST_FLAGS: Check if host supports multi-byte NOPs 2021-03-18 08:02:46 -07:00
ChangeLog libiberty: Disable hwcaps for sha1.o 2023-11-30 10:14:30 +01:00
codeset.m4
debuginfod.m4 config/debuginfod.m4: Add check for libdebuginfod 0.188 2023-09-27 15:11:13 -04:00
dejagnu.m4 libsframe: add the SFrame library 2022-11-15 15:24:29 -08:00
depstand.m4
dfp.m4 Merge config/ changes from GCC, to enable DFP on AArch64 2022-05-24 10:47:29 +01:00
elf.m4
enable.m4
extensions.m4
futex.m4 Merge changes from GCC for the config/ directory 2020-02-19 17:51:24 +00:00
gc++filt.m4
gcc-plugin.m4 config: Fix host -rdynamic detection for build != host != target 2023-09-01 15:20:47 +00:00
gettext-sister.m4 Finalized intl-update patches 2023-11-15 12:53:04 +00:00
gettext.m4 Finalized intl-update patches 2023-11-15 12:53:04 +00:00
glibc21.m4
gthr.m4 gcc: Add 'mcf' thread model support from mcfgthread 2023-08-12 10:24:26 +09:30
gxx-include-dir.m4
hwcaps.m4 libiberty: Disable hwcaps for sha1.o 2023-11-30 10:14:30 +01:00
iconv.m4 Finalized intl-update patches 2023-11-15 12:53:04 +00:00
intdiv0.m4
intlmacosx.m4 Finalized intl-update patches 2023-11-15 12:53:04 +00:00
inttypes_h.m4
inttypes-pri.m4
inttypes.m4
isl.m4
jobserver.m4 Implement a workaround for GNU mak jobserver 2021-01-12 05:45:44 -08:00
largefile.m4 Unify Solaris procfs and largefile handling 2020-07-30 15:41:50 +02:00
lcmessage.m4
ld-symbolic.m4
lead-dot.m4
lib-ld.m4 egrep in binutils 2022-09-28 13:37:31 +09:30
lib-link.m4 Merge changes from GCC for the config/ directory 2020-02-19 17:51:24 +00:00
lib-prefix.m4
libstdc++-raw-cxx.m4
lthostflags.m4
math.m4 Sync config and libiberty with GCC 2020-04-29 14:25:36 -07:00
mh-alpha-linux
mh-cygwin
mh-darwin configure: Allow host fragments to react to --enable-host-shared. 2023-08-12 10:24:26 +09:30
mh-djgpp
mh-mingw mh-mingw: drop unused BOOT_CXXFLAGS variable 2023-08-12 10:24:26 +09:30
mh-pa
mh-ppc-aix
mmap.m4 mmap: Avoid the sanitizer configure check failure 2024-04-10 03:57:02 -07:00
mt-alphaieee
mt-android
mt-d30v
mt-gnu
mt-mips16-compat
mt-mips-elfoabi
mt-mips-gnu
mt-nios2-elf
mt-ospace
mt-sde
mt-spu
multi.m4
nls.m4
no-executables.m4 mmap: Avoid the sanitizer configure check failure 2024-04-10 03:57:02 -07:00
override.m4 PR27116, Spelling errors found by Debian style checker 2021-01-01 14:36:35 +10:30
picflag.m4 Merge config/picflag.m4 from gcc 2023-01-04 13:23:54 +10:30
pkg.m4 PKG_CHECK_MODULES: Properly check if $pkg_cv_[]$1[]_LIBS works 2020-07-28 06:59:30 -07:00
plugins.m4
po.m4
proginstall.m4
progtest.m4
sjlj.m4
stdint_h.m4
stdint.m4
target-posix
tcl.m4
tls.m4 Merge changes from GCC for the config/ directory 2020-02-19 17:51:24 +00:00
toolexeclibdir.m4 Merge changes from GCC for the config/ directory 2020-02-19 17:51:24 +00:00
uintmax_t.m4
ulonglong.m4
unwind_ipinfo.m4
warnings.m4
weakref.m4
zlib.m4
zstd.m4 configure: require libzstd >= 1.4.0 2022-11-07 14:32:10 +01:00