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 85736138334 for ; Sat, 18 Aug 2018 15:43:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4D8DFE0822; Sat, 18 Aug 2018 15:43:04 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 2099BE0822 for ; Sat, 18 Aug 2018 15:43:03 +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 5DB58340B63 for ; Sat, 18 Aug 2018 15:43:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D10883A0 for ; Sat, 18 Aug 2018 15:42:59 +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: <1534606853.d6c59e8252caed2b0b382a5ea81db6988ebe585c.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: d6c59e8252caed2b0b382a5ea81db6988ebe585c X-VCS-Branch: master Date: Sat, 18 Aug 2018 15:42:59 +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: fea6d20b-ab8b-458e-81a1-9902a31b5453 X-Archives-Hash: 4516d7bf8e80476ac0bdeab9dfdbe1ef commit: d6c59e8252caed2b0b382a5ea81db6988ebe585c Author: Sergei Trofimovich gentoo org> AuthorDate: Sat Aug 18 15:40:53 2018 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sat Aug 18 15:40:53 2018 +0000 URL: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=d6c59e82 crossdev: default to USE=-pie for bare-metal mips targets When built with pie-by-default compiling gcc fails as: cc1: error: position-independent code requires ‘-mabicalls’ Tested as: USE=-pie crossdev -t mipsel-elf Reported-by: rhn Signed-off-by: Sergei Trofimovich gentoo.org> crossdev | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crossdev b/crossdev index 4ee7076..81bd50d 100755 --- a/crossdev +++ b/crossdev @@ -397,6 +397,14 @@ parse_target() { # [2.] mingw32 startup code is broken: bug #644930 # at least on i686-w64-mingw32 and x86_64-w64-mingw32 mingw*|*-mingw*) pie_support=no;; + # Some bare-metal targets don't work with pie as-is + *-elf|*-eabi) + case ${CTARGET} in + # mips can't generate freestanding PIC: + # cc1: error: position-independent code requires ‘-mabicalls’ + mips*) pie_support=no;; + esac + ;; esac if [[ $pie_support = "no" ]]; then # pie is >=gcc-6, nopie is