]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Set have-protected-data to no if unsupported
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 22 Aug 2025 22:56:41 +0000 (15:56 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 23 Aug 2025 00:55:32 +0000 (17:55 -0700)
commitdd4394b2493940ce0ec4525a21be4e2e9db483d0
treefb145f1436d0ceaf1e61668871d21178aa67ead7
parentaa4dbb2eebf7b047689f5fbad7fe58ae5434a72c
x86: Set have-protected-data to no if unsupported

If the building compiler enables no direct external data access by
default, access to protected data in shared libraries from executables
must be compiled with no direct external data access.  If the testing
compiler doesn't support it, set have-protected-data to no to disable
the tests which requires no direct external data access.

Add LIBC_TRY_CC_COMMAND to test a building compiler option or options
with an input file.

This fixes BZ #33286.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
aclocal.m4
sysdeps/x86/Makefile
sysdeps/x86/configure
sysdeps/x86/configure.ac