From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E34021382C5 for ; Sat, 20 Jan 2018 12:37:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D91A0E0957; Sat, 20 Jan 2018 12:37:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A941AE0957 for ; Sat, 20 Jan 2018 12:37:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 52D1D335C37 for ; Sat, 20 Jan 2018 12:37:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E13FF186 for ; Sat, 20 Jan 2018 12:37:37 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1516451401.1803a14a1ad634a1e1153efd2f906aa1c7bb0fc1.slyfox@gentoo> Subject: [gentoo-commits] proj/crossdev:master commit in: / X-VCS-Repository: proj/crossdev X-VCS-Files: crossdev X-VCS-Directories: / X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 1803a14a1ad634a1e1153efd2f906aa1c7bb0fc1 X-VCS-Branch: master Date: Sat, 20 Jan 2018 12:37:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 4237dcd1-7703-40d8-949d-636f77799a93 X-Archives-Hash: da493bd10648928566c91334761ab266 commit: 1803a14a1ad634a1e1153efd2f906aa1c7bb0fc1 Author: Sergei Trofimovich gentoo org> AuthorDate: Sat Jan 20 12:30:01 2018 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sat Jan 20 12:30:01 2018 +0000 URL: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=1803a14a crossdev: blacklist known broken targets for PIE and SSP, bug #644930 - SSP is not supported by alpha, hppa, ia64, avr, nios2, mmix - PIE is not supported by avr, mmix, mingw32 Bug: https://bugs.gentoo.org/644930 Signed-off-by: Sergei Trofimovich gentoo.org> crossdev | 40 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/crossdev b/crossdev index 10097a0..3eccfcd 100755 --- a/crossdev +++ b/crossdev @@ -228,7 +228,7 @@ parse_target() { avr*) KPKG="[none]" LCAT="dev-embedded" LPKG="avr-libc" - GUSE+=" -fortran -go -pie nopie" # doesn't work + GUSE+=" -fortran -go" # doesn't work MULTILIB_USE="yes" #377039 BUSE+=" cxx" STAGE_DEFAULT=${STAGE_LIBC} @@ -334,6 +334,10 @@ parse_target() { ;; esac + # Target-specific defaults (workarounds for upstream bugs). User + # can override them by passing 'USE=foo crossdev ...'. Useful when + # one wants to fix upstream bugs. + local sanitizer_support=no # Whitelist asan on explicitly supported arches for linux. # Broken examples: @@ -379,6 +383,36 @@ parse_target() { if [[ $vtv_support = "no" ]]; then GUSE+=" -vtv" fi + + local pie_support=yes + # Blacklist rare targets that: + # 1. don't support -fPIC in compiler + # 2. have -fPIE broken + case ${CTARGET} in + # [1.]: no -fPIC flag support: + # check as '$CC -fPIC -c -x c - =gcc-6, nopie is =gcc-6, nossp is