GCC Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
config

Configure check for mmap avoids sanitizer failure.

A configure check for mmap no longer fails when memory leak detection is enabled.

This commit syncs a change from binutils-gdb to address a configuration check failure. The mmap check would previously trigger memory leak reports from sanitizers. By introducing GCC_AC_FUNC_MMAP and disabling leak detection for the check, the build process now completes without errors when sanitizers are enabled.

In Details

The AC_FUNC_MMAP macro checks for the availability of the mmap function. When AddressSanitizer (ASan) or UndefinedBehaviorSanitizer (UBSan) is enabled, the check itself can trigger memory leaks, causing the build to fail. This change renames the macro to GCC_AC_FUNC_MMAP and adds an option to disable leak detection during the check, preventing spurious failures.

Filed Under: configsanitizermmapbuild