From patchwork Tue Nov 9 13:39:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Lucas A. M. Magalhaes" X-Patchwork-Id: 47281 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 355043858029 for ; Tue, 9 Nov 2021 13:42:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 355043858029 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1636465323; bh=lh7wDkSQJKYJ69t86X879OUceJDUzEvQ6Pc2p8BzTyU=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=jwIk598x5FX54n1yU5b6nxVMR5u/c1MKcB5ZQuxNfi4CCS5neg9tWQc+DrA+2MA5o z3yVpaRshgBJxcRqv63mEsIQkHi0WPao8EHdD595htI5ldQwmoqacxMIMvU89fLcr/ /VMf63BBVL489EgqoV5eYCxlDa4TBpKiCzOY+ZcY= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id 047233858C2C for ; Tue, 9 Nov 2021 13:41:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 047233858C2C Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1A9C99vE020940; Tue, 9 Nov 2021 13:41:05 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3c7p7rdmh0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Nov 2021 13:41:05 +0000 Received: from m0098409.ppops.net (m0098409.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 1A9DSAkd011755; Tue, 9 Nov 2021 13:41:05 GMT Received: from ppma05wdc.us.ibm.com (1b.90.2fa9.ip4.static.sl-reverse.com [169.47.144.27]) by mx0a-001b2d01.pphosted.com with ESMTP id 3c7p7rdmgb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Nov 2021 13:41:05 +0000 Received: from pps.filterd (ppma05wdc.us.ibm.com [127.0.0.1]) by ppma05wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 1A9DXNEh006384; Tue, 9 Nov 2021 13:41:03 GMT Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by ppma05wdc.us.ibm.com with ESMTP id 3c5hbb9ab0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Nov 2021 13:41:03 +0000 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 1A9DdmHx26870056 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 9 Nov 2021 13:39:48 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 250FFAC05F; Tue, 9 Nov 2021 13:39:48 +0000 (GMT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C46F0AC064; Tue, 9 Nov 2021 13:39:47 +0000 (GMT) Received: from localhost (unknown [9.160.75.221]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Tue, 9 Nov 2021 13:39:47 +0000 (GMT) To: gcc-patches@gcc.gnu.org Subject: [PATCH] powerpc: Remove LINK_OS_EXTRA_SPEC{32, 64} from --with-advance-toolchain Date: Tue, 9 Nov 2021 10:39:46 -0300 Message-Id: <20211109133946.1983974-1-lamm@linux.ibm.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: UYDxffylMgJrf4i98UEYhAKBVZ0cd5V0 X-Proofpoint-ORIG-GUID: RbVn1kEh55n482J4KO1DkM52zs2QHyh4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-11-09_03,2021-11-08_02,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 impostorscore=0 mlxlogscore=904 spamscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 mlxscore=0 suspectscore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2111090082 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: "Lucas A. M. Magalhaes via Gcc-patches" From: "Lucas A. M. Magalhaes" Reply-To: "Lucas A. M. Magalhaes" Cc: meissner@linux.ibm.com, segher@kernel.crashing.org, dje.gcc@gmail.com Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" Ping. -- >8 -- Historically this was added to fill gaps from ld.so.cache on early AT releases. This now are just causing errors and rework. Since AT5.0 the AT's ld.so is using a correctly configured ld.so.cache and sets the DT_INTERP to AT's ld.so. This two factors are sufficient for an AT builded program to get the correct libraries. GCC congured with --with-advance-toolchain has issues building GlibC releases because it adds DT_RUNPATH to ld.so and that's unsupported. 2021-03-11 Lucas A. M. Magalhães gcc/ * config.gcc (powerpc*-*-*): Remove -rpath from --with-advance-toochain --- gcc/config.gcc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/gcc/config.gcc b/gcc/config.gcc index fb1f06f3da8..9eba3ece0a9 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -5088,16 +5088,6 @@ case "${target}" in (at="/opt/$with_advance_toolchain" echo "/* Use Advance Toolchain $at */" echo - echo "#undef LINK_OS_EXTRA_SPEC32" - echo "#define LINK_OS_EXTRA_SPEC32" \ - "\"%(link_os_new_dtags)" \ - "-rpath $prefix/lib -rpath $at/lib\"" - echo - echo "#undef LINK_OS_EXTRA_SPEC64" - echo "#define LINK_OS_EXTRA_SPEC64" \ - "\"%(link_os_new_dtags)" \ - "-rpath $prefix/lib64 -rpath $at/lib64\"" - echo echo "#undef LINK_OS_NEW_DTAGS_SPEC" echo "#define LINK_OS_NEW_DTAGS_SPEC" \ "\"--enable-new-dtags\""