This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/15998] [powerpc] Set arch_minimum_kernel for powerpc LE


https://sourceware.org/bugzilla/show_bug.cgi?id=15998

--- Comment #3 from Alan Modra <amodra at gmail dot com> ---
Way back when we first ported powerpc64le I had a patch that set the kernel
version to 3.13, my reasoning being that 3.13 was the first official version
and RedHat surely could cope with patching their glibc to accept a 3.10 kernel.
 At the time, I didn't analyse how glibc is affected by choosing 3.10 rather
than 3.13.  The answer is, I think, not at all.

grep __LINUX_KERNEL_VERSION gives
./sysdeps/unix/sysv/linux/microblaze/kernel-features.h:#if
__LINUX_KERNEL_VERSION < 0x030f00
./sysdeps/unix/sysv/linux/microblaze/kernel-features.h:#if
__LINUX_KERNEL_VERSION < 0x030300
./sysdeps/unix/sysv/linux/x86_64/kernel-features.h:#if __LINUX_KERNEL_VERSION
>= 0x030100
./sysdeps/unix/sysv/linux/s390/kernel-features.h:#if __LINUX_KERNEL_VERSION >=
0x040300
./sysdeps/unix/sysv/linux/s390/kernel-features.h:#if __LINUX_KERNEL_VERSION <
0x040300
./sysdeps/unix/sysv/linux/dl-osinfo.h:  if (__LINUX_KERNEL_VERSION > 0 &&
version < __LINUX_KERNEL_VERSION)   \
./sysdeps/unix/sysv/linux/dl-osinfo.h:    else if (__LINUX_KERNEL_VERSION > 0) 
                              \
./sysdeps/unix/sysv/linux/hppa/kernel-features.h:#if __LINUX_KERNEL_VERSION >=
0x030e00
./sysdeps/unix/sysv/linux/configure:#define __LINUX_KERNEL_VERSION $decnum
./sysdeps/unix/sysv/linux/ia64/kernel-features.h:#if __LINUX_KERNEL_VERSION <
0x030300
./sysdeps/unix/sysv/linux/i386/kernel-features.h:#if __LINUX_KERNEL_VERSION >=
0x040300
./sysdeps/unix/sysv/linux/i386/kernel-features.h:#if __LINUX_KERNEL_VERSION <
0x040300
./sysdeps/unix/sysv/linux/configure.ac: 
AC_DEFINE_UNQUOTED(__LINUX_KERNEL_VERSION, $decnum)
./sysdeps/unix/sysv/linux/m68k/kernel-features.h:#if __LINUX_KERNEL_VERSION >=
0x040300
./sysdeps/unix/sysv/linux/m68k/kernel-features.h:#if __LINUX_KERNEL_VERSION <
0x040300
./sysdeps/unix/sysv/linux/m68k/kernel-features.h:#if __LINUX_KERNEL_VERSION <
0x030a00
./sysdeps/unix/sysv/linux/arm/kernel-features.h:#if __LINUX_KERNEL_VERSION <
0x030E03
./sysdeps/unix/sysv/linux/kernel-features.h:#ifndef __LINUX_KERNEL_VERSION
./sysdeps/unix/sysv/linux/kernel-features.h:# define __LINUX_KERNEL_VERSION    
0
./sysdeps/unix/sysv/linux/kernel-features.h:/* We assume for
__LINUX_KERNEL_VERSION the same encoding used in
./sysdeps/unix/sysv/linux/kernel-features.h:   version given by
__LINUX_KERNEL_VERSION.  We are not always exactly
./sysdeps/unix/sysv/linux/kernel-features.h:#if __LINUX_KERNEL_VERSION >=
0x020621
./sysdeps/unix/sysv/linux/kernel-features.h:#if __LINUX_KERNEL_VERSION >=
0x020621
./sysdeps/unix/sysv/linux/kernel-features.h:#if __LINUX_KERNEL_VERSION >=
0x020624
./sysdeps/unix/sysv/linux/kernel-features.h:#if __LINUX_KERNEL_VERSION >=
0x020624
./sysdeps/unix/sysv/linux/kernel-features.h:#if __LINUX_KERNEL_VERSION >=
0x030000
./config.h.in:#undef    __LINUX_KERNEL_VERSION

The <other arch> tests don't matter.  dl-osinfo.h is setting up a runtime test
that the running kernel is at least the minimum glibc was compiled to support. 
So we're left with just the standard linux/kernel-features.h tests, none of
which test a value between 3.10 and 3.13.

Just go with 3.10.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]