summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-04-17 16:38:35 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-04-17 16:38:35 +0000
commitc2c2d57a8a3a7bd59b032dfdf91046d6869e0e03 (patch)
tree029c218bd1de86b90a42c2d6318ed46c14ee9e0a
parentMarked stable on x86 (diff)
downloadgentoo-2-c2c2d57a8a3a7bd59b032dfdf91046d6869e0e03.tar.gz
gentoo-2-c2c2d57a8a3a7bd59b032dfdf91046d6869e0e03.tar.bz2
gentoo-2-c2c2d57a8a3a7bd59b032dfdf91046d6869e0e03.zip
Blacklist freebsd again for hardened support (for now) as $gcc_cv_ld_pie is unreliable.
-rw-r--r--eclass/toolchain.eclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index e3df7ead7d60..8072047fc68f 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.270 2006/04/17 04:13:32 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.271 2006/04/17 16:38:35 flameeyes Exp $
HOMEPAGE="http://gcc.gnu.org/"
LICENSE="GPL-2 LGPL-2.1"
@@ -355,7 +355,11 @@ XGCC() { get_make_var GCC_FOR_TARGET ; }
# 2) PIE by default
# 3) SSP by default
hardened_gcc_works() {
- # XXX: should check $gcc_cv_ld_pie in config.log here
+ # $gcc_cv_ld_pie is unreliable as it simply take the output of
+ # `ld --help | grep -- -pie`, that reports the option in all cases, also if
+ # the loader doesn't actually load the resulting executables.
+ # To avoid breakage, blacklist FreeBSD here at least
+ [[ ${CTARGET} == *-freebsd* ]] && return 1
if [[ $1 == "pie" ]] ; then
want_pie || return 1