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. --- elf/dl-support.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'elf/dl-support.c') diff --git a/elf/dl-support.c b/elf/dl-support.c index 153dd57..1e82e8c 100644 --- a/elf/dl-support.c +++ b/elf/dl-support.c @@ -145,8 +145,6 @@ size_t _dl_minsigstacksize = CONSTANT_MINSIGSTKSZ; int _dl_inhibit_cache; -unsigned int _dl_osversion; - /* All known directories in sorted order. */ struct r_search_path_elem *_dl_all_dirs; @@ -327,10 +325,6 @@ _dl_non_dynamic_init (void) DL_PLATFORM_INIT; #endif -#ifdef DL_OSVERSION_INIT - DL_OSVERSION_INIT; -#endif - /* Now determine the length of the platform string. */ if (_dl_platform != NULL) _dl_platformlen = strlen (_dl_platform); -- cgit v1.1