From patchwork Fri Feb 10 20:17:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Saeger X-Patchwork-Id: 13136285 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E05CC64ED8 for ; Fri, 10 Feb 2023 20:18:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233626AbjBJUST (ORCPT ); Fri, 10 Feb 2023 15:18:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233537AbjBJUSQ (ORCPT ); Fri, 10 Feb 2023 15:18:16 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C35C6E8C; Fri, 10 Feb 2023 12:18:15 -0800 (PST) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31AHwiHJ005562; Fri, 10 Feb 2023 20:17:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=IoNI4TdnjHbJa0KX8fml/bNacgTZvDQCEnCdDB3uHrA=; b=plKHewvCazTfjfGfGye8aJesPyTCtAdHIHshUbpIOP9qbQ8X+9K3cAoB8Nb5iO5/uw5L X1LpioAml/odRs4b7iwDbuWxLF7b9P7expxHGev+Fv7Hn9WkDlUT2xWkxQ3F1VmKzV7A gueQWAsc66JiPDDdT1L/W9l8zCCO6VxHPUDYbV1vTVeLpYglGyUA7UbYFC4LeObjQ6Fy loVTy7ThzgVNMa9RXVBOymd8BbmBXQCZFPv2tLO74A5DQsZJi8xbQANl6HSmKPC7IX9d sYy0M7kxZfX2QNvqNX37X9YM8xa8WCTvDd01nv7yzvrxHOUB59XLUZ0+4pauKPj4DOxY sw== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nhe53p6ag-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:17:35 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31AJxX5g015199; Fri, 10 Feb 2023 20:17:34 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2042.outbound.protection.outlook.com [104.47.57.42]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3njrbf8n6s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:17:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ia3Dm7r4QBWRBlAi0msk0znoukx2XlMzedovt+U5h7TaZvwjnNDh6GxWCayfkDNfNlGkCKShhmVRNGI8N2mWvKKWnYruTCY4KQKKm7uem68H7wdRdWqMRr9ZrvpzopbSDGfCaY7GhdC2u9LftJEm2/Eu/UuwYDxODKiVbcPUD62G4p9ioip2hFeh/StJB43W26KFHIfwhzxk/k/Px57lXBQ0iGGZwADB6HL48Mt0bL+TLHkudTI3HzwEohKxRTubQmhOjHqcgidAWy9LKC9tMcvfaaV+hhx7YiAF1Fipa10PniXOfUQ0uNJlhvumehHOEm1raC2dFS7pqOmo6s7R3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=IoNI4TdnjHbJa0KX8fml/bNacgTZvDQCEnCdDB3uHrA=; b=hLs4LvMhBdiZE8FWKKrBbDRSMwDxM7C1c3yf0zwdECmMDyIIOCKtepdIPAAOgtfOsyhY3akbnpU6Go1TrIXdD0qyHV33kUf7FrM2qGUuU0DGBtIj+b5V9JsIGxP7LvI7CHHcQ0en+m9YcHske3lRJV9bbDpmXlb84DiLFAgJcNMMDe4gC2MMIEczrozp3pshOMkBTVQMUpo+M55hQsfGEFnVpLfmrmefOcB+Fs/IIXDv4xFV1WpRJnzcbLn1kEf4tUTZliqNdhJ2vbT+o/d2x+tUhxXm+FsRPwHHY8puYq/Jx93Xekd8NINd9bxxol2xQkUuvFPDWCTBPg+QJC5cZQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IoNI4TdnjHbJa0KX8fml/bNacgTZvDQCEnCdDB3uHrA=; b=b/6citxO0P+cOgBbyR24QFMySNlFuZqsYkLyVlmxg9J8owrP0EJYCmLEs5+P5MpmdSFxI51aoCXR2evVng3AgObzpyGnobfS2DlrVME0yoEhvwR8onkyjskpBOqZRu90RbdL8FKaAczqxEGtD0L0C0cFNHENIKUOe0SJWBxoCms= Received: from BY5PR10MB3794.namprd10.prod.outlook.com (2603:10b6:a03:1b2::30) by SA3PR10MB7093.namprd10.prod.outlook.com (2603:10b6:806:304::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.7; Fri, 10 Feb 2023 20:17:32 +0000 Received: from BY5PR10MB3794.namprd10.prod.outlook.com ([fe80::f37e:ad45:7d9e:d84d]) by BY5PR10MB3794.namprd10.prod.outlook.com ([fe80::f37e:ad45:7d9e:d84d%6]) with mapi id 15.20.6111.006; Fri, 10 Feb 2023 20:17:32 +0000 From: Tom Saeger To: Greg Kroah-Hartman Cc: Sasha Levin , Naresh Kamboju , John Paul Adrian Glaubitz , Rich Felker , Masahiro Yamada , Ard Biesheuvel , Nathan Chancellor , Dennis Gilmore , Palmer Dabbelt , Arnd Bergmann , Andrew Morton , Tom Saeger , stable@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, Jisheng Zhang Subject: [PATCH 6.1 v2 1/7] riscv: remove special treatment for the link order of head.o Date: Fri, 10 Feb 2023 13:17:16 -0700 Message-Id: <20230210-tsaeger-upstream-linux-6-1-y-v2-1-3689d04e29fc@oracle.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230210-tsaeger-upstream-linux-6-1-y-v2-0-3689d04e29fc@oracle.com> References: <20230210-tsaeger-upstream-linux-6-1-y-v2-0-3689d04e29fc@oracle.com> X-Mailer: b4 0.12.1 X-ClientProxiedBy: SA9PR13CA0090.namprd13.prod.outlook.com (2603:10b6:806:23::35) To BY5PR10MB3794.namprd10.prod.outlook.com (2603:10b6:a03:1b2::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB3794:EE_|SA3PR10MB7093:EE_ X-MS-Office365-Filtering-Correlation-Id: 151d1994-5283-4df6-46d8-08db0ba3d749 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ivG52g4EreSCCf5Bw7pY1N995yLo3q/rIrS9a/KaEGswmSjqWlnsIxj37pleWh27OIzAwAY9PLDzgKEh9HR89zgG7l8V7k4E01jJPKFKX4aoCKLHHsrOQihx/B9jRSF+IP6MyQsf7VyoRzIeT9D6nNGNW8VGR02Uj/EGuEfTkaWevh1KLD7i8lCdmZa1tpozxMdDGpkDP6LMogXmxxvIvU2OymgSQrMolwhp8C/wz2xMYTBmLrWz8zUbfl+L+R980NluLhjPNOrMS86yPwu23AuI545sgbgklF6my4VUQ9fTiE3fVkWOvepH3cNxbldezz1JdST7r36nLdIsvT4Vi87eQlScSs9//a+GrT011hpqOv0SyDXk8OcGw8HRVIqvcpwbw1jVWu/P0oL8exFWtkvOoiOyKNg58N++RIkGx3h7iGk9jwsmU3SvDnaVuCDg/0QDl/KORGcY+uW0AU+ATsSNTHL7Dx/2VV8IexkgBBI6U+chc+2KKoxOF7WolCOqoZmIZ+zH7zxLRR/lrAlPkLuaUUOTDAL5H2aReFWvts029ny4C7o5QEVlk8SBjaWNUtLYsJGoRnLFiNaHeZ1axGE2dLewu31szMnFGI/fVl6fVmgmL3X/VFSJ+EHs8yoS7UjRsl6o8B3s+RJ+UHDYwWYYvi7jljQmh6hQRwA1Cn0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR10MB3794.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(366004)(136003)(346002)(376002)(396003)(39860400002)(451199018)(44832011)(6506007)(5660300002)(7416002)(186003)(6512007)(8936002)(36756003)(83380400001)(86362001)(38100700002)(2616005)(2906002)(316002)(54906003)(6486002)(966005)(478600001)(41300700001)(6666004)(66476007)(4326008)(66946007)(8676002)(6916009)(66556008);DIR:OUT;SFP:1101; X-M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6ShCQi6NdG48/t3mvAzZFGIYFcX?= =?utf-8?q?gKrgf+mi+RU07O/1TxYCWhe+f1onJyMhJkNXlFifSSmnUUUeEvXVwe2ySkhaVpzfS?= =?utf-8?q?PeWlB+74jp2f0b94hFq6okCZrZbcGARuSYXUA4PCbtGRw1wMT8elqPqJTv/jBzzLp?= =?utf-8?q?Imyd3a1mySOiLdmfj13htyKisfAg82bjVz4NGhU1xTaBKEwEokKVNy6oRQO9wyj8N?= =?utf-8?q?ckNtgLV29a2PGOnEUDJFE7TaGm5X2Q0ww0PIg+pR9Rafdzb737ZmKIeljf+Tk8U6t?= =?utf-8?q?d0NkLZnSb2mEyme0jhDTuiznQ0aVlEuYot2fONCdxpevNS/S0Fnrysr0lgJ5k+yo0?= =?utf-8?q?zWMQhdWWdfaQjj6MnVkcUxwD3xquNpo4svmrslmlgJapacwxTW5OEmcjAlVksBvIh?= =?utf-8?q?593nc2yrca/hFpzJugnHCaaUGihNy0fxIVONvxcCImNEbs6QKh8oAej8vVHL4nszU?= =?utf-8?q?sp6I4BIaY9MtxCvEf4gIp8nSJJH0FSAghllDRVdOw+VC5vP3k7IMQYHwBSdrAAK2O?= =?utf-8?q?1Hn+1U3G/TMp8Uzl0kshdgR4UwasLpwrcQaa4fEwxIsISAsUrt7iYL6zAE781TZYh?= =?utf-8?q?wte/1VTblmZbWgSVrtF+pDTq8FODheQmyVdvZ4nbFFkCFb1tBYxyjZrI5Ek0pfKef?= =?utf-8?q?x4nlm8SXi/6sKeIs90buhcd8LofwU4IkqXRlh79wxx/79fUclp4Q65AOXOGcM6g8f?= =?utf-8?q?3Ymegde6PNGREa/tGJjW5ZOjobWeQCM1vzjtaTT1EpMSVNKkQ1JY5yc=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?utf-8?q?IYdIA7pWTHrfEtYe?= =?utf-8?q?aZlg1NVl+B3HZiGVQrX1eLJvKl0XHWNULb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vXGK3YRPjd1gc8dP57LlZVAskMnjO?= =?utf-8?q?TXuZvIju2g9dUrKQN0Yx4z+5ESr+6dvLC7GkGTXIDHTEPIOE+F2G1cP9m9KbP7Y/u?= =?utf-8?q?AnSNovhgvliBmV3b0t6peWg3fBzjczzeCX4FhZcUAch7+8f78m7bD3gewyGUEfYVZ?= =?utf-8?q?2tDqGEcX8Zk0xOYKeIULgLSRnz2xUC5niLt8voAvJPssj4xkrfHT8+DdnT6AiKcrF?= =?utf-8?q?T11MyN8OUqsiJ8RPgr38S0GUeaIFCK?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 151d1994-5283-4df6-46d8-08db0ba3d749 X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB3794.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2023 20:17:32.5191 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JUDTiZvqE54v3kwnwhHrUgiI5pZ/6bjkJDTzZi2K1P5ab0UnO0Tbpk0ouUqZulSfIbmEmXjef93b0rw79YE+jQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR10MB7093 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-10_15,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 spamscore=0 malwarescore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100172 X-Proofpoint-ORIG-GUID: VJJEde0bV8RO-iVlHJ7Ssau9QM8RL0MY X-Proofpoint-GUID: VJJEde0bV8RO-iVlHJ7Ssau9QM8RL0MY Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Jisheng Zhang commit 2348e6bf44213c5f447ff698e43c089185241ed7 upstream. arch/riscv/kernel/head.o does not need any special treatment - the only requirement is the ".head.text" section must be placed before the normal ".text" section. The linker script does the right thing to do. The build system does not need to manipulate the link order of head.o. Signed-off-by: Jisheng Zhang Link: https://lore.kernel.org/r/20221018141200.1040-1-jszhang@kernel.org Signed-off-by: Palmer Dabbelt Signed-off-by: Tom Saeger --- scripts/head-object-list.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/head-object-list.txt b/scripts/head-object-list.txt index b16326a92c45..105ea7ac4751 100644 --- a/scripts/head-object-list.txt +++ b/scripts/head-object-list.txt @@ -39,7 +39,6 @@ arch/powerpc/kernel/entry_64.o arch/powerpc/kernel/fpu.o arch/powerpc/kernel/vector.o arch/powerpc/kernel/prom_init.o -arch/riscv/kernel/head.o arch/s390/kernel/head64.o arch/sh/kernel/head_32.o arch/sparc/kernel/head_32.o From patchwork Fri Feb 10 20:17:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Saeger X-Patchwork-Id: 13136286 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4F98C636D4 for ; Fri, 10 Feb 2023 20:18:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233648AbjBJUS3 (ORCPT ); Fri, 10 Feb 2023 15:18:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233629AbjBJUSU (ORCPT ); Fri, 10 Feb 2023 15:18:20 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3320C193F5; Fri, 10 Feb 2023 12:18:19 -0800 (PST) Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31AI0J3G023196; Fri, 10 Feb 2023 20:17:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=b6letfsLruTzwi+MnYGo0Y3/lDsJPwmPo9K97UrzyDI=; b=AQmLLVS6KeF+BRcxzSfZ9G7zEjYQaZnWJdkdhvJbPXDg0zjaywgb1ORaVHdOtkJHyEgT GW1znxD8rHkJAB9YYbaz/hKEmXja0lIC1iyrYUkOs2piTtUtubDW5iukLoLhNMQ5SWr1 ZjAhEc94ixlvXEa+JuGyUEOFR3pcK80MWWuzlIS9AzpAtIGke+UWJ/90Qt8zTFoRBd1k bFYHAp+ONYmV+g1+EAezQ5QEPeCphNs/A8eLsntBvE8EqeJPNmS8HQYq+TYDuxq12fj8 Pgjogzezr6C8WC30JyB2FsbfCuTCkKOg7hSltnpg4mVAsB9+AbaL5AK+vIfTmCFNXiA4 hg== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nhf8ae5tk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:17:38 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31AIHs44013665; Fri, 10 Feb 2023 20:17:38 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2041.outbound.protection.outlook.com [104.47.57.41]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3nhdtaqhk9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:17:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nSiK3V0ORNQc/RraQIHsDWc66dHJtp3vKvI8EOXuaqn7Km1SAZ+SvhMs7AQj1vEp+pMAGJ6H801UnO+t2Treby9xmNrPnRKcvFKhD9pMp+URQxip4IKCtV1LZoVMuogjMzf4bdm05Ebw76NT0GI/T4FkJTdEdv/73xGaImqXyZXYPOC8uyqNDqxLPSP05KPPv4BXXEfDyrvTaEd+ljkR7wxQXRguj3Ue2axAVDyvRitb1FMYj2Lm3xRdQF4N5N/RnYRID7WOZOJTWMeDHHB1eNXIcgYG2b56n2N6TIXo0jkNUpJ2T29Pf8Kawp50J6lnTIBZbIXLQ/oowWIuZYVw3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=b6letfsLruTzwi+MnYGo0Y3/lDsJPwmPo9K97UrzyDI=; b=W2ai7LklxUcsqoqHiGQSxAw2/BaQrRCV1dq6Tu4Ix0W05MkopzDRZC+jHCMgbjMq7nZBTT8zx+1rse0GSlcqSLBU78wNStY+kgWpXD58yH+Fc9CRVje1Nc6hoeo4/SlI4a8HGq5WOfQRSFsVW8pVsJ17yF8RhOIUM3uTeJW7UPv925HsINtuMo5449Q6M/QziW+xboPneb8uN9eRfdHXGt4WLIEQcjOjwEC2ilkrrdUfE3JmxJjajNIkVYoVPf6JAvvdN3eBtrk8e8DrULUscIEwAdFf9S+TBCI3WJQSY7FubaAu08lxMFV1UD+LWMAducihpvAp33tgKZZGHkzHlg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=b6letfsLruTzwi+MnYGo0Y3/lDsJPwmPo9K97UrzyDI=; b=mn0fE2HH8itMKP7CxeyqPjUUaaoiLc6pZGyqnw+eWv8VkgN/5C8/6vc+TfhSudjocK4P47eB436yJ/JJTkQc8sUdmeiRCLdUoJYXJ3C46A9E/YFmvskDa7oeMfK46X9wSa/ZH98Dr/oMtoqo++FDbti0B3+PrW5HzBF2JLmSxqY= Received: from BY5PR10MB3794.namprd10.prod.outlook.com (2603:10b6:a03:1b2::30) by SA3PR10MB7093.namprd10.prod.outlook.com (2603:10b6:806:304::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.7; Fri, 10 Feb 2023 20:17:36 +0000 Received: from BY5PR10MB3794.namprd10.prod.outlook.com ([fe80::f37e:ad45:7d9e:d84d]) by BY5PR10MB3794.namprd10.prod.outlook.com ([fe80::f37e:ad45:7d9e:d84d%6]) with mapi id 15.20.6111.006; Fri, 10 Feb 2023 20:17:35 +0000 From: Tom Saeger To: Greg Kroah-Hartman Cc: Sasha Levin , Naresh Kamboju , John Paul Adrian Glaubitz , Rich Felker , Masahiro Yamada , Ard Biesheuvel , Nathan Chancellor , Dennis Gilmore , Palmer Dabbelt , Arnd Bergmann , Andrew Morton , Tom Saeger , stable@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, Nicolas Schier , Will Deacon Subject: [PATCH 6.1 v2 2/7] arm64: remove special treatment for the link order of head.o Date: Fri, 10 Feb 2023 13:17:17 -0700 Message-Id: <20230210-tsaeger-upstream-linux-6-1-y-v2-2-3689d04e29fc@oracle.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230210-tsaeger-upstream-linux-6-1-y-v2-0-3689d04e29fc@oracle.com> References: <20230210-tsaeger-upstream-linux-6-1-y-v2-0-3689d04e29fc@oracle.com> X-Mailer: b4 0.12.1 X-ClientProxiedBy: SN6PR08CA0035.namprd08.prod.outlook.com (2603:10b6:805:66::48) To BY5PR10MB3794.namprd10.prod.outlook.com (2603:10b6:a03:1b2::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB3794:EE_|SA3PR10MB7093:EE_ X-MS-Office365-Filtering-Correlation-Id: 1f36399e-268a-4d09-eb5f-08db0ba3d93d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xFqEfhajNAGlu3NukX6j/UnI7ZHDPlOxlUH0d2otiKmsxpbBNL1odlRbAxPpKp453TuwijyxuC56OK9qFpVW2pC/n02pCnejVFy1yhKaR+GVWKZgoF5ZaIgBo2g/V2Ogw+AMuSXM3o3jpo+cuAx/4YP8NboNSL86T7QbzH7wPZLDX8Z87cnYmIUKcfY60OkJTdroIQ4ET1WN5JlyzanxBgn3uFrPaeGa9SWDZCjSs0v574MZ2nJA0k8gWpDo+ZSDtHPuCqOAVBD9VEM/KRuvdzRu1cfMYkzWS9QjCuYJGjkDmdG1ziGpXrCu2F4MeOPeRwwl681xyghOsVawYKA/nHeZLYSEGj4qr8fKqV7kKdtAKzgcPizVdwF5+JV5Gtv8+DtWfV484DLGLPSZ6vT36n3t/yA8WmbyExY4t5MUnXEwUF50U/Vqer8KUeZNi2sC6grOr12hLrEdKnIQAABDgbDmerJjRJIbwOD0i3KVXoxspvJ3GzqX++LdQSv1YVoQ5L13TE0LEnD1Ljx71xo3uUZBpileMfdj7kaG4r1B4E5Lig9p+5EfpCj5f8q1vsvE4bMjEeKQeUuet9IhN3izt8faa6/JsnG6u5dzda1Q/KLK1JO2gH4yJGGmqnGNkNnx+N3doB1jelZ79FP/rVDuK8axFGSGJAXc6g7k8kCVBc9DJAph0Ow3bAig7TieSLJbKHYTcyzazfWVEVjiG4QzHg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR10MB3794.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(366004)(136003)(346002)(376002)(396003)(39860400002)(451199018)(44832011)(6506007)(5660300002)(7416002)(186003)(6512007)(8936002)(36756003)(83380400001)(86362001)(38100700002)(2616005)(2906002)(316002)(54906003)(6486002)(966005)(478600001)(41300700001)(6666004)(66476007)(4326008)(66946007)(8676002)(6916009)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?wTl2kLnCdV+41DIYSQa5LUeaZM9Q?= =?utf-8?q?l5rwY4CqR7tZlauQTtmSUnIJR4SZJemgxNXvOzvk0Tq6Qn+CO2vIkVO8mLg+ldeEM?= =?utf-8?q?M0ycQaLzvjrB673LJdg6vJI6Wu3MvWsS83yN+6L+EA6K0+32bhYF5mkjmH+fK/cg0?= =?utf-8?q?pQvHDAN/mm62hxsCMB8lU79jjgSdNfJWL4EMhEcL0jwG3t+e5ppQFksE5IoEAveEx?= =?utf-8?q?QSENpLgAGZWpTRyfCVWBAlrVHIzT4Iw6t3u5A2XNYLB7LBJPc8FtY6o7wnx4U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jnZepFhrxgX/HV/DiXDxV?= =?utf-8?q?l6/S1Ad/OsAx1ocDlAzZjHj/9hU7i4DHtrIAXoId04HIw0krvGc/mCqsmr0VsJwaa?= =?utf-8?q?uxUh9F6VrEySjXAlA2V5GXqhkeX5IZ1IsWvKd56NRKePFEb04maSv9fvO6uhVha7i?= =?utf-8?q?Zw4lBHb6VcADJYWak0fsBIO8XCQ9/s/nC3A+pkSn3rc1VFPjJL1w7IaSzam4nigkd?= =?utf-8?q?CUOCdcuj6JRB0+R5arg/orpHMZIBEh68nSLTY3RYs4PnDXBsxARvBlKsNAFrpUD7i?= =?utf-8?q?GIjo124G82rQX3aZ5Bkjhm5q5G2r7zxj/1x+OSe8m8481xbo2G0nERhw7ML0ebE6Q?= =?utf-8?q?u3k//6eEQZdO9buuYjh/uOA2TT9q46PCi95TNffIBhVeV4n3rzps01DOEoc4wPlDq?= =?utf-8?q?Wat/vZM/HPablwNr33IkVJQuHNTVRfaxjebkL4Hy+C8N1HijOIvpNthCRx0yXVLUT?= =?utf-8?q?H6HdCvD3gurK4C2fuXKPuh/mSLCKvLHEZ7WoBiaACOXZ+8FYJwoXPMfIHxBzycE+L?= =?utf-8?q?dzKH/RvpEYgfBQFo4JOcNkPyYV2Vb0R1hYD0x6fMCHShoYN8/XTgZbbMRXt0J1uAp?= =?utf-8?q?vlpgQobgICJOB7rnUWxCV2wPpa1vehzwEpklv98X1T4EvSw8f8ZR0CyK7+LH8J5p0?= =?utf-8?q?E28SgMzGKZmRCBmgKlo8XxnDMVH97sERt/7ZKI0SZb+qlh80IJE1+pPtysH6GQ7SA?= =?utf-8?q?CPRvw8GvhHlGrBJN7ulFLjxksWxe0yN8ByRvmHVrinTugPNusmPLNeA8zXNmcCZkg?= =?utf-8?q?4lLWImGNVuPwTbspK8j7lUYeiAjTF5/E8gHeRAq1p56RmYx1HJ4A=3D=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1f36399e-268a-4d09-eb5f-08db0ba3d93d X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB3794.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2023 20:17:35.8001 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1tmEPzDhRD4h1f/SIokX8bStOZbwaY+l3EOsxULGscyMyySAn4KIMV87uu1SOKCDsg+5awZ8EcKIEQyJ4h0W6w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR10MB7093 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-10_15,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 bulkscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 adultscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100172 X-Proofpoint-ORIG-GUID: AsPo8x9sWK20nbjTjNO_YdArV4RY9fDo X-Proofpoint-GUID: AsPo8x9sWK20nbjTjNO_YdArV4RY9fDo Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Masahiro Yamada commit 994b7ac1697b4581b7726d2ac64321e3c840229b upstream. In the previous discussion (see the Link tag), Ard pointed out that arm/arm64/kernel/head.o does not need any special treatment - the only piece that must appear right at the start of the binary image is the image header which is emitted into .head.text. The linker script does the right thing to do. The build system does not need to manipulate the link order of head.o. Link: https://lore.kernel.org/lkml/CAMj1kXH77Ja8bSsq2Qj8Ck9iSZKw=1F8Uy-uAWGVDm4-CG=EuA@mail.gmail.com/ Suggested-by: Ard Biesheuvel Signed-off-by: Masahiro Yamada Reviewed-by: Nicolas Schier Link: https://lore.kernel.org/r/20221012233500.156764-1-masahiroy@kernel.org Signed-off-by: Will Deacon Signed-off-by: Tom Saeger --- scripts/head-object-list.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/head-object-list.txt b/scripts/head-object-list.txt index 105ea7ac4751..b074134cfac2 100644 --- a/scripts/head-object-list.txt +++ b/scripts/head-object-list.txt @@ -15,7 +15,6 @@ arch/alpha/kernel/head.o arch/arc/kernel/head.o arch/arm/kernel/head-nommu.o arch/arm/kernel/head.o -arch/arm64/kernel/head.o arch/csky/kernel/head.o arch/hexagon/kernel/head.o arch/ia64/kernel/head.o From patchwork Fri Feb 10 20:17:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Saeger X-Patchwork-Id: 13136284 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A1F1C6379F for ; Fri, 10 Feb 2023 20:18:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233601AbjBJUSS (ORCPT ); Fri, 10 Feb 2023 15:18:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233605AbjBJUSQ (ORCPT ); Fri, 10 Feb 2023 15:18:16 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BFDA7290; Fri, 10 Feb 2023 12:18:15 -0800 (PST) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31AHwhiP005533; Fri, 10 Feb 2023 20:17:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=ey524uGXcjUpAwcDoiaooA0NVOlBB+1803iKQWrb5rk=; b=u9tfYc18hLaBggeuSGywGGSiMoI6SonOWbb8EleT0VKS/DQPgaVWc0DIWnbb/WDDmlRm JiNf4OIcT2/Nf/uUCpbKC+jVOtyA3XxK+sfx/anzBQ1t7BYZiTXCNqmYCpNgYNOaWeOr UBTEy90q3N0cyNsSc+Z1vqw0XM/shwqFirYeZNWGoFb7pZh8Wyk9JeRlHdR42Zm2p/YM iqQugBaSOKtUPKbdKl1N69rnhydIuoa3/srPqq504PH4dgsP/N3tTGL3dCR/2pBcWjz4 q//KIW9t7BXx++quqM/HsZUNoeRktOZfnjoPKjz6L/tWB9Gow24RRTHtS8G1s0pD6nVN ig== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nhe53p6ar-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:17:42 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31AJXlTD002666; Fri, 10 Feb 2023 20:17:41 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2044.outbound.protection.outlook.com [104.47.57.44]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3nhdth9mry-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:17:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kc9HBcICoKzR997+C3KY/ftM8kiJRJzyXU9JF/1PJgsm9wja+ZEzAaG4UTjK+HTCt3xv6cOCdbh65qOlTZS9i1jyT0X7fDelmWpWS72Wasdr696lmRhNyT3RJef7eA4/iq3IOW302Us7C4AYKQi8b4q2cfiHrHhy+E9URvoYqAsRn7ZDUFZ6ywkki+RuzxAFaJGmRPijXuK+hbIcRrUCWYCRejAp8jyYqyEUgz8GZ6emmBMkFNEzGmYC/dVfY4cpCRWIUNWjMDrO9kR3iYbGkcmSqPCzF75gFWsrYHp+ynUNz5VETYmsjx8XSsobKdE9ZmpJ7kbpYPXN66orga2XVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ey524uGXcjUpAwcDoiaooA0NVOlBB+1803iKQWrb5rk=; b=EfpYpdnK4IqSWrZF0ebLKKm1z0Knb5a46CO0sgM974no3cIaEqELuMUsxdtPHOP0yXO97t4fb0ENf/rv9XS94vk0L+kyDgjCf4E7/vKt2HN1nXYKRfqg3/HiNWuuh27yZO6wVk4NEWTCCF4y17Fvqxa/EvGzqmlX17JbxIbm3N9di/2W/LHW0Hoo8mjTKLVxONBir5JpKwMvru7WQbLZO7pOAmaCs/SDzU8LQNZ/Ghq4o+qG1i4N+6TeU7cyzHPMWsdSVWbxyI52IaH+QIFMzc/72Iqjk7ui2w4ZxgXhcJylITEqmAa+jSOE/NUA04AeuSG7OzkcYl1FKjB8h6Rnqw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ey524uGXcjUpAwcDoiaooA0NVOlBB+1803iKQWrb5rk=; b=wqrtCht/9uJYBQKOItF+0Isz4WdQrrURf+kxLIBXGOPABzIWe0mNI7KN6Db6DHXjyppEwgeXSQFTrvpR211QGzidb//lhh2jpp2Rxj3wiPrDzrFuV2zndxCAp/yoWZFDra4dZnC1eZ5YpkO/3FgkoTiWpV3ivfnAaYxuaEjSAfE= Received: from BY5PR10MB3794.namprd10.prod.outlook.com (2603:10b6:a03:1b2::30) by SA3PR10MB7093.namprd10.prod.outlook.com (2603:10b6:806:304::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.7; Fri, 10 Feb 2023 20:17:39 +0000 Received: from BY5PR10MB3794.namprd10.prod.outlook.com ([fe80::f37e:ad45:7d9e:d84d]) by BY5PR10MB3794.namprd10.prod.outlook.com ([fe80::f37e:ad45:7d9e:d84d%6]) with mapi id 15.20.6111.006; Fri, 10 Feb 2023 20:17:39 +0000 From: Tom Saeger To: Greg Kroah-Hartman Cc: Sasha Levin , Naresh Kamboju , John Paul Adrian Glaubitz , Rich Felker , Masahiro Yamada , Ard Biesheuvel , Nathan Chancellor , Dennis Gilmore , Palmer Dabbelt , Arnd Bergmann , Andrew Morton , Tom Saeger , stable@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org Subject: [PATCH 6.1 v2 3/7] arch: fix broken BuildID for arm64 and riscv Date: Fri, 10 Feb 2023 13:17:18 -0700 Message-Id: <20230210-tsaeger-upstream-linux-6-1-y-v2-3-3689d04e29fc@oracle.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230210-tsaeger-upstream-linux-6-1-y-v2-0-3689d04e29fc@oracle.com> References: <20230210-tsaeger-upstream-linux-6-1-y-v2-0-3689d04e29fc@oracle.com> X-Mailer: b4 0.12.1 X-ClientProxiedBy: SN1PR12CA0070.namprd12.prod.outlook.com (2603:10b6:802:20::41) To BY5PR10MB3794.namprd10.prod.outlook.com (2603:10b6:a03:1b2::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB3794:EE_|SA3PR10MB7093:EE_ X-MS-Office365-Filtering-Correlation-Id: b69cdc92-3058-412a-1728-08db0ba3db5b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OiRHTP8XBlNFq/03v/Ztjs9YeQVscOzbg0zo9vGXySu8Xyk1eaqCTwF8Ygvl9l0LoduQz7fgkiSLTWv15B/zHHtJ3NnihHnM4hNkh74lyjWsA0M1pmjVgDkB57nt9qonfAiCeA/GEGYrEhiw4u9BDo1NtUmZEAZZJ6Vz1UaYoprQ8HPJXO2v6TPkr1OW+VXD/qgWbWIbVpbJ3KhFX8jiH0Q3CupARmFsZOLuAbM825UoPXg623eFo7x3AHneZpQCCUoqyD0Oci9F6YqihPx4quufZYOBLr+9/QbMSSKFb1vke4+ote4NLn5BQKsALIUg+7PVOZp5mssWM+xLxq+nvViy6lsXO/fsmTJig53UL0t19NK3AOiRdEx22vpiigYvUt33Au5pQcjhkaNkpTZJnSh8TPgn211r2PS61RTqb9NorDBlhne93IgSRsxSiVLHub3oLF+m0v+9s0ObB7YTJ0DDjw2v7toK6yHZh1O4fNr/If0wXiugzcAkrwGXaHyNf/tAoAq27/CyiBT/yYaqIoccvMeTv0d8+7jMBNSVbW0F/bPqdErRif1FDLG6FP6tzN95IULyw8ZMz56SMiuCNrvCWT/ohVoZSlNFGmV3gVXTTlXcUw0byiCdHuiJ8mNIIELzySbx5ejO4/i1SLoWFfXDFuOgJuMAoBSW1cBRjh4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR10MB3794.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(366004)(136003)(346002)(376002)(396003)(39860400002)(451199018)(44832011)(6506007)(5660300002)(7416002)(186003)(6512007)(8936002)(36756003)(83380400001)(86362001)(38100700002)(2616005)(2906002)(316002)(54906003)(6486002)(966005)(478600001)(41300700001)(6666004)(66476007)(4326008)(66946007)(8676002)(6916009)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?lYk6q0hXvSSt+xADYs0YtdtlJfzl?= =?utf-8?q?yszmk6rhT70V88U+enKAP6Vn8IWfrj++U4lHYZjKJtq4QnL5C/mgKGUjzQCtdByB2?= =?utf-8?q?XRy8awZpfHe9RcI7lFOt10WoihTIuBtCY9WvI+bJtn4H4TDbytI1lY6AgaTgYC3K+?= =?utf-8?q?R6OUxQKYbfStAQVLuzDjTH76KpKDOcixYFmUVDJJzfe7vS8r7iyo00zFu5wz8NU0P?= =?utf-8?q?ETrhwOaMMOPXRU230eijh0ixjGS53YMuKldf2uXdxOK5iVx158pQrow9eFN7QCXqp?= =?utf-8?q?OsZx/aKM6SW2xCed79bCbKMpjwFYZv6WIBGG/+3MhvLIRMt2PeJIUWsKT1RpWeZGj?= =?utf-8?q?Yxex59vumulx5nlaMJS+xXAK3YvanD8Yy3h55KcKkFTbqDCyjf/iVkzlEm3p/tLTo?= =?utf-8?q?MvigdO9ucTNhkhTRYDox9Gl4Ze43/UXAPBbwP/27woXK5+WuU3l18gI+ZjVWW+O/B?= =?utf-8?q?GkK/Lku/0x7zVOtDpasLtIANe7GSXNqNd9FVlB9rlMwjLHeOHVKRGHOt7yDSSAA8d?= =?utf-8?q?9fLS062tZ0+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4Hlz57D6nBZc69CylyCphdeYzUrHqTGhuJdmuBKDVmYLvz4YrMW1j0?= =?utf-8?q?tUMtjFXSv9CpaXoHpZuR1ZTbA7Fz98TGE+qvWOfpb2B3hJ6EuZQPGiL0+Kn6UTMI8?= =?utf-8?q?3toXO7Y4sdb9/+/irLvIh+FkxiFRtVu44sTKX7NIW6OpLYI7kRJS60A=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?utf-8?q?abz6VI+tfmxK2Qeo?= =?utf-8?q?5Q1NaznTFPeIXu8qDz4AZyWXJciNgolJeY9U21GGLmWVvAfYicHGiDfV6A5sqH71X?= =?utf-8?q?nctZOOZP55jKXQs1vNBCFeP+AkUjgNYHpL9FggJ3pj1eHCNyuDfDYjigBFTUcPAmP?= =?utf-8?q?nzQkG1XIfcJCv/dFNF/DhnLnT73QORxpBcxhbo/37BUfCWVXhI0UhswFnz2CyRXxa?= =?utf-8?q?DM0G44OAeZfiYVLhAoBafFUcqGFmd9q2SDsvxolBm+D7Gl+5FnMT0h1S2xRgvriBJ?= =?utf-8?q?vzsKLV0IYHwzfSxJ2WeqT36TkZwehm1Wxjl91hrYmJbwOmLU4sDgC6Gayiv10APbc?= =?utf-8?q?hVdftpGHcEmQxQscyiRljLoy3A1o4duehSVGJku5Sjoyc3SaySyKjPhWNAlI2mU/t?= =?utf-8?q?+hCgiV7wL6KWaobtE/q4fJkFWlWvJJvHaxNtfT/aAFRRu4nQtNCldB8ziZt/TGzlh?= =?utf-8?q?eXObx8yYGpqKEWvBed7B+DOq1gT5NONNF2hpqLm1OZqJiBy9d1cu8coCZ/r7fuCCa?= =?utf-8?q?we4gQ1+q6RWn3SdaxEc4oiLyF6Jm9qrC7gj9t9U51eJK9/conkrcfZbALxmjLGll5?= =?utf-8?q?V6tAnnGbKS/fZu7ojSO81Oz6GERZh78xml7R4dfHuGpJeYHAKc3zLT8jL/CReNaZf?= =?utf-8?q?4GBpsCsWk/t/cohXzWC2pBcqNtZ2bfh2amnnVxH1dsuewp2yyLjlCm9t4CXkXTfDW?= =?utf-8?q?HB5ZGLCBk224QtFJs5fEtbsEL/lfqbD2i2blkgqzxo2RUFyuf8gEAvhxPvvK1p8D6?= =?utf-8?q?9inPoU7EzoKK5UH7cHcRb5VaTE067TEbV8KM3qZYSF9jKAvFg5g1w7CjglbbLOKa1?= =?utf-8?q?Eq2d2kTAJ6WjghX/52KmihcVMiWJWdSdzd03sdaUZdDOVkjFhVzE9h4f8O+xhNHXC?= =?utf-8?q?Jwei+Bp2jl7I9cpTfCcNT+ovSHiMaHLyP5FtWRKsaogbqn362Xvb5H6MZyLvwWbx4?= =?utf-8?q?Tlsm12ME/oBG7lBRq86Ypfb4UHhUT39bx9yoAKykqqfV3+ozbDzCBPmSPag6tK3tb?= =?utf-8?q?j2Q3lwFKxmy7+yGWCjb9DNiyx4sHnhW3gDTnzj17X70FmKVnq23hy1NFqHYEFTO1g?= =?utf-8?q?QE8riE+9PlDoZkpVnJMgucyYuoPGC4oLGthQDqZWDo+UHDA1G47QTz+A4DRguMpm5?= =?utf-8?q?PfW45STwHcDb2vsqS0YTkDXD6S1ZL3?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: b69cdc92-3058-412a-1728-08db0ba3db5b X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB3794.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2023 20:17:39.2843 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: yCngy7KrbrxY0j1FFJrOZu0iyrRpaglIIwGa15OEQe7PREUakCuBFqP84Lok8LDWmn+owsSIgCZs6DqLv6fj8g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR10MB7093 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-10_15,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxlogscore=999 mlxscore=0 adultscore=0 phishscore=0 suspectscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100172 X-Proofpoint-ORIG-GUID: YSJ8rnnetn4me3k7T4tgpo61qa-9eLzc X-Proofpoint-GUID: YSJ8rnnetn4me3k7T4tgpo61qa-9eLzc Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Masahiro Yamada commit 99cb0d917ffa1ab628bb67364ca9b162c07699b1 upstream. Dennis Gilmore reports that the BuildID is missing in the arm64 vmlinux since commit 994b7ac1697b ("arm64: remove special treatment for the link order of head.o"). The issue is that the type of .notes section, which contains the BuildID, changed from NOTES to PROGBITS. Ard Biesheuvel figured out that whichever object gets linked first gets to decide the type of a section. The PROGBITS type is the result of the compiler emitting .note.GNU-stack as PROGBITS rather than NOTE. While Ard provided a fix for arm64, I want to fix this globally because the same issue is happening on riscv since commit 2348e6bf4421 ("riscv: remove special treatment for the link order of head.o"). This problem will happen in general for other architectures if they start to drop unneeded entries from scripts/head-object-list.txt. Discard .note.GNU-stack in include/asm-generic/vmlinux.lds.h. Link: https://lore.kernel.org/lkml/CAABkxwuQoz1CTbyb57n0ZX65eSYiTonFCU8-LCQc=74D=xE=rA@mail.gmail.com/ Fixes: 994b7ac1697b ("arm64: remove special treatment for the link order of head.o") Fixes: 2348e6bf4421 ("riscv: remove special treatment for the link order of head.o") Reported-by: Dennis Gilmore Suggested-by: Ard Biesheuvel Signed-off-by: Masahiro Yamada Acked-by: Palmer Dabbelt Signed-off-by: Tom Saeger --- include/asm-generic/vmlinux.lds.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 3dc5824141cd..7ad6f51b3d91 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -929,7 +929,12 @@ #define PRINTK_INDEX #endif +/* + * Discard .note.GNU-stack, which is emitted as PROGBITS by the compiler. + * Otherwise, the type of .notes section would become PROGBITS instead of NOTES. + */ #define NOTES \ + /DISCARD/ : { *(.note.GNU-stack) } \ .notes : AT(ADDR(.notes) - LOAD_OFFSET) { \ __start_notes = .; \ KEEP(*(.note.*)) \ From patchwork Fri Feb 10 20:17:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Saeger X-Patchwork-Id: 13136287 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE0CCC05027 for ; Fri, 10 Feb 2023 20:18:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233666AbjBJUSi (ORCPT ); Fri, 10 Feb 2023 15:18:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233635AbjBJUSW (ORCPT ); Fri, 10 Feb 2023 15:18:22 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53D562D69; Fri, 10 Feb 2023 12:18:21 -0800 (PST) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31AHwjCg019453; Fri, 10 Feb 2023 20:17:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=es59UkpmuI/8/d1o/lDijzXihGqAIAm05nKXFVk5h+4=; b=i/3uciqBgy6RdoIxlBz8uLzfGj2kAc41dUxm0UWTYDjxotZV3fFZkZUAHQ3sndh6iHkA UR6i78f830pNegIFPOz4jzWS7bSjFCP39dstbrGu4viMmWRvbuh+xizWXWwsklboQ4Hp YwBXcE3KCZSbwdcao/UmLeBAQSa1QFDFjaoi3CDblCm9qUimTBlJ9LCz94MD1D/JuIlI db98PcK2Csu8lIq6izP1hSaeIgrl3FAh6q+iaI5Vhoh/ru6GDuISLkjb43eIJ8xJWCMU n7rvhkaSaYfhGpdy4Rid7WeY+59Nr2t1QUy/PKPno93wROrHJMyh7opy1wci6bjSUp9R gw== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nheyu68g9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:17:45 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31AK7LJ2015207; Fri, 10 Feb 2023 20:17:44 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2043.outbound.protection.outlook.com [104.47.57.43]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3njrbf8nb2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:17:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XAfP2XT7efaHkAUCRfCcKBZtxUIyI773SVEqnaLYLMcODVOI6J/nbVFNU245peoP6EpmB2tNo9Dqp9p82/ScsBpZR175X3W+2Rs0IaNn5czIeLHtZ/DmbXQ7a72NUFU/7R2ihbryA60oqy8BgPKQtY7dBSCwFBBudkBa54Em8GZhcQC2DbYbsAoW0QnMcJr0Gguc1JxmdK6IcUvVfT3psp9cRLTzMgBpTom7yAdAUZVR+KMyyRl9maZU1jadPm+weLKdLXVqNcRk/Xb98RjpGIULsMo1TT3+fAcE+zToUNV4glo6deEzdX2n4mOOkRzdpGmT10l8MktPZqB1EFr0wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=es59UkpmuI/8/d1o/lDijzXihGqAIAm05nKXFVk5h+4=; b=AZYwDhVL+EXW3AKjNLFMKDAHmcPLvovtCcKu8ukrlSWBpUVNWMI0UZsRRjuMOIn6JWboUjkfF93dfsX9ulRktjgUYuTLF68IqzTLgZbby14A3dSJVi+j6JOmvJUAysCOqNh5m2ileMteJZ5hC/roehKstz6X02pKYFKI5vRX89DD/Y784EfWojuHxLmEkAkSGZiOc6dnSN/OfTQ5Le/jJs3qfdiMTV6IPXzAoZmEr7gcLnByG4NIX4m5J4efPm/Tcu5Hi2T8UKU5XDjtFmuKZHZ1RRMw5ed7FdPEXdtHQbRagXWF5ZklighgFIYyPMnN7zcY3YeOzsl5v0ihcRinyQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=es59UkpmuI/8/d1o/lDijzXihGqAIAm05nKXFVk5h+4=; b=a6pdZXdsKs2I/j8rHEggjC72v4QgwSFx1s0X/7JTWNvnYVGvSx9vPSRsFNp0zMcBCUdYywl7Wl0ZFRz+zz+LVlISRIzb8D1PKLqzHXMxDEqY/RT3OMqfUi/7U/jRbiBQ43m6bhyNocjgyj2vjm9zhxxfCcG5LuMWUPvZUxFCV/E= Received: from BY5PR10MB3794.namprd10.prod.outlook.com (2603:10b6:a03:1b2::30) by SA3PR10MB7093.namprd10.prod.outlook.com (2603:10b6:806:304::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.7; Fri, 10 Feb 2023 20:17:42 +0000 Received: from BY5PR10MB3794.namprd10.prod.outlook.com ([fe80::f37e:ad45:7d9e:d84d]) by BY5PR10MB3794.namprd10.prod.outlook.com ([fe80::f37e:ad45:7d9e:d84d%6]) with mapi id 15.20.6111.006; Fri, 10 Feb 2023 20:17:42 +0000 From: Tom Saeger To: Greg Kroah-Hartman Cc: Sasha Levin , Naresh Kamboju , John Paul Adrian Glaubitz , Rich Felker , Masahiro Yamada , Ard Biesheuvel , Nathan Chancellor , Dennis Gilmore , Palmer Dabbelt , Arnd Bergmann , Andrew Morton , Tom Saeger , stable@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, Michael Ellerman Subject: [PATCH 6.1 v2 4/7] powerpc/vmlinux.lds: Define RUNTIME_DISCARD_EXIT Date: Fri, 10 Feb 2023 13:17:19 -0700 Message-Id: <20230210-tsaeger-upstream-linux-6-1-y-v2-4-3689d04e29fc@oracle.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230210-tsaeger-upstream-linux-6-1-y-v2-0-3689d04e29fc@oracle.com> References: <20230210-tsaeger-upstream-linux-6-1-y-v2-0-3689d04e29fc@oracle.com> X-Mailer: b4 0.12.1 X-ClientProxiedBy: SA0PR11CA0044.namprd11.prod.outlook.com (2603:10b6:806:d0::19) To BY5PR10MB3794.namprd10.prod.outlook.com (2603:10b6:a03:1b2::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB3794:EE_|SA3PR10MB7093:EE_ X-MS-Office365-Filtering-Correlation-Id: 4953db4f-ad2d-4c3c-bbb9-08db0ba3dd4f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UIz/tEG/x6geHuuQLW0Lm4ByHMi2ASKOrjiqwrbITNTUjQnxT+TY0xOFuJEJrpSkVAPpspuyhNnEezbq6oGAbQnDYah/tpGUOOnA1TqzJwHlsRkHq3nDEgEFLzrIYekdvQoKXmzmzPuElmOG88wtYm/oUCkG71sFtlr+5O+SYhpViX65iVpJUvFN+axzLdUt2FDtQO5iD34SDysd/1wkG0a+4l5JfjUVnwOvEjy/QTy8qDZNzPKQQibAqjVBAbe9CkSWjVlAuzkYxZxWx6P7KdLZ940zwLG/rL/brWdAF5EPysEleVFucnIDkKmOqvrJWFsOiDB1T7Kfif4O561VS7OgDdut/dTD9H3hHMqad661HefP+HYOxjcW1zQ3kKniBax2nHyemesEChmpszsCdQzm6o6UGxOsEsNzyS7MDvvkTZ6tL8uhPXV+gIFfrLQDt8oLHK37YZSywzqZlr+1Z2tZIjBMR1SC3rOEEtJuEj5xBoYm76EhM5RdEoNdanYuav8OMGiEylaXuGsrskmvoaPLw6b3d1p1HV+JooyNNMAFGLgwy8srBTijMpPoCE5Rj72kWdSDOxYmJL/wQEab8TPwLfH7doZUjR/h71dKCWe+SQRNh24XH/saJcWSJNIc3U4aUv10ECPZWexUfcKBCa363QlmkG2AbX/J8LjmvsH3HP2YOOyyNKXnuU8kX5fVx07TvacXbf1sMyv8T8X7YQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR10MB3794.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(366004)(136003)(346002)(376002)(396003)(39860400002)(451199018)(44832011)(6506007)(5660300002)(7416002)(186003)(6512007)(8936002)(36756003)(86362001)(38100700002)(2616005)(2906002)(316002)(54906003)(6486002)(966005)(478600001)(41300700001)(6666004)(66476007)(4326008)(66946007)(8676002)(6916009)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ObFvCDcwTVLCk91EyXiex+Y8mp2s?= =?utf-8?q?/7GxzT5snMW34KuXo97EsJKhqhPAtMuyf7yP4W1E8bV9CMBY0+yzEImzreudyVvIm?= =?utf-8?q?6dB0KPw5wbjV8Wn0ZTXzuw4NfSpgV9s9sRCyjxhsRfOfnX87MWImtFzr/oNqRvuNN?= =?utf-8?q?TJaUQgMoyvSmxfkwZhznOH/27W31IP0+Ecs4RFJpEdzBSWDS2mO/Pmj6TbCvEOZ0o?= =?utf-8?q?homdSJr9nwmbuiKiJUXHXp15T1BbgF7ARLxWZnOjHaZC2yWSO9o8J0oO22UL19X7g?= =?utf-8?q?DqtoYMo+uwLFmhqbf2D34V+yYERQiBhlIobNnn9zaGDj/JQ6ST1I3hC1inFJ3vYT4?= =?utf-8?q?fy62U122OtXVk5zcVfdxrbscGIs6U9n2k4zAHMx7oWpe0bYHBi5Rf67yGioML6aoq?= =?utf-8?q?pj0vZKxLqO7vVvXOyGgIDv0t92syIeXgjW6zXkUpNS9hWNLDWkNneGOSPBQ08vtsm?= =?utf-8?q?iW7xkX+frPZZ3XgwRDh4d0DhCK8VXOoMYGjUOQGGa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J7jcorXxcvlHW/RVjCCVhSWynF?= =?utf-8?q?PKGwv6Vgz50Bv6VQfSdteilIPc6hTDVYaZomfkijTJXHwhwJFRkui0fASeKl5jOa3?= =?utf-8?q?QCzFvvN3uzVk7Mn3i7kE4z78QvlR0fqMFp5s0w0uAT2ORQRR4JP9BVNRcF/UPSLd1?= =?utf-8?q?XDfsGjPHxlQMleu0tQebV4oUgiUig+omefL+lhc2Mq9KwJCnN+NaZVk=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?utf-8?q?Xq7wn9tWn5BH1eG3?= =?utf-8?q?oWog3LAOkjq3A7rl8bp//Z91SaGv4quyZ8lZ8Mh98JmjK6cSYLiuNUdaQfTRuK4K1?= =?utf-8?q?op7ip4eRBVTpbBZfrMXiGC3LUsg7VxNTloYicDLm7mZjBQWB4HpOOif4mMCftOiBG?= =?utf-8?q?D5ahF94NiHTtkkBmNYzMFo5XvtJZErm15Rt9EMAg17L8cEexbSdzubB6pHU9B+IgR?= =?utf-8?q?Ft3nCbAwNXLDEQPb1QYs7niCI04fJorDbDKvUCCALmmaXu0bVaLBSkYpdfYJSf15y?= =?utf-8?q?NmFuhBlYWZgLtcwY6HYXj3u8C8RTK8V+0NSsjYslMHLCvm11TcTge1Nd6tqufpss6?= =?utf-8?q?9wW+6VHDXNXLNXwu9YJJocDCHig1MAlBnFCqkDlvvR1tY9p8A/ABner97/NmnFPB2?= =?utf-8?q?TsyUBaXEu90S3iW9bnQlkNsjGErzJOra3UVksw4ykEyD60w4FZKlQ472gd/EtYIMR?= =?utf-8?q?gh8aXf2wgDknHtAD+35gtQVhW/FItH+ls16JxEZQQ/rt728ZDli3JF1pAQ5pYClgZ?= =?utf-8?q?5EapoOaJVIXykUGmo5iIBom3x/9O9CR6eLBxN+eNUFYjzCjwkkUBT6Bffx6rmIAzn?= =?utf-8?q?lTYpWj79CP2SX3FcuK6S9yBnR9+4IXM3r8do26pJBV6KO+J/gLpJ4Zw00c745xi2p?= =?utf-8?q?hrTimoQ+bxBqnKdhZj0E/1wfNs15IfOYaW1kMXN/qSzuT50Z1czoQ7oK4qh+nHlzq?= =?utf-8?q?DAid8mINJTz/dcZlGYwLnLD7CZVBKLFleHIPMQqwVZPS43PLMR3EXQ4AGCSovf0xh?= =?utf-8?q?GUxXUKMPoOWo6qmnZRcir9WYjkDAEQ+KMBjhIjVQEt9/fEWf6F2OTJdrADCV8ywS9?= =?utf-8?q?iYDCRqmLLGnDaGc5c3aiK4hTbWLo7aCd3HyPicZ3/m/ThEHGybgCWYpwKApdwXbmv?= =?utf-8?q?BNMmWLTZOAwOMRl9iLRNYhB6i301B4BKNiKiM2bTRCf3wbqcVxyxrH0/9EdLq4bfY?= =?utf-8?q?hn4rmn8FKEs9C6kE8hNudBlN0BEWUJL4crwAD7Z1ZzsDsKLHAvYjb3+YQ6xkloNJC?= =?utf-8?q?Ov4UkCRnrNWM9e8x5RUxdNfxtndAVolxTf1IBzm9yCkpQqAbUXY5Q+1tZWv+au0qS?= =?utf-8?q?tJuvBEdYRGVsHWWzwQqO4ekkmhhlJdmAU7oMvMNvPNzcTtPhCiNCKi+ZXDioBJStU?= =?utf-8?q?zB/me9SGB0Anaydvpz+/vmnPxC6EzydmvbjKWgIF7fKcQTJdO4lNE+AWRW1zkx5Rq?= =?utf-8?q?0FrkmCHk=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4953db4f-ad2d-4c3c-bbb9-08db0ba3dd4f X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB3794.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2023 20:17:42.6278 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: py6r9x255QxbX/ZnlG+O6bnp+U8JmVux9v7qA9jNwMF0NgHtN3OM1ElRI90mbFuONCQwgt8G/yqSw2q8X8UUFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR10MB7093 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-10_15,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 spamscore=0 malwarescore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100172 X-Proofpoint-GUID: 2p0aWzaMFdSk4rOiEdhSD7fWktyiKJYj X-Proofpoint-ORIG-GUID: 2p0aWzaMFdSk4rOiEdhSD7fWktyiKJYj Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Michael Ellerman commit 4b9880dbf3bdba3a7c56445137c3d0e30aaa0a40 upstream. The powerpc linker script explicitly includes .exit.text, because otherwise the link fails due to references from __bug_table and __ex_table. The code is freed (discarded) at runtime along with .init.text and data. That has worked in the past despite powerpc not defining RUNTIME_DISCARD_EXIT because DISCARDS appears late in the powerpc linker script (line 410), and the explicit inclusion of .exit.text earlier (line 280) supersedes the discard. However commit 99cb0d917ffa ("arch: fix broken BuildID for arm64 and riscv") introduced an earlier use of DISCARD as part of the RO_DATA macro (line 136). With binutils < 2.36 that causes the DISCARD directives later in the script to be applied earlier [1], causing .exit.text to actually be discarded at link time, leading to build errors: '.exit.text' referenced in section '__bug_table' of crypto/algboss.o: defined in discarded section '.exit.text' of crypto/algboss.o '.exit.text' referenced in section '__ex_table' of drivers/nvdimm/core.o: defined in discarded section '.exit.text' of drivers/nvdimm/core.o Fix it by defining RUNTIME_DISCARD_EXIT, which causes the generic DISCARDS macro to not include .exit.text at all. 1: https://lore.kernel.org/lkml/87fscp2v7k.fsf@igel.home/ Fixes: 99cb0d917ffa ("arch: fix broken BuildID for arm64 and riscv") Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20230105132349.384666-1-mpe@ellerman.id.au Signed-off-by: Tom Saeger --- arch/powerpc/kernel/vmlinux.lds.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S index 8c3862b4c259..c5ea7d03d539 100644 --- a/arch/powerpc/kernel/vmlinux.lds.S +++ b/arch/powerpc/kernel/vmlinux.lds.S @@ -8,6 +8,7 @@ #define BSS_FIRST_SECTIONS *(.bss.prominit) #define EMITS_PT_NOTE #define RO_EXCEPTION_TABLE_ALIGN 0 +#define RUNTIME_DISCARD_EXIT #define SOFT_MASK_TABLE(align) \ . = ALIGN(align); \ From patchwork Fri Feb 10 20:17:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Saeger X-Patchwork-Id: 13136324 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DCC05C636D4 for ; Fri, 10 Feb 2023 20:18:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233658AbjBJUSt (ORCPT ); Fri, 10 Feb 2023 15:18:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233642AbjBJUSj (ORCPT ); Fri, 10 Feb 2023 15:18:39 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62CDF7E8C9; Fri, 10 Feb 2023 12:18:25 -0800 (PST) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31AHwhNH019425; Fri, 10 Feb 2023 20:17:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=ny504gccfvL4lZKcZdaoTQ2gm72LYNb1HXOelKkx1FY=; b=FoQ+4ojKR7qU0pYP7ZphxQn2jY9uFBSBnR7JBIWKaGd5MBj6mNz2TrDxBG0UuBaaepjj YXh1ZMrkQ/POZqnb0hYXsk2GzodSS6Cua3pXDxhZ6BohKSwMdI4AiP3ab/NojSD1fa3x oK1Di2sHhpBcD7qlSiMvsIvWoym1xDgKPI3l8LKoejPwwD+OtI7odCW9JzYPLMSN4U6d GKJlbkWwzOT7hGu0WfhmIFEHSLjEtG48ZffBBzmwsj8IBg7wtZqZqdWbWDd3SZoSiBKm yF6l6Uu/AT+G4B96pal7pROUG2w/iFzU8j91e2GjcdnmawdLszCWJ50RnI1Ac+JVhN5w Pw== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nheyu68gc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:17:50 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31AIfR1U036187; Fri, 10 Feb 2023 20:17:49 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2041.outbound.protection.outlook.com [104.47.57.41]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3nhdth2aby-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:17:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BCELJ/4xBBrge2Lwy/NFrsEiuIg7hXPxXu/ZUG8ib60OwF2Bz7b/gBj5ajqrxXETLpLwHhAQW1aHMp5rmelHI5CJkBR9iflM2XkH+/ESt5VBLOv8Atprl6kSDfKW36DpZGLrOuiI50pdeh9I5oChltjqjAvowHHpxR0I5WcbHwYCvGY9xPavMusdHAH15f7Yizwv8hDzFxpBfnBfVo12oubh9Ia9tanSIsC2N1RX9nd/zICKRGKYi6DbyC6anPYwFREmI/5sLHXlBbEnPNPCWMW7QEju6/bvZl4EmPiZ42vMmW1UVDZ6ZNGyBzeIXYjKs1sOr1NqdHEW9qu5JGRtgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ny504gccfvL4lZKcZdaoTQ2gm72LYNb1HXOelKkx1FY=; b=apUTzCt7l6fyQTXwu5tEgXBTVZyTvNGWBVlZh4Z7p+ZfkPeD59y04DN/QDn6ZdWbPwcGg0KuMWQM9wTbMYW6f3U1G5zQ0prXcWB/ilnlj+yDaSqZHD4AFfOO5/xoZV6sx2juLvgdT7dfj3DQ+4s0g6u8yCmPgPGPNsuDsu/6mGsk4n4AwksJRIs8cOUm6he558HzJ3530phDojWOzzHDOtD2NAmBQtKNwRsMhDvSYkb2M0CWOisI0tni2l84paYddJBLKQt9s7P378o25Gd1D0SVm8TkzDvClrj+lnW5Z0TBD5j4a4WBtLHC5oA4YyQ6PGJZva4qjW3slsGd/Hjrfg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ny504gccfvL4lZKcZdaoTQ2gm72LYNb1HXOelKkx1FY=; b=QTioAFNkpoepoh5Dcyj25OBW2eJxZ7qCjezSluJWHxUuy14n51jyvPufUE3QDcvejxERQwt5FOZ5+QTuG1qOGTuoxwdlcBvfr61yUClKP5X6QlDu0kO3gDyBJOFt4T5BAJvgSSv3dwYsfS1jvDuKdSU+eHq3l5McQx4amfofsKw= Received: from BY5PR10MB3794.namprd10.prod.outlook.com (2603:10b6:a03:1b2::30) by SA3PR10MB7093.namprd10.prod.outlook.com (2603:10b6:806:304::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.7; Fri, 10 Feb 2023 20:17:47 +0000 Received: from BY5PR10MB3794.namprd10.prod.outlook.com ([fe80::f37e:ad45:7d9e:d84d]) by BY5PR10MB3794.namprd10.prod.outlook.com ([fe80::f37e:ad45:7d9e:d84d%6]) with mapi id 15.20.6111.006; Fri, 10 Feb 2023 20:17:46 +0000 From: Tom Saeger To: Greg Kroah-Hartman Cc: Sasha Levin , Naresh Kamboju , John Paul Adrian Glaubitz , Rich Felker , Masahiro Yamada , Ard Biesheuvel , Nathan Chancellor , Dennis Gilmore , Palmer Dabbelt , Arnd Bergmann , Andrew Morton , Tom Saeger , stable@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, Michael Ellerman Subject: [PATCH 6.1 v2 5/7] powerpc/vmlinux.lds: Don't discard .rela* for relocatable builds Date: Fri, 10 Feb 2023 13:17:20 -0700 Message-Id: <20230210-tsaeger-upstream-linux-6-1-y-v2-5-3689d04e29fc@oracle.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230210-tsaeger-upstream-linux-6-1-y-v2-0-3689d04e29fc@oracle.com> References: <20230210-tsaeger-upstream-linux-6-1-y-v2-0-3689d04e29fc@oracle.com> X-Mailer: b4 0.12.1 X-ClientProxiedBy: BLAPR03CA0005.namprd03.prod.outlook.com (2603:10b6:208:32b::10) To BY5PR10MB3794.namprd10.prod.outlook.com (2603:10b6:a03:1b2::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB3794:EE_|SA3PR10MB7093:EE_ X-MS-Office365-Filtering-Correlation-Id: 9259b972-0de0-4eb0-45e1-08db0ba3dfad X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oIdoJMcA7D6Rvq56I1inSNcBaiDu2LZjOGt7h/11OdbWz6YYyIy3mS5X1S/0+DrSoBh6TKVOLGzT1Kh/bXVldvO27gO2/n0IrQb7j0yawSzNPzJNKLwbWyAXfQ7D4uOg6gk4Q9NbLB9ygcTUy0BqyRG31d9EQh+b8JRcMe0mF3ncBX3DbEdeXs1UCWSOQItNIplnN7QA6tHtUXqCMCMNc14+k3617PIDpHQh/xfOWtCUgIUzuchBpQFfTAnzlfpnbgp37FkeiFBZ16uSP0u278d8VfvDhgIfZ+NUohWtvO6wApgPGrgfdM0kWOEhrlPLoYhj5v9R1dWKnZr392Az0x302RoR1hCdv76lXWv24biykxtDly7UN9nk+ISR9HaFGb1ncVtqlyDR7hOnwrsbTGIKUoJusj/6iIgKuRcqVa3rUggLslF4Ow0inQeEfcp0sYvdpRvqf+dq8d/V6SiDxsZvK54v/lsV89CEH3iZj4UXEtxw6Y5axr5ug9HaOXPJxJoMCiXs8dAC7H6qNj4zdmLd/f2OKG36GvImk2Ao9X/FpXYLNzJJNcDIJgy30/d+ghnT4WoxE0k29YDm2NfLTBtBfHNVwenoVX5Mepa3ueyl76YrPdrc70SiFOuO4iEBj4+Sw20yTEd1a6OemF/5S5PNxZMwIXEd3sifgAccaAkNEr0sTUbuenE6NpWZfeZF0W1uVwPfFjD0fqtWNrwB1YsiTNfVKtRMJKsuw6Fd0dY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR10MB3794.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(366004)(136003)(346002)(376002)(396003)(39860400002)(451199018)(44832011)(6506007)(5660300002)(7416002)(186003)(6512007)(8936002)(36756003)(83380400001)(86362001)(38100700002)(2616005)(2906002)(316002)(54906003)(6486002)(966005)(478600001)(41300700001)(6666004)(66476007)(4326008)(66946007)(8676002)(6916009)(66556008)(142923001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?MQYwQSRls549dkksoexEy0iZLsAW?= =?utf-8?q?zjGSZm9f0Wz9prR991rhQjKZgsI+U53AE+fWegGPKPF+y9dAJde5hFD8IXqE9/OID?= =?utf-8?q?Mu/RtTAg8oxIrY8TL2fa2Fvb0sCih7L2UuPybI9xzOezUgqtplWci3OVXaUAUJKhG?= =?utf-8?q?gYD620FIbiRuFkzsztgw2tjQ7mTc5qDCG4UOhvRmGyXHPoEGcP8niiWG1kUTWROB9?= =?utf-8?q?FpjgT53NiPQ2zX9v8D681zn3HBdAw+ezQg4de9ibRcoH1H81h1di32Tnhgp5f0WLi?= =?utf-8?q?TT07b1MPbD/hZv9gYouI2vGbXNLGoh0tEwy6xT7EF4TUTKSAl89mRvhB+ddtrB0fI?= =?utf-8?q?55wOzlwVSARmkvGq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zSkPAPjjbhpnerDIwHtvWHQWj1pb5ChP9OcNJZrwua?= =?utf-8?q?gW58R+ULe5BtdkZp5RkG4XEtMYMBAtpv7vF+rBfnlLzsYeVdCrWJXwh3xHd1rj2rw?= =?utf-8?q?Wi8eyF96qU2GuqF2lBK7EfO10qA7VFS9CNGq4WteeCuMGeJhSBy93VyEPUHt+P5jp?= =?utf-8?q?eFA2/nvWNuvD2EGmebZzRpen/vX6cecykSxwXVZ1CL7ExGVuuXOC6JMwG4yVJxJd8?= =?utf-8?q?aafQFBEKfwuNu8f+R1wLyebAa6NfImPUV3loQ2C36FDolv8m7rHHlheskRhEvZZ/B?= =?utf-8?q?XLVtwTVTeC0mztsNThELgc7MDa/fRUr8kiR++oC813L2d+hvebj8QgA=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?utf-8?q?foum0RRfBZr7NLtT?= =?utf-8?q?x5nJOp9gsBiex/Y9cRyPcfs5UCFqJwzBLIMud8HXojEUZsCS0zzgRHQ0pkJY3EVl9?= =?utf-8?q?aIjq+4PMRT2sjU4q8g+wczj/hzi2hm7dDoGleMENKxFjqNR7Sb5U4C2I8V5bdGTT0?= =?utf-8?q?q0WvxauB7latGHmD2t3EdTzQssw6dsFWrwnyqN1Kzn/WNnOe0+odo3oRwWeaOXGCq?= =?utf-8?q?s1i/pV3xxuuFUcIfOFAy9TkiC2rEbyzigptrW7a8ayJdKNeU8rFFum2PdFRmCUsfF?= =?utf-8?q?200FNdz5EhogU1hNqrA6G7kLXPS29/kmNxGPzW5vQdu3eLuX0UwCt/uUbRfE+RK5g?= =?utf-8?q?m4mtwYsEoffPGKY1HD3TBpPKI8gvXRdIzX5Ltm30R4sdUHZfV7nYAhLsuKNkUZWM2?= =?utf-8?q?IdZsuCiJmn35h5FR8AWdiOdzZhz3L9N1lh/5oz+SGg7bwB0ELQq5uo+qJaPGTP1ZW?= =?utf-8?q?Z0+lJk5tsBNWB/k0/wgdnv+/QvugOzhja7KMIv/3BChJYavfyDPa8mobGGaDxHyHK?= =?utf-8?q?PrQfTycLESc7L17cKkVDaz8OArAoJN9mfx08ZjJwR49jrdsXx4sQXf4iypsPNXEQW?= =?utf-8?q?ZQlpa2RP+aDrB+J5BUbXM/y1YtZnOw9pF+l0shLBkfRmSNX6KuMR+eF1HT/3I+cNb?= =?utf-8?q?IopCFtotpPDqgr6HTF93QpN8+LfehKprT5GQGKlIX1B3OMlm1pizX/Jhjd7DZyxQr?= =?utf-8?q?RKs3tDPMtx2AxB4Jca1mpfAKwiexUj80m0HjjgIe6F8wmiXqHApzdfieotDJIMTNQ?= =?utf-8?q?hsThkt+zfQxAxOakKunf2JR+q21kelZvJDL3iWq9hszwCZ9YexEgK/mTHwq14S0tq?= =?utf-8?q?3vTilytxo7XheaduHTWSbtYYcuv+tbOW6Uzb0OKEWMDoeFwvee2JIp41P/0H4UhUQ?= =?utf-8?q?WorO49cqEqikEgSCNtmFP31ryzJBEqjNwkI2ET2lrpN91z1q7M0zCFYEMZe8isc/w?= =?utf-8?q?z13AK7yMNvxV9e88nNmu67n2+Pil8J+w8H3nDAax1OXgLNMraxOm5Mu12DWTGaftY?= =?utf-8?q?vnxgzqn2pjb5CtZX5NkT6UIXgxPGCTGgervKDYHRc954svj0/l+EKycahrHYLnczq?= =?utf-8?q?6tail+vPOqAw5w02Jquz5Ie3NYJzZ99H2o8ZkVHtkzsOOKoelsdpzqdaqqo/bLVw+?= =?utf-8?q?04tjO3cHmu2HuN9RS2nljMEuDZAoDoRgs12WNl2QuZNNkXAjaQYSrmRzCAS1v0NsV?= =?utf-8?q?PwgAl7os=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9259b972-0de0-4eb0-45e1-08db0ba3dfad X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB3794.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2023 20:17:46.6275 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: eEjucOjqC6pJrrUU8lEutCHzW/tcbV5+BC8rXDDtf0X88qhE56maljNgdUogTfu0EOXdZ2zgYM2lS79zM2651A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR10MB7093 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-10_15,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 adultscore=0 malwarescore=0 mlxscore=0 phishscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100172 X-Proofpoint-GUID: OTca1dRXEf8Yn9NkezlEQSfaVWnM6UtD X-Proofpoint-ORIG-GUID: OTca1dRXEf8Yn9NkezlEQSfaVWnM6UtD Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Michael Ellerman commit 07b050f9290ee012a407a0f64151db902a1520f5 upstream. Relocatable kernels must not discard relocations, they need to be processed at runtime. As such they are included for CONFIG_RELOCATABLE builds in the powerpc linker script (line 340). However they are also unconditionally discarded later in the script (line 414). Previously that worked because the earlier inclusion superseded the discard. However commit 99cb0d917ffa ("arch: fix broken BuildID for arm64 and riscv") introduced an earlier use of DISCARD as part of the RO_DATA macro (line 137). With binutils < 2.36 that causes the DISCARD directives later in the script to be applied earlier, causing .rela* to actually be discarded at link time, leading to build warnings and a kernel that doesn't boot: ld: warning: discarding dynamic section .rela.init.rodata Fix it by conditionally discarding .rela* only when CONFIG_RELOCATABLE is disabled. Fixes: 99cb0d917ffa ("arch: fix broken BuildID for arm64 and riscv") Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20230105132349.384666-2-mpe@ellerman.id.au Signed-off-by: Tom Saeger --- arch/powerpc/kernel/vmlinux.lds.S | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S index c5ea7d03d539..a4c6efadc90c 100644 --- a/arch/powerpc/kernel/vmlinux.lds.S +++ b/arch/powerpc/kernel/vmlinux.lds.S @@ -411,9 +411,12 @@ SECTIONS DISCARDS /DISCARD/ : { *(*.EMB.apuinfo) - *(.glink .iplt .plt .rela* .comment) + *(.glink .iplt .plt .comment) *(.gnu.version*) *(.gnu.attributes) *(.eh_frame) +#ifndef CONFIG_RELOCATABLE + *(.rela*) +#endif } } From patchwork Fri Feb 10 20:17:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Saeger X-Patchwork-Id: 13136325 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58C27C05027 for ; Fri, 10 Feb 2023 20:19:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233739AbjBJUTN (ORCPT ); Fri, 10 Feb 2023 15:19:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233709AbjBJUSr (ORCPT ); Fri, 10 Feb 2023 15:18:47 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FED9BB80; Fri, 10 Feb 2023 12:18:29 -0800 (PST) Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31AI0KQD017186; Fri, 10 Feb 2023 20:17:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=bWwTDkraNTzxeWJjcZrJsMFWqrvOUuxhKoR5fnqlfag=; b=tdTC5VrCnFeXnh+zoCLt4xb9vP5DazkIJNxumj8ppFekJ8t8dDlTWXmt/RfMzj3s4H60 EWndWoPUM97WfZ9mRk++9ja6Xs7kSDR60YNM4yYFB9IfS6AJAbxwLysTH6CTXjCMfruo KD/+Yivy1TTFXN/1Hl57jTVI1juHFhvnmAfu7bAMr/t+vQEtICDebg+vQjA0ludLm/uO Pcyq+buchPzFzwJ7luvOPk6qJ+OAGj/sxhqDrI7LJoXVyz7ykrRXnfiYbZEjTYiOnjlt 8kxBjplU1uxDPGGZGlnm7cqQt1w/5MIQjGtzH4LgCx7jPGUKJQgMsIugFmVS1CYBbnIf hQ== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nhe9np5n4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:17:53 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31AJg6aB003017; Fri, 10 Feb 2023 20:17:52 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2046.outbound.protection.outlook.com [104.47.57.46]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3nhdtb7fr8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:17:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V877TJnu0GbGckfwiaJECALhEMRBw1SrXNmwj1CujrB9pW+KdBAn9EsYoNYLc3gA2meei4Yyl7KmTJwWssqpfscBUcFANINZ6jrTzpLnfo14rdy6bORDKN2ImePhSI6/afPozLevpCOn/bRWjEdzXEpZJrYfCG2SlYqwPOvsiY64ATIpqXhePkY2Fz0zwMFF9rPbQZdAueZ80a6Ni6CKx+C5rB0b1X8uJRBlTH74cruN3kHtpW8sqgP2SCALGe9GAxWurCe8eWn21PWIr4UDImsgho296HR5UDAS/0BMLJoAGRt5WocxyXvJbkcnLxTNGuFNPcOTrPTjAWnIvIgdDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bWwTDkraNTzxeWJjcZrJsMFWqrvOUuxhKoR5fnqlfag=; b=BT+msafWhT9mylhj3Dm6WvwCGfPZTBuhweWfp94X5iqyrUrqlMIZ8NGwKo5MYjL/4FfP1rEUp88vZzxFOEtjrfuG8/IR+r2ww5CjZZ79tTRq6De+/klOP4jTzDbVfggLXY/ej0iGIUGbGpmP6obl15PqB5p3/hHC3Tw1HcGIkAArayHBaDCqWjwgdbjTN8UNRwA7FLMpvXPP0FegnvViLx5b8+nAHXJ5Z8TZznp/4yQzBlh8RC3Lh8bJEeENJw7APUlSvSYnEq+RL/6cdzSdudAtdkcr6Cwyj8cL2yalnDy4MuuZPe2zel8J52cToq2IMVh1Y2MzVJ2TYDJEyjY6IQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bWwTDkraNTzxeWJjcZrJsMFWqrvOUuxhKoR5fnqlfag=; b=ZWGM5bi7hA1S9lGoBXNh9RZWbpOm8GU7gsIPfUsi22oY48gVtU174iKerizAkyDcXGNbfFPT7wR0rCrSjrxUgfFH72e3a9DGGCy/EsE/PnfoYWocvK6+BHlggGXz/PAhDjFPfgHGMBm8rOc42IhP6NwSJXkpFzR45eVMmiAvvVA= Received: from BY5PR10MB3794.namprd10.prod.outlook.com (2603:10b6:a03:1b2::30) by SA3PR10MB7093.namprd10.prod.outlook.com (2603:10b6:806:304::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.7; Fri, 10 Feb 2023 20:17:50 +0000 Received: from BY5PR10MB3794.namprd10.prod.outlook.com ([fe80::f37e:ad45:7d9e:d84d]) by BY5PR10MB3794.namprd10.prod.outlook.com ([fe80::f37e:ad45:7d9e:d84d%6]) with mapi id 15.20.6111.006; Fri, 10 Feb 2023 20:17:50 +0000 From: Tom Saeger To: Greg Kroah-Hartman Cc: Sasha Levin , Naresh Kamboju , John Paul Adrian Glaubitz , Rich Felker , Masahiro Yamada , Ard Biesheuvel , Nathan Chancellor , Dennis Gilmore , Palmer Dabbelt , Arnd Bergmann , Andrew Morton , Tom Saeger , stable@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, Heiko Carstens Subject: [PATCH 6.1 v2 6/7] s390: define RUNTIME_DISCARD_EXIT to fix link error with GNU ld < 2.36 Date: Fri, 10 Feb 2023 13:17:21 -0700 Message-Id: <20230210-tsaeger-upstream-linux-6-1-y-v2-6-3689d04e29fc@oracle.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230210-tsaeger-upstream-linux-6-1-y-v2-0-3689d04e29fc@oracle.com> References: <20230210-tsaeger-upstream-linux-6-1-y-v2-0-3689d04e29fc@oracle.com> X-Mailer: b4 0.12.1 X-ClientProxiedBy: BLAPR03CA0015.namprd03.prod.outlook.com (2603:10b6:208:32b::20) To BY5PR10MB3794.namprd10.prod.outlook.com (2603:10b6:a03:1b2::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB3794:EE_|SA3PR10MB7093:EE_ X-MS-Office365-Filtering-Correlation-Id: 16eba4ef-d3ab-4e7c-fad0-08db0ba3e1d3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZkWHLYDwXsgAt0c8ePyzz9U5ig6nhWdnyGVENddx5UW0Iy4OFXC78aY8UG26OZarQpHYUN6DOYBoE3EjhkCNDVn4b/nC6JPm/1FXLfpgFXk8z4Max6+jNBQTOtNkHX8lNlqo/v0c+ljSgy/uoOVNkRQSRUW1SxtLJqJIEtHaq9q7O70CWH+86ptGptYp2LlniwrUGUKHOI/or3dZI8ebd4lVaFXwJRqJFYdhR76fX1pMapL/KUfH3znQRcdC3FKxgE+L4cia+XNck8pofFTCcuWcTJ3idFhwtrlU+DCrPvDZ3dk5bOs4i8JyUh00REsxEpMacbMBrL+/E09TlWpCF20REiF8BohXhHYA8VOKsAwqCcHS3ScjuTOrSPrdaAtmadIWT+SVusi+xEGoKeJxmlQY4sICczzHdaCInElMarwU2t9GQn2gmtyMH0U1+mpmZvFEZqWs1ZVLfoa4Ub0lbP07KrLFWiYAU4TR04p3xzddYBqvyelbTImDRZPAvxUTt0skWfB49iJcQ3SCJ1PP4z8Yz4xiJJh1fMlkPXZfWFeyXw12UNJG0dxnrvHfxFjiATJKRnnrobrNCzoEZ4R82jEqVqgEWRG3QOHe2LWSxJkNuZSGORIz4z8qS3WYoFQz8nZ4MxI2fNW0iEXBLDCVdh9c+3U3CBeSDQ3pKHsLmgi1TgzW4qcjs4b5IUzErtYGEhrbrbQFMSkumQ91uKYMiQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR10MB3794.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(366004)(136003)(346002)(376002)(396003)(39860400002)(451199018)(44832011)(6506007)(5660300002)(7416002)(186003)(6512007)(8936002)(36756003)(86362001)(38100700002)(2616005)(2906002)(316002)(54906003)(6486002)(966005)(478600001)(66899018)(41300700001)(6666004)(66476007)(4326008)(66946007)(8676002)(6916009)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?12NxIW96tsb6T+/ltKEdMh5+V5yM?= =?utf-8?q?s5ioJV2A+7i0q8caFQffumshbzrE1qnnNh7kGwKvwYfsBoEqbfnuXzHwraOcxe5pa?= =?utf-8?q?aiS4TuBatQNBVwVNesn+WhqI5kBJ4GYi1A7K53MPISz0fwJtqVJLs2dA26O4uX3js?= =?utf-8?q?1HftlZwL4Y28E8vibHu6Zrcgs4T0jS9k3zQ+W4rLdBqMJBED+1LVerUrVFM+J9pKH?= =?utf-8?q?xNmVVxrbO2XFJGMnYFIBjMmDMXGl68ycqF0o4xYgPgkxQJY8fGQdwac27sxOxbhhn?= =?utf-8?q?XUgjfr/VB7gM7djCCfOiu6V2JmOjv0KMPJGlonb9SIecvjaKgwuYYgmneyEbU3Qlb?= =?utf-8?q?7kPoYui7fQBHEJOjgRtjDXeju/sWHYj9k4jg28wvMJ7H0S5k7AlpgMeC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hhqNA?= =?utf-8?q?BaGvh8l98Q+OA6nOvDO67pNTjQGBOd3qldjgWwN+LzDoMxifzkfxwp05GX14a4ZsH?= =?utf-8?q?uqCzn8lSIX2t2plkb75RsIlJqO1AFTyDpDf6VzDZt/BZKU7hCrZlTbOvoXJ1wt6Ci?= =?utf-8?q?rhqPPcJKFqpFPqRMnipK5sA0yOYugrhFF5vxELgC4HDgA330oCHgbUlDagkq1xTyE?= =?utf-8?q?Q+k8HIrEsmQSkAAskdVNnun33amM6RJ9Va2SChOaa0pjaUTsA763oDobUOooJDjaN?= =?utf-8?q?auARzF2lfibNeLuaAh+3VIdI+MiKN73eT4esKuz6u+8ehGedPMZhHq8=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?utf-8?q?PDyaALcse+JBU/dp?= =?utf-8?q?cdn8w9LZYxWpgwlDmortxBon1RzrigB0ZOiclEgGW8Xlzp1EWxsquPkTLyTw5GmoM?= =?utf-8?q?kETx0udSA6LV7NdU3rzSpjBb6dn8KicxtKNF1jRMtx8q4z1oiYfx9dldHSR7tjHn0?= =?utf-8?q?+gMBQ0TzkXHkgVupE0OVqQjQX119Kdq4tfUex8d+IHpvG06gCcQll8PXXdGC9hBR2?= =?utf-8?q?cCYs49yt9NPVyov/07tan8kH9vadfiWhRG5HLsbLeflqjuvRBOl3Ca+JNDIgBqrEh?= =?utf-8?q?ZnOB34SuxO6mJR5o0pqyf13xguLQPZmpHqxGo57hIigM1AfuUq2GFkliTQ1THrYlk?= =?utf-8?q?6SJrRazZ9fCHTZEDSLYm6uJwVl/+ko2sjklwo1qh/hvdwdmjAUJ+PbfPK5SEBF0yx?= =?utf-8?q?UyvbZCWxpTNVZ+3MSzHUc54whTS/We2dY4ISW44JuRlCSX9Cg1LqpzMqhlWy4mc2y?= =?utf-8?q?3zKJ5LTrCoeS5/DTMoemP9wB4+2A/dmgJnJ/g7sEMhvd1FyNk7MHtXTRU+//f6l+R?= =?utf-8?q?+HLB7MCEO+HZaqyicZ/dGQgxz6ieeTNi7prbAq+iLO0R8fGOCs6aqWlGTSwJkVC9R?= =?utf-8?q?FG+lowUPbGLQRZTG0vxx2zFNjakxIcVxnNpLegMKOtOVD5fEVs6Ru8LqNR69HypiZ?= =?utf-8?q?OSKiJoHBnzerR/S5vC3e5tck5o0achkrTQIEw8umo4L6DOJ1OM3pg96gLq/ci4YJ7?= =?utf-8?q?x3/vn6ojwo9Wp1SLXlulUghGxIBefRt8KuG1numDL4mJ5Z3YGhsFpn7k5gvnOZXJ1?= =?utf-8?q?7F7DBffcQgBlM78aHCIjuFOmBcvTNerYJ8t905iM28/hEwAnSbVmKTxWX8PNTYnaU?= =?utf-8?q?hW5FnmckmLgwmAnHvJHC/sibzujSMpj7C3n79bKWkjWQ4NKd/IR9vsIPtOJeFrX7q?= =?utf-8?q?3JbqwWJjxQ+7z9nBxO9c+TtrCVh8HNOi3JitouaIoslKJ7yPz8cBFkDUeNcWy6rRK?= =?utf-8?q?i/G2p2h9tOqjtGK5vtV8+ehwVFGt/+CvK5LqUfY6UEFyuin24QuQQbCJbh5k4YEyX?= =?utf-8?q?AitVffFs4+hGNQH1DPYzqHozKx1gS8JRyQlj5gznQu9aPirMuTYvXegRVpucukwIG?= =?utf-8?q?fBAKjxaLwwo6YyRoREltA8dav7qZ8XtTVOr0z9aJahIjBzOV+iMXjSFb18QNF+Arw?= =?utf-8?q?TMaz8ZZYJssBts791TTBNanM0hhzvAae8iHkERKrjqxu2cJ9mgpQ=3D=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 16eba4ef-d3ab-4e7c-fad0-08db0ba3e1d3 X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB3794.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2023 20:17:50.2366 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uz+tOWb0j4hWSKE9Ovt0k6pBeHhWKIhowTr96pmTIPIe80bjzKJlXfIChy+K+vrZTBv4Yl7Vn8VsmAuyMitCWA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR10MB7093 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-10_15,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 mlxlogscore=999 adultscore=0 phishscore=0 mlxscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100172 X-Proofpoint-ORIG-GUID: YxTXEfjr7-fu0FZmY7DZ2KTx9fAqTm9t X-Proofpoint-GUID: YxTXEfjr7-fu0FZmY7DZ2KTx9fAqTm9t Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Masahiro Yamada commit a494398bde273143c2352dd373cad8211f7d94b2 upstream. Nathan Chancellor reports that the s390 vmlinux fails to link with GNU ld < 2.36 since commit 99cb0d917ffa ("arch: fix broken BuildID for arm64 and riscv"). It happens for defconfig, or more specifically for CONFIG_EXPOLINE=y. $ s390x-linux-gnu-ld --version | head -n1 GNU ld (GNU Binutils for Debian) 2.35.2 $ make -s ARCH=s390 CROSS_COMPILE=s390x-linux-gnu- allnoconfig $ ./scripts/config -e CONFIG_EXPOLINE $ make -s ARCH=s390 CROSS_COMPILE=s390x-linux-gnu- olddefconfig $ make -s ARCH=s390 CROSS_COMPILE=s390x-linux-gnu- `.exit.text' referenced in section `.s390_return_reg' of drivers/base/dd.o: defined in discarded section `.exit.text' of drivers/base/dd.o make[1]: *** [scripts/Makefile.vmlinux:34: vmlinux] Error 1 make: *** [Makefile:1252: vmlinux] Error 2 arch/s390/kernel/vmlinux.lds.S wants to keep EXIT_TEXT: .exit.text : { EXIT_TEXT } But, at the same time, EXIT_TEXT is thrown away by DISCARD because s390 does not define RUNTIME_DISCARD_EXIT. I still do not understand why the latter wins after 99cb0d917ffa, but defining RUNTIME_DISCARD_EXIT seems correct because the comment line in arch/s390/kernel/vmlinux.lds.S says: /* * .exit.text is discarded at runtime, not link time, * to deal with references from __bug_table */ Nathan also found that binutils commit 21401fc7bf67 ("Duplicate output sections in scripts") cured this issue, so we cannot reproduce it with binutils 2.36+, but it is better to not rely on it. Fixes: 99cb0d917ffa ("arch: fix broken BuildID for arm64 and riscv") Link: https://lore.kernel.org/all/Y7Jal56f6UBh1abE@dev-arch.thelio-3990X/ Reported-by: Nathan Chancellor Signed-off-by: Masahiro Yamada Link: https://lore.kernel.org/r/20230105031306.1455409-1-masahiroy@kernel.org Signed-off-by: Heiko Carstens Signed-off-by: Tom Saeger --- arch/s390/kernel/vmlinux.lds.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/s390/kernel/vmlinux.lds.S b/arch/s390/kernel/vmlinux.lds.S index f81d96710595..cbf9c1b0beda 100644 --- a/arch/s390/kernel/vmlinux.lds.S +++ b/arch/s390/kernel/vmlinux.lds.S @@ -17,6 +17,8 @@ /* Handle ro_after_init data on our own. */ #define RO_AFTER_INIT_DATA +#define RUNTIME_DISCARD_EXIT + #define EMITS_PT_NOTE #include From patchwork Fri Feb 10 20:17:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Saeger X-Patchwork-Id: 13136326 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B031C636D7 for ; Fri, 10 Feb 2023 20:19:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232466AbjBJUT6 (ORCPT ); Fri, 10 Feb 2023 15:19:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233714AbjBJUTw (ORCPT ); Fri, 10 Feb 2023 15:19:52 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B00B7FEFF; Fri, 10 Feb 2023 12:19:18 -0800 (PST) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31AHwebP007747; Fri, 10 Feb 2023 20:18:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=VL5ggjV7l8uquv3Cdfin43ZELlq/Zxr4naWQDZOYm1Y=; b=W/GIc7nrI7MFIc9JUnL9+Tvb4IO2bi/RXJTUE+34zqwcmvt1CWJbMm1f5q0A0g76OgEW ukFC0K7HSpOFCjxgGgI7wgFDieBoKfKI4wBwHR+AX44CTQ7mW0b0Tvfhxm1sMgkTR1bM NUD0jJPRlXlKQXFiyAZW1VHjV90GLa9TpNukli5jkyBK/7ZHIe70xxQlzY4DO+IliKUV ggJRSkIrPVbBIg7E31VVZETGdw/9CYY5NfYfL011n6xHHuM6nnqOwgk+QbEKhzBNdbqZ rMd3T0ccMnuLmXhQd+dTzLqnJJGhzSveFC+IxGjG32t3Bl8CLmZViHaTDOP9p82nS1Fa bA== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nhdsdx4jy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:18:15 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31AJwtH1025741; Fri, 10 Feb 2023 20:18:14 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2044.outbound.protection.outlook.com [104.47.57.44]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3nhdthtdft-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:18:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Rs406FphfbBeoHtKIwaljwBA1gveOQlHqduv5uyJRNH5lTq+daFpGFIsMsxpNVpbSzBabeGrmYMIrmZ/zIoi/tQMyBCSGq5nX2mb14slOFAdRRT/OLRQ7gTxiGMkk01u7lh0OzlxMAxLJtN5HX8i7/jC+wOM+JQPUZW62lDrrJtTCUtIk9t67tK8aqWax9AalJ3DrsX5Sh5kJDY0TiqZQNAfK6FAs4sR08+wZuzLaYKaKUt32cAQK9xRZOkiep2iZ9wQfxZ7PIYOHlHYafCgFktp/FZOK9WVM5IyZRMguz6wnnsD3ADPp4ANuEaJkNLOZlzxTmvKhDz9fnxtosglTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VL5ggjV7l8uquv3Cdfin43ZELlq/Zxr4naWQDZOYm1Y=; b=keZW9umlV2pnhC7ghCjEPymRVFgoqf+4AshCM2jM+SnT/hH+uedcSBF8ugDU5fUfWw+YuhUsUBLFAm/4HiouXMZ0Zs94s/rgltE+Gk64Fn3cCuB1ED11fzJLSJkn7qf2xzWfqO4aLLA4h6pdzVCxgg3FJCMio6Hk9Sn2cR37KaWIcy/NXaw7Ii4JLw/ChgRJvCfKj051u1fAjP4LxY6JH8uTw9zo8neLHAhfSjnoEp7lAMq3hp2EIaAvV5YpueskQlv6bIxXqRKq5bLvwB7ISOkRA4JfB64cZ6/cu/6BJL4CRLAuoiSIug0W4bmqkcKYeiwcVj6CwVDX9C9CTaT/TQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VL5ggjV7l8uquv3Cdfin43ZELlq/Zxr4naWQDZOYm1Y=; b=QJoMNft35VilAROmw9MrlREJiwjwTLabuHTIuXHEi+KwVj9WPSgaSjlP9kCG0/vFrdjfHhrklBJyVqBFZmuTGoRWG8R7RpHKQqCz4Gq2Mx2sScUQI28N4btLnUgTqr06rmRaZgMIfjxz2O09EQ7xEvUrK+a+k2MHmO3YbEsqSgo= Received: from BY5PR10MB3794.namprd10.prod.outlook.com (2603:10b6:a03:1b2::30) by SA3PR10MB7093.namprd10.prod.outlook.com (2603:10b6:806:304::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.7; Fri, 10 Feb 2023 20:17:54 +0000 Received: from BY5PR10MB3794.namprd10.prod.outlook.com ([fe80::f37e:ad45:7d9e:d84d]) by BY5PR10MB3794.namprd10.prod.outlook.com ([fe80::f37e:ad45:7d9e:d84d%6]) with mapi id 15.20.6111.006; Fri, 10 Feb 2023 20:17:54 +0000 From: Tom Saeger To: Greg Kroah-Hartman Cc: Sasha Levin , Naresh Kamboju , John Paul Adrian Glaubitz , Rich Felker , Masahiro Yamada , Ard Biesheuvel , Nathan Chancellor , Dennis Gilmore , Palmer Dabbelt , Arnd Bergmann , Andrew Morton , Tom Saeger , stable@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, Christoph Hellwig , Yoshinori Sato Subject: [PATCH 6.1 v2 7/7] sh: define RUNTIME_DISCARD_EXIT Date: Fri, 10 Feb 2023 13:17:22 -0700 Message-Id: <20230210-tsaeger-upstream-linux-6-1-y-v2-7-3689d04e29fc@oracle.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230210-tsaeger-upstream-linux-6-1-y-v2-0-3689d04e29fc@oracle.com> References: <20230210-tsaeger-upstream-linux-6-1-y-v2-0-3689d04e29fc@oracle.com> X-Mailer: b4 0.12.1 X-ClientProxiedBy: BL1PR13CA0364.namprd13.prod.outlook.com (2603:10b6:208:2c0::9) To BY5PR10MB3794.namprd10.prod.outlook.com (2603:10b6:a03:1b2::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB3794:EE_|SA3PR10MB7093:EE_ X-MS-Office365-Filtering-Correlation-Id: 81e5d8b2-aafe-41c8-6002-08db0ba3e40b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8AqdQ8XPfS7krPaG9CSNVLKOGHOFzjubzURgCtwMUieAHdT/h7/IBsV2aHfHkItHzSmXpmH+JA0d1bptcaBdOo4oXZCOITXXEu6gzQtxaQ6P/caXuG8exCTswpoVVVfBsPlXl7AJmRECVP0f1O2K6Nc6WJ8nM5jf1Lh1a3L2N8M8dKjHRuraf0/jDvVXGDyX8EmW1UsWEfKkLnOXzfBsfUXxipljWuXYaCKvE8Ea8gnAfllKIM31xg3L06p5GoH8DlgiHyxpN/livR+Zm0BL87Q9vf5s3wiiyjGrzashLVXHIGx93LZeFMarYvWXR/JlTc+QaG/ut+44N+837siMMvx0XwRveTRlcOjGSWTlVkueqQC9PGLNDST48GR7yTucfZsQ43DyEJ2n3g8d7gfIH40jMvUJ60DfvBKWnoQ8gUq4+dDa/hswT+pl7JsHq1/uE7Xj8+oOmVSL+QsscOgu6oLEhCfyAD0/0KOWrdZwhCLHD9YctiY3yi7ecstn2kLd0g/GfuMCJBmbPhzL98suetCBxNGvptaRJhTHYjWKIjomoJlW+CUx+veIkr3Z5a9KR+7E0gLN8IAa3jAyxP781CpFUkF9fwK8P34599rFH+0djSxwHjb9m9wljpag/jPDOiqnc5f1+OqWp2ziKygW6Q1W3qig+vxV896bkPqL5XWZnmT7UJlIuVpUP7aglF+ouh4z6E9mkgvkUhEn15cAfQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR10MB3794.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(366004)(136003)(346002)(376002)(396003)(39860400002)(451199018)(44832011)(6506007)(5660300002)(7416002)(186003)(6512007)(8936002)(36756003)(86362001)(38100700002)(2616005)(2906002)(316002)(54906003)(6486002)(966005)(478600001)(66899018)(41300700001)(6666004)(66476007)(4326008)(66946007)(8676002)(6916009)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?pyhHlmxpmZZytYXIk4Xs0zemtWmL?= =?utf-8?q?DrsI6bG5OqVpvgIxilV8EZ6JFPDBtJh1KIcl7SIL3yzsqowK7y0lYP+uip0ze+8A1?=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?q?F0cllFVVSp3dkwqHZy3CzLLCsCXQds7263jo8GFoclUGiO/pjrEYmts5OgJWMT8vC?= =?utf-8?q?rov7O3HWJuoupNSDbPIHGFyNINdDscXhQ0bcY7Nm5kAiYS5iyVe2soQRDWu2jAaoh?= =?utf-8?q?zHlEUIwCfxX+r9yruido6pTmxt9PMRR8p+vXubgXFnKG0deCwyPJrESDXx5rJ+SKT?= =?utf-8?q?7zcyP1dVQwOC0kDXP11pb3QvIRXd79JfQu0Pa7uhIxk93cHx4pLXAPIFqLTze79gS?= =?utf-8?q?JLYLeXzGYP7dkpn5sOk4s4+pPTGb0h4QAWTO8Nerw5mdv39AdzpXNfxBwphPcjXVY?= =?utf-8?q?KHPbKPeHy2f0AZvPl1R1+C/cs89clnwAJU4L7LSTCKiJQjBcePG684dzeIa+Ri/U5?= =?utf-8?q?MejzVLP4mWN/qBv1jNp224xLcJsIyc5Gd/gpjlpWYItubqbR0LEc0Lcp6G1lgTxIO?= =?utf-8?q?H14cXl7DCrZVgYhcD913aaRyvvvy4UtHb9o8zG6Yh/7nkNnnk7w02ZsluWE2nVmfA?= =?utf-8?q?MSAWjkqW+sHoETNjWWjksxuJZapzRKUUmlBaFPF0qRE6/5HvHPuGWxAY61cBvj1dO?= =?utf-8?q?bbaRsvCUZnoX8njfcw5jVEMlLpB373Y+dvMvCZDRIk8UTZAcSu+ImWw=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?utf-8?q?MVXS8mjb0FGq0pl6?= =?utf-8?q?Zdw9Y4D8YZCL5WYclQr+6tinLbr14LbWza2AFK+uQPx/11bNZIHiZOtRO1wWw8Pgu?= =?utf-8?q?30fjVi/wJUOWUk1F0k5s9Lik6/BPRlQJSsj2viDLqqkcHQkJrUvZ8+0skFABMv1Vb?= =?utf-8?q?7/8Lf4xEg56JORvqyIJsDdmx2gax0H8WZCvzggm8+cig+/0jGu1nuDsR786pvS4ly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=?utf-8?q?6O2crQJliomjDMNksXYkURNJ5kvDy+fw4A+MnHr9vco/TNC1pFK/oqrFhzL9IQs3B?= =?utf-8?q?qKut3PV9CSDXbwJNqmrQEstfHMBJOZOUJi9qD5gtZEZEpLynyVRT4LXmaBFlECMBx?= =?utf-8?q?UI0ze9UAKlru2EVH3B7CfLrfJR7zD?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 81e5d8b2-aafe-41c8-6002-08db0ba3e40b X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB3794.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2023 20:17:54.1269 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PvhofjoCTUxVVtFMXXMnIzzcz+Q+NIrFmHYU56+IClmAz27nfnJgTePkvzRZ9zuyeLw/uO86BoNne3fmloTkPw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR10MB7093 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-10_15,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=999 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302100173 X-Proofpoint-ORIG-GUID: sv4GhC7MkmmbobO4rVyUlYEkkaiEfDvn X-Proofpoint-GUID: sv4GhC7MkmmbobO4rVyUlYEkkaiEfDvn Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org commit c1c551bebf928889e7a8fef7415b44f9a64975f4 upstream. sh vmlinux fails to link with GNU ld < 2.40 (likely < 2.36) since commit 99cb0d917ffa ("arch: fix broken BuildID for arm64 and riscv"). This is similar to fixes for powerpc and s390: commit 4b9880dbf3bd ("powerpc/vmlinux.lds: Define RUNTIME_DISCARD_EXIT"). commit a494398bde27 ("s390: define RUNTIME_DISCARD_EXIT to fix link error with GNU ld < 2.36"). $ sh4-linux-gnu-ld --version | head -n1 GNU ld (GNU Binutils for Debian) 2.35.2 $ make ARCH=sh CROSS_COMPILE=sh4-linux-gnu- microdev_defconfig $ make ARCH=sh CROSS_COMPILE=sh4-linux-gnu- `.exit.text' referenced in section `__bug_table' of crypto/algboss.o: defined in discarded section `.exit.text' of crypto/algboss.o `.exit.text' referenced in section `__bug_table' of drivers/char/hw_random/core.o: defined in discarded section `.exit.text' of drivers/char/hw_random/core.o make[2]: *** [scripts/Makefile.vmlinux:34: vmlinux] Error 1 make[1]: *** [Makefile:1252: vmlinux] Error 2 arch/sh/kernel/vmlinux.lds.S keeps EXIT_TEXT: /* * .exit.text is discarded at runtime, not link time, to deal with * references from __bug_table */ .exit.text : AT(ADDR(.exit.text)) { EXIT_TEXT } However, EXIT_TEXT is thrown away by DISCARD(include/asm-generic/vmlinux.lds.h) because sh does not define RUNTIME_DISCARD_EXIT. GNU ld 2.40 does not have this issue and builds fine. This corresponds with Masahiro's comments in a494398bde27: "Nathan [Chancellor] also found that binutils commit 21401fc7bf67 ("Duplicate output sections in scripts") cured this issue, so we cannot reproduce it with binutils 2.36+, but it is better to not rely on it." Link: https://lkml.kernel.org/r/9166a8abdc0f979e50377e61780a4bba1dfa2f52.1674518464.git.tom.saeger@oracle.com Fixes: 99cb0d917ffa ("arch: fix broken BuildID for arm64 and riscv") Link: https://lore.kernel.org/all/Y7Jal56f6UBh1abE@dev-arch.thelio-3990X/ Link: https://lore.kernel.org/all/20230123194218.47ssfzhrpnv3xfez@oracle.com/ Signed-off-by: Tom Saeger Tested-by: John Paul Adrian Glaubitz Cc: Ard Biesheuvel Cc: Arnd Bergmann Cc: Christoph Hellwig Cc: Dennis Gilmore Cc: Greg Kroah-Hartman Cc: Masahiro Yamada Cc: Naresh Kamboju Cc: Nathan Chancellor Cc: Palmer Dabbelt Cc: Rich Felker Cc: Yoshinori Sato Signed-off-by: Andrew Morton Signed-off-by: Tom Saeger --- arch/sh/kernel/vmlinux.lds.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sh/kernel/vmlinux.lds.S b/arch/sh/kernel/vmlinux.lds.S index 3161b9ccd2a5..b6276a3521d7 100644 --- a/arch/sh/kernel/vmlinux.lds.S +++ b/arch/sh/kernel/vmlinux.lds.S @@ -4,6 +4,7 @@ * Written by Niibe Yutaka and Paul Mundt */ OUTPUT_ARCH(sh) +#define RUNTIME_DISCARD_EXIT #include #include #include