diff options
author | 2022-02-21 08:32:32 -0300 | |
---|---|---|
committer | 2022-05-16 15:03:49 -0300 | |
commit | b46d250656794e63a2946c481fda29271342dd1a (patch) | |
tree | c2e056aa6ae5eb18f79a356b4bbd2f645446291c /sysdeps/unix/sysv/linux/configure | |
parent | linux: Use /sys/devices/system/cpu on __get_nprocs_conf (BZ#28991) (diff) | |
download | glibc-b46d250656794e63a2946c481fda29271342dd1a.tar.xz glibc-b46d250656794e63a2946c481fda29271342dd1a.zip |
Remove kernel version check
The kernel version check is used to avoid glibc to run on older
kernels where some syscall are not available and fallback code are
not enabled to handle graciously fail. However, it does not prevent
if the kernel does not correctly advertise its version through
vDSO note, uname or procfs.
Also kernel version checks are sometime not desirable by users,
where they want to deploy on different system with different kernel
version knowing the minimum set of syscall is always presented on
such systems.
The kernel version check has been removed along with the
LD_ASSUME_KERNEL environment variable. The minimum kernel used to
built glibc is still provided through NT_GNU_ABI_TAG ELF note and
also printed when libc.so is issued.
Checked on x86_64-linux-gnu.
Diffstat (limited to 'sysdeps/unix/sysv/linux/configure')
-rw-r--r-- | sysdeps/unix/sysv/linux/configure | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/configure b/sysdeps/unix/sysv/linux/configure index 4ff02c9b6d..312055c469 100644 --- a/sysdeps/unix/sysv/linux/configure +++ b/sysdeps/unix/sysv/linux/configure @@ -70,6 +70,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel header at least $minimum_kernel" >&5 $as_echo_n "checking for kernel header at least $minimum_kernel... " >&6; } decnum=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/(\1 * 65536 + \2 * 256 + \3)/'`; +abinumstr=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1.\2.\3/'`; abinum=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1,\2,\3/'`; cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -99,6 +100,10 @@ if test "$libc_minimum_kernel" = ok; then _ACEOF cat >>confdefs.h <<_ACEOF +#define __LINUX_KERNEL_VERSION_STR "$abinumstr" +_ACEOF + + cat >>confdefs.h <<_ACEOF #define __ABI_TAG_VERSION $abinum _ACEOF |