From b46d250656794e63a2946c481fda29271342dd1a Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 21 Feb 2022 08:32:32 -0300 Subject: 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. --- config.h.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.h.in') diff --git a/config.h.in b/config.h.in index dd650ddd09..bf316439a0 100644 --- a/config.h.in +++ b/config.h.in @@ -135,6 +135,9 @@ /* Linux specific: minimum supported kernel version. */ #undef __LINUX_KERNEL_VERSION +/* Linux specific: __LINUX_KERNEL_VERSION as a string. */ +#undef __LINUX_KERNEL_VERSION_STR + /* Override abi-tags ABI version if necessary. */ #undef __ABI_TAG_VERSION -- cgit 1.4.1