mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
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.
This commit is contained in:
@@ -33,6 +33,9 @@ Compiled by GNU CC version "__VERSION__".\n"
|
||||
#ifdef LIBC_ABIS_STRING
|
||||
LIBC_ABIS_STRING
|
||||
#endif
|
||||
#ifdef __LINUX_KERNEL_VERSION_STR
|
||||
"Minimum supported kernel: " __LINUX_KERNEL_VERSION_STR "\n"
|
||||
#endif
|
||||
"For bug reporting instructions, please see:\n\
|
||||
"REPORT_BUGS_TO".\n";
|
||||
|
||||
|
Reference in New Issue
Block a user