Skip to content

Commit

Permalink
Remove pre-2.6.16 Linux kernel support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Myers committed Aug 7, 2012
1 parent 8e49df1 commit 6dad2c0
Show file tree
Hide file tree
Showing 26 changed files with 116 additions and 115 deletions.
22 changes: 22 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
2012-08-07 Joseph Myers <joseph@codesourcery.com>

* sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
Change from 2.6.0 to 2.6.16.
* sysdeps/unix/sysv/linux/configure: Regenerated.
* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
(__ASSUME_TGKILL): Define conditional on architectures, not kernel
version.
(__ASSUME_UTIMES): Likewise.
(__ASSUME_CLONE_STOPPED): Remove.
(__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
architectures, not kernel version.
(__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
(__ASSUME_NO_CLONE_DETACHED): Likewise.
(__ASSUME_GETDENTS32_D_TYPE): Likewise.
(__ASSUME_WAITID_SYSCALL): Likewise.
[__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
* README: State 2.6.16 as minimum Linux kernel version. Do not
refer to older versions.

2012-08-06 Roland McGrath <roland@hack.frob.com>

* dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
Expand Down
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Version 2.17
Implemented by Gary Benson.

* The minimum Linux kernel version that this version of the GNU C Library
can be used with is 2.6.0.
can be used with is 2.6.16.


Version 2.16
Expand Down
17 changes: 6 additions & 11 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ GNU/Hurd support requires out-of-tree patches that will eventually be
incorporated into an official GNU C Library release.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 2.6.0 or later.

All Linux kernel versions prior to 2.6.16 are known to have some bugs that
may cause some of the tests related to pthreads in "make check" to fail.
If you see such problems, please try the test suite on the most recent
Linux kernel version that you can use, before pursuing those bugs further.
requires Linux kernel version 2.6.16 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.
Expand All @@ -35,7 +30,7 @@ The GNU C Library supports these configurations for using Linux kernels:
powerpc64-*-linux-gnu
s390-*-linux-gnu
s390x-*-linux-gnu
sh[34]-*-linux-gnu Requires Linux 2.6.11 or newer
sh[34]-*-linux-gnu
sparc*-*-linux-gnu
sparc64*-*-linux-gnu

Expand All @@ -45,14 +40,14 @@ add-on. You can find glibc-ports-VERSION distributed separately in the
same place where you got the main glibc distribution files.
Currently these configurations have code in the `ports' add-on:

alpha*-*-linux-gnu Requires Linux 2.6.9 or newer for NPTL
alpha*-*-linux-gnu
am33*-*-linux-gnu Not currently functional
arm-*-linux-gnueabi Requires Linux 2.6.16-rc1 or newer for NPTL
arm-*-linux-gnueabi
hppa-*-linux-gnu Not currently functional without patches.
ia64-*-linux-gnu
m68k-*-linux-gnu
mips-*-linux-gnu Requires Linux 2.6.12 or newer for NPTL
mips64-*-linux-gnu Requires Linux 2.6.12 or newer for NPTL
mips-*-linux-gnu
mips64-*-linux-gnu
powerpc-*-linux-gnu Software floating point (--without-fp)
tilegx-*-linux-gnu
tilepro-*-linux-gnu
Expand Down
7 changes: 7 additions & 0 deletions ports/ChangeLog.alpha
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2012-08-07 Joseph Myers <joseph@codesourcery.com>

* sysdeps/unix/sysv/linux/alpha/kernel-features.h
(__ASSUME_TGKILL): Define unconditionally.
(__ASSUME_STAT64_SYSCALL): Likewise.
(__ASSUME_IEEE_RAISE_EXCEPTION): Likewise.

2012-08-02 Roland McGrath <roland@hack.frob.com>

* sysdeps/unix/sysv/linux/alpha/bits/dirent.h
Expand Down
6 changes: 6 additions & 0 deletions ports/ChangeLog.am33
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2012-08-07 Joseph Myers <joseph@codesourcery.com>

* sysdeps/unix/sysv/linux/am33/configure.in (arch_minimum_kernel):
Change to 2.6.25.
* sysdeps/unix/sysv/linux/am33/configure: Regenerated.

2012-08-01 Roland McGrath <roland@hack.frob.com>

[BZ #14138]
Expand Down
8 changes: 8 additions & 0 deletions ports/ChangeLog.arm
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2012-08-07 Joseph Myers <joseph@codesourcery.com>

* sysdeps/unix/sysv/linux/arm/configure.in (arch_minimum_kernel):
Remove.
* sysdeps/unix/sysv/linux/arm/configure: Regenerated.
* sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
Define unconditionally.

2012-08-02 Joseph Myers <joseph@codesourcery.com>

* sysdeps/arm/sysdep.h (ASM_TYPE_DIRECTIVE): Remove.
Expand Down
7 changes: 7 additions & 0 deletions ports/ChangeLog.hppa
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2012-08-07 Joseph Myers <joseph@codesourcery.com>

* sysdeps/unix/sysv/linux/hppa/nptl/configure.in: Remove.
* sysdeps/unix/sysv/linux/hppa/nptl/configure: Likewise.
* sysdeps/unix/sysv/linux/hppa/kernel-features.h
(__ASSUME_LWS_CAS): Define unconditionally.

2012-08-01 Joseph Myers <joseph@codesourcery.com>

* sysdeps/unix/sysv/linux/hppa/kernel-features.h
Expand Down
10 changes: 10 additions & 0 deletions ports/ChangeLog.m68k
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
2012-08-07 Joseph Myers <joseph@codesourcery.com>

* sysdeps/unix/sysv/linux/m68k/configure.in (arch_minimum_kernel):
Remove.
* sysdeps/unix/sysv/linux/m68k/configure: Regenerated.
* sysdeps/unix/sysv/linux/m68k/kernel-features.h
(__ASSUME_TGKILL): Define unconditionally.
(__ASSUME_UTIMES): Likewise.
(__ASSUME_FADVISE64_64_SYSCALL): Likewise.

2012-08-03 Andreas Schwab <schwab@linux-m68k.org>

* sysdeps/m68k/sysdep.h (ALIGNARG, ASM_TYPE_DIRECTIVE)
Expand Down
6 changes: 6 additions & 0 deletions ports/ChangeLog.mips
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2012-08-07 Joseph Myers <joseph@codesourcery.com>

* sysdeps/unix/sysv/linux/mips/configure.in (arch_minimum_kernel):
Remove.
* sysdeps/unix/sysv/linux/mips/configure: Regenerated.

2012-08-01 Joseph Myers <joseph@codesourcery.com>

* sysdeps/unix/sysv/linux/mips/kernel-features.h
Expand Down
15 changes: 4 additions & 11 deletions ports/sysdeps/unix/sysv/linux/alpha/kernel-features.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,16 @@
#ifndef _KERNEL_FEATURES_H
#define _KERNEL_FEATURES_H 1

/* The tgkill syscall was introduced for alpha 2.6.0-test1 which unfortunately
cannot be distinguished from 2.6.0. */
#if __LINUX_KERNEL_VERSION >= 132609
# define __ASSUME_TGKILL 1
#endif
/* The tgkill syscall was introduced for alpha 2.6.0-test1. */
#define __ASSUME_TGKILL 1

/* Starting with version 2.6.4, the stat64 syscalls are available. */
#if __LINUX_KERNEL_VERSION >= 0x020604 && defined __alpha__
# define __ASSUME_STAT64_SYSCALL 1
#endif
#define __ASSUME_STAT64_SYSCALL 1

#define __ASSUME_UTIMES 1

/* Starting with version 2.6.9, SSI_IEEE_RAISE_EXCEPTION exists. */
#if __LINUX_KERNEL_VERSION >= 0x020609
# define __ASSUME_IEEE_RAISE_EXCEPTION 1
#endif
#define __ASSUME_IEEE_RAISE_EXCEPTION 1

/* Support for the O_CLOEXEC flag was added for alpha in 2.6.23. */
#if __LINUX_KERNEL_VERSION >= 0x020617
Expand Down
2 changes: 1 addition & 1 deletion ports/sysdeps/unix/sysv/linux/am33/configure
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file is generated from configure.in by Autoconf. DO NOT EDIT!
# Local configure fragment for am33/sysdeps/unix/sysv/linux/am33

arch_minimum_kernel=2.4.0
arch_minimum_kernel=2.6.25
2 changes: 1 addition & 1 deletion ports/sysdeps/unix/sysv/linux/am33/configure.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for am33/sysdeps/unix/sysv/linux/am33

arch_minimum_kernel=2.4.0
arch_minimum_kernel=2.6.25
1 change: 0 additions & 1 deletion ports/sysdeps/unix/sysv/linux/arm/configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# This file is generated from configure.in by Autoconf. DO NOT EDIT!
# Local configure fragment for sysdeps/unix/sysv/linux/arm.

arch_minimum_kernel=2.6.16
libc_cv_gcc_unwind_find_fde=no
CFLAGS=${CFLAGS% -fno-unwind-tables}
1 change: 0 additions & 1 deletion ports/sysdeps/unix/sysv/linux/arm/configure.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for sysdeps/unix/sysv/linux/arm.

arch_minimum_kernel=2.6.16
libc_cv_gcc_unwind_find_fde=no
CFLAGS=${CFLAGS% -fno-unwind-tables}
4 changes: 1 addition & 3 deletions ports/sysdeps/unix/sysv/linux/arm/kernel-features.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
<http://www.gnu.org/licenses/>. */

/* The utimes syscall was added before 2.6.1. */
#if __LINUX_KERNEL_VERSION >= 132609
# define __ASSUME_UTIMES 1
#endif
#define __ASSUME_UTIMES 1

/* On ARM the mmap2/stat64/lstat64/fstat64 syscalls were introduced in
2.3.35. */
Expand Down
6 changes: 2 additions & 4 deletions ports/sysdeps/unix/sysv/linux/hppa/kernel-features.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Set flags signalling availability of kernel features based on given
kernel version number.
Copyright (C) 2006 Free Software Foundation, Inc.
Copyright (C) 2006-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -30,8 +30,6 @@
#define __ASSUME_GETDENTS64_SYSCALL 1

/* PA-RISC 2.6.9 kernels had the first LWS CAS support */
#if __LINUX_KERNEL_VERSION >= 0x020609
# define __ASSUME_LWS_CAS 1
#endif
#define __ASSUME_LWS_CAS 1

#include_next <kernel-features.h>
5 changes: 0 additions & 5 deletions ports/sysdeps/unix/sysv/linux/hppa/nptl/configure

This file was deleted.

5 changes: 0 additions & 5 deletions ports/sysdeps/unix/sysv/linux/hppa/nptl/configure.in

This file was deleted.

1 change: 0 additions & 1 deletion ports/sysdeps/unix/sysv/linux/m68k/configure
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# This file is generated from configure.in by Autoconf. DO NOT EDIT!
case $machine in
m68k/coldfire)
arch_minimum_kernel=2.6.10
;;
*)
libc_cv_gcc_unwind_find_fde=yes
Expand Down
1 change: 0 additions & 1 deletion ports/sysdeps/unix/sysv/linux/m68k/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ sinclude(./aclocal.m4)dnl Autoconf lossage
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
case $machine in
m68k/coldfire)
arch_minimum_kernel=2.6.10
;;
*)
libc_cv_gcc_unwind_find_fde=yes
Expand Down
8 changes: 3 additions & 5 deletions ports/sysdeps/unix/sysv/linux/m68k/kernel-features.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@
#define __ASSUME_STAT64_SYSCALL 1

/* Many syscalls were added in 2.6.10 for m68k. */
#if __LINUX_KERNEL_VERSION >= 132618
# define __ASSUME_TGKILL 1
# define __ASSUME_UTIMES 1
# define __ASSUME_FADVISE64_64_SYSCALL 1
#endif
#define __ASSUME_TGKILL 1
#define __ASSUME_UTIMES 1
#define __ASSUME_FADVISE64_64_SYSCALL 1

#include_next <kernel-features.h>

Expand Down
5 changes: 1 addition & 4 deletions ports/sysdeps/unix/sysv/linux/mips/configure
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,4 @@ case "$prefix" in
esac
esac

if test -z "$arch_minimum_kernel"; then
arch_minimum_kernel=2.6.12
libc_cv_gcc_unwind_find_fde=yes
fi
libc_cv_gcc_unwind_find_fde=yes
5 changes: 1 addition & 4 deletions ports/sysdeps/unix/sysv/linux/mips/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,4 @@ case "$prefix" in
esac
esac

if test -z "$arch_minimum_kernel"; then
arch_minimum_kernel=2.6.12
libc_cv_gcc_unwind_find_fde=yes
fi
libc_cv_gcc_unwind_find_fde=yes
16 changes: 8 additions & 8 deletions sysdeps/unix/sysv/linux/configure
Original file line number Diff line number Diff line change
Expand Up @@ -284,34 +284,34 @@ test -n "$arch_minimum_kernel" ||
case "$machine" in
i386*)
libc_cv_gcc_unwind_find_fde=yes
arch_minimum_kernel=2.6.0
arch_minimum_kernel=2.6.16
;;
powerpc/powerpc32)
libc_cv_gcc_unwind_find_fde=yes
arch_minimum_kernel=2.6.0
arch_minimum_kernel=2.6.16
;;
s390/s390-32)
libc_cv_gcc_unwind_find_fde=yes
arch_minimum_kernel=2.6.0
arch_minimum_kernel=2.6.16
;;
s390/s390-64)
libc_cv_gcc_unwind_find_fde=yes
arch_minimum_kernel=2.6.0
arch_minimum_kernel=2.6.16
;;
sh*)
arch_minimum_kernel=2.6.0
arch_minimum_kernel=2.6.16
libc_cv_gcc_unwind_find_fde=yes
;;
sparc/sparc64*)
libc_cv_gcc_unwind_find_fde=yes
arch_minimum_kernel=2.6.0
arch_minimum_kernel=2.6.16
;;
sparc*)
libc_cv_gcc_unwind_find_fde=yes
arch_minimum_kernel=2.6.0
arch_minimum_kernel=2.6.16
;;
*)
arch_minimum_kernel=2.6.0
arch_minimum_kernel=2.6.16
;;
esac
if test -n "$minimum_kernel"; then
Expand Down
16 changes: 8 additions & 8 deletions sysdeps/unix/sysv/linux/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -41,34 +41,34 @@ test -n "$arch_minimum_kernel" ||
case "$machine" in
i386*)
libc_cv_gcc_unwind_find_fde=yes
arch_minimum_kernel=2.6.0
arch_minimum_kernel=2.6.16
;;
powerpc/powerpc32)
libc_cv_gcc_unwind_find_fde=yes
arch_minimum_kernel=2.6.0
arch_minimum_kernel=2.6.16
;;
s390/s390-32)
libc_cv_gcc_unwind_find_fde=yes
arch_minimum_kernel=2.6.0
arch_minimum_kernel=2.6.16
;;
s390/s390-64)
libc_cv_gcc_unwind_find_fde=yes
arch_minimum_kernel=2.6.0
arch_minimum_kernel=2.6.16
;;
sh*)
arch_minimum_kernel=2.6.0
arch_minimum_kernel=2.6.16
libc_cv_gcc_unwind_find_fde=yes
;;
sparc/sparc64*)
libc_cv_gcc_unwind_find_fde=yes
arch_minimum_kernel=2.6.0
arch_minimum_kernel=2.6.16
;;
sparc*)
libc_cv_gcc_unwind_find_fde=yes
arch_minimum_kernel=2.6.0
arch_minimum_kernel=2.6.16
;;
*)
arch_minimum_kernel=2.6.0
arch_minimum_kernel=2.6.16
;;
esac
if test -n "$minimum_kernel"; then
Expand Down
Loading

0 comments on commit 6dad2c0

Please sign in to comment.