From c2144157dc1b1c6aa80d73e6afa53ac098c2dfdd Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 4 Dec 2011 19:24:04 +0000 Subject: [PATCH] drop old glibc pie checking as this has worked since at least version 2.4 --- eclass/toolchain.eclass | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 197511bc3e29..55e0e334585b 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.489 2011/12/03 20:45:45 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.490 2011/12/04 19:24:04 vapier Exp $ # # Maintainer: Toolchain Ninjas @@ -516,17 +516,6 @@ want_minispecs() { fi return 1 } -# This function checks whether or not glibc has the support required to build -# Position Independant Executables with gcc. -glibc_have_pie() { - if [[ ! -f ${ROOT}/usr/$(get_libdir)/Scrt1.o ]] ; then - echo - ewarn "Your glibc does not have support for pie, the file Scrt1.o is missing" - ewarn "Please update your glibc to a proper version or disable hardened" - echo - return 1 - fi -} # This function determines whether or not libc has been patched with stack # smashing protection support. @@ -904,10 +893,6 @@ toolchain_src_unpack() { do_gcc_PIE_patches epatch_user - # fail if using pie patches, building hardened, and glibc doesnt have - # the necessary support - want_pie && use hardened && glibc_have_pie - if use hardened ; then einfo "updating configuration to build hardened GCC" make_gcc_hard || die "failed to make gcc hard" -- 2.26.2