]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/commitdiff
glibc: Update to 2.25
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 16 Feb 2017 11:38:44 +0000 (11:38 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 16 Feb 2017 11:38:44 +0000 (11:38 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
glibc/glibc.nm
glibc/patches/glibc-2.24-Revert-Avoid-an-extra-branch-to-PLT-for-z-now.patch [deleted file]

index 0536639a572a2b7d4ceaebca334527d031e523be..9330640087ee1bd94ecd73ee70832045395c1995 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = glibc
-version    = 2.24
-release    = 3
+version    = 2.25
+release    = 1
 
 maintainer = Michael Tremer <michael.tremer@ipfire.org>
 groups     = System/Base
@@ -91,6 +91,7 @@ build
                --enable-add-ons \
                --enable-kernel=%{OPTIMIZED_KERNEL} \
                --disable-werror \
+               --enable-stack-protector=strong \
                --enable-bind-now \
                --enable-obsolete-rpc \
                --with-bugurl=http://bugtracker.ipfire.org \
@@ -110,19 +111,6 @@ build
                ../%{thisapp}/configure \
                        %{configure_options}
 
-               # Our GCC is already passing -fPIC, and that's all we want for the libraries.
-               # LDFLAGS.so is appended to so we don't build shared libraries with
-               # DT_TEXTREL (and to tell us if something goes wrong). For now we only build
-               # the libraries, not the programs:
-               echo "build-programs=no" >> configparms
-
-               make PARALLELMFLAGS=%{PARALLELISMFLAGS} \
-                       CFLAGS="%{CFLAGS} -fno-stack-protector -U_FORTIFY_SOURCE" \
-                       CXXFLAGS="%{CXXFLAGS} -fno-stack-protector -U_FORTIFY_SOURCE"
-
-               # Then build the programs with hardening, so everything possible in
-               # is hardened:
-               echo "# Nothing in here :D" > configparms
                make PARALLELMFLAGS=%{PARALLELISMFLAGS} \
                        CFLAGS="%{CFLAGS}" CXXFLAGS="%{CXXFLAGS}"
        end
diff --git a/glibc/patches/glibc-2.24-Revert-Avoid-an-extra-branch-to-PLT-for-z-now.patch b/glibc/patches/glibc-2.24-Revert-Avoid-an-extra-branch-to-PLT-for-z-now.patch
deleted file mode 100644 (file)
index 102d385..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-From f160cfff59261bb661cf829fdcb5a3f391996280 Mon Sep 17 00:00:00 2001
-From: Michael Tremer <michael.tremer@ipfire.org>
-Date: Thu, 22 Sep 2016 16:33:43 +0100
-Subject: [PATCH] Revert "Avoid an extra branch to PLT for -z now"
-
-This reverts commit 6901def689b5c77465d34f07822989ec67e80c1e.
-
-glibc won't compile on x86_64 with PIC and BIND_NOW enabled
-both at the same time.
-
-See: https://sourceware.org/bugzilla/show_bug.cgi?id=20621
----
- config.h.in             | 3 ---
- configure               | 4 ----
- configure.ac            | 3 ---
- sysdeps/x86_64/sysdep.h | 8 ++------
- 4 files changed, 2 insertions(+), 16 deletions(-)
-
-diff --git a/config.h.in b/config.h.in
-index 8cd08b0..f4ec748 100644
---- a/config.h.in
-+++ b/config.h.in
-@@ -94,9 +94,6 @@
-    include/libc-symbols.h that avoid PLT slots in the shared objects.  */
- #undef        NO_HIDDEN
--/* Define this to disable lazy relocations in DSOs.  */
--#undef        BIND_NOW
--
- /* AArch64 big endian ABI */
- #undef HAVE_AARCH64_BE
-diff --git a/configure b/configure
-index 6ff2527..46015c9 100755
---- a/configure
-+++ b/configure
-@@ -3419,10 +3419,6 @@ else
- fi
--if test "x$bindnow" = xyes; then
--  $as_echo "#define BIND_NOW 1" >>confdefs.h
--
--fi
- # Check whether --enable-static-nss was given.
- if test "${enable_static_nss+set}" = set; then :
-diff --git a/configure.ac b/configure.ac
-index 9938ab0..d255b57 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -231,9 +231,6 @@ AC_ARG_ENABLE([bind-now],
-             [bindnow=$enableval],
-             [bindnow=no])
- AC_SUBST(bindnow)
--if test "x$bindnow" = xyes; then
--  AC_DEFINE(BIND_NOW)
--fi
- dnl On some platforms we cannot use dynamic loading.  We must provide
- dnl static NSS modules.
-diff --git a/sysdeps/x86_64/sysdep.h b/sysdeps/x86_64/sysdep.h
-index 75ac747..fbe3560 100644
---- a/sysdeps/x86_64/sysdep.h
-+++ b/sysdeps/x86_64/sysdep.h
-@@ -90,13 +90,9 @@ lose:                                                                             \
- #undef JUMPTARGET
- #ifdef PIC
--# ifdef BIND_NOW
--#  define JUMPTARGET(name)    *name##@GOTPCREL(%rip)
--# else
--#  define JUMPTARGET(name)    name##@PLT
--# endif
-+#define JUMPTARGET(name)      name##@PLT
- #else
--# define JUMPTARGET(name)     name
-+#define JUMPTARGET(name)      name
- #endif
- /* Local label name for asm code. */
--- 
-2.7.4
-