From patchwork Fri Feb 10 20:19:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Saeger X-Patchwork-Id: 13136338 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 45D3DC636D7 for ; Fri, 10 Feb 2023 20:22:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233882AbjBJUWC (ORCPT ); Fri, 10 Feb 2023 15:22:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233797AbjBJUV3 (ORCPT ); Fri, 10 Feb 2023 15:21:29 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 090B7812B9; Fri, 10 Feb 2023 12:20:47 -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 31AHwgiU019292; Fri, 10 Feb 2023 20:20:02 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=G7itgFEa3EaP4RAlj/7ppv8fNIqzjvJEuHWT2zIn++o6ycnap4SCCcGmn9bPfI5OCZy+ pjUb/8o3I+NtUsSrQPLsm7TVcq6aGkQDO60j6jXi/ujmo0SWOVQDTFquYrJ0rEpYf2zm vdlbToyiiOShLfMzCP31/+/QFgl6KS/+Uh0Zgllbk6ExmFd/C0IayX1FrGYCqdYTBufV 6DBrcR/pssPLbPMqeY4yJE4ody4nZr74Xz5rNo8bsSTUvl5HPxqSGwHo3/dZU/APi5M2 iQoBqYlIwuLeUx2gXeZkw9Edkc30vsoq6fox+J7wxxqKG68fWwkIh1NBr/iIpnFSBoZ0 Gw== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nheyu68kb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:20:02 +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 31AJAb6M036229; Fri, 10 Feb 2023 20:20:01 GMT Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam04lp2042.outbound.protection.outlook.com [104.47.74.42]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3nhdth2c96-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:20:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S3K3DzJiqLYidI7dp5+J6h0TpN4HOcH/Tdz52/xbk8fQJvC2odrn1Y+oYwITOMkjOImn37QAZ36DPtZIckodLpkQGw0MyQikxWkv2dcODKj9cQ4pAoIvLd0c3A3Y/GSyc6VucxaJmFMx0XHzd44SP91VDTwaKc2rS3LaFgCtf7QNHOZ9hkLSDIkXKDz7Hz6t1M+OXtza6A45YAAMF37+I8WpGC9mQdijkEwMSQ75YpNlNCtecEdOZbZMve/DOVuggqt+/Z4agzkTk1KFx8p5fGSfxlJ8tSYdELLDwDo8NeSiqkFsDAFT9gwDyHWvK6NWK+/gtHvVS5JKpHOYmqY2Pw== 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=j3XpOeXuGQjSiHUifHg+1HrtQlPfNGKiAb72oLHd3h/LYTbpi1BZCC3h9/goKOJFBvEJ56vqRs8ZdlAdATZ3Or7vUWN6WjDV8PNlBMhe3HZhqd7g8Bbxgu9oEBu7RmN4ltGzZDjqb2LellNBN4cwdbR5imrD/t8o/WzLJ0V0wrOT5NOPVjFDZ62n0pcv7P4Cm6RYNhwpER7UyFN1ANmcsWfg+/PxYRgqVxcfPEJ/rH1SPn8Ia+MA2+njQk8Ui5exebZey8PYKTsOIWLakJ+WdB64DdraE0z6CS0cGFpLZemZ5wPUY19pIDFozbxnpr01N9GzuXcBRdAGNS5i+JuPVA== 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=ZOHu0xjbAaIi37BcQ/qYuf7kng+gE9bLoWtbgaU7H064NGVRFyB1o6ZdsW8KggDebMBWn9v1NIJNyR0cw1LqWPB31+Rv19ZTrh4TOlbIvGIjJZfc6Kdw0HWCtojEjtXYd+lfnh4Vr++YtpOzJQGnGhXxUoF+kU7udvKAyS1FxVY= Received: from BY5PR10MB3794.namprd10.prod.outlook.com (2603:10b6:a03:1b2::30) by CO6PR10MB5652.namprd10.prod.outlook.com (2603:10b6:303:135::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.19; Fri, 10 Feb 2023 20:19:59 +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:19:59 +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 5.10 v2 5/5] sh: define RUNTIME_DISCARD_EXIT Date: Fri, 10 Feb 2023 13:19:39 -0700 Message-Id: <20230210-tsaeger-upstream-linux-5-10-y-v2-5-ada7b8d36096@oracle.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230210-tsaeger-upstream-linux-5-10-y-v2-0-ada7b8d36096@oracle.com> References: <20230210-tsaeger-upstream-linux-5-10-y-v2-0-ada7b8d36096@oracle.com> X-Mailer: b4 0.12.1 X-ClientProxiedBy: SJ0PR03CA0215.namprd03.prod.outlook.com (2603:10b6:a03:39f::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_|CO6PR10MB5652:EE_ X-MS-Office365-Filtering-Correlation-Id: 7574f9b1-dfb4-4c88-7b4f-08db0ba42eaa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: S/Ja0UrE7IhB9EsREiMHj6WZoxJfc+JBtw9zmJ55Xyfy2Ybs1F8jJAXWfiLljK3S0EhJhTW+cBU4RrQc+zlasEtFwTiZLdNL20iTFco3fSrDEYk9nEAqbx6ElBXvUvi3HhwTUJAp/epF5RTNdtY0UAg6ArYyNJ3nT/9jZNrqHDiofQUnZ/Sh8/IxhhhrC8ozJxXRS9BLS3ORx8ZeKpPWIV2WeAmnUjzXUjC8jYJ/rLCe6KyOIIZUImfWdHBeFUbVEPNZ8QFXoqifPR5jiyoF98/ZYgM+Sjokp5PdSVLtoCxCQXf8vZjvSct60ArV8GDfPxyby5ORdAt6+At78QdttdVJeYS91enzROzifJa8Q7xtYLtOiCAIUr/dckwM8Y0K4Eq0EiNasl/4BJ8trs3Nr9a9EmH45C7dhP/S8JXprZld6N0uStxDmcx2IuXkB0AObKe6SdxJvozVm7JxBc7Pcm02t1jMTbjSVgVTEUuYBKZemL9/CsiFWMltn17nFPuwPjkRsYxrfnuWfy80v+brCrH6s+6SM7b0Y90P0900Cwy+ubTS8fxojMJWgGKyXxIdpbtttDoAZXoTDEt3vueYsGSi00Mbrf1iIkseW9/5lZLYg6X42Fh2Lkt5XqYCMjavTKuHWRuz5P4Mz2Vjvl2864XF4LYfn7ykRJZiYkoGu8AsyiHKvVXESb+HYS7VbWBAlzWSTCqVoAHSg99Oi9hlcQ== 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)(376002)(136003)(396003)(346002)(366004)(39860400002)(451199018)(2906002)(36756003)(966005)(6666004)(6486002)(478600001)(6512007)(86362001)(2616005)(4326008)(6506007)(6916009)(8676002)(66556008)(66946007)(66476007)(7416002)(44832011)(186003)(5660300002)(316002)(38100700002)(8936002)(41300700001)(54906003)(66899018);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?z8eDNG+J1vx3x40o6pt74UeHbISo?= =?utf-8?q?e6x9GhdTQl58qy/gEnY6MlBjrr/t0AJCNAr/b+TjTjoTpwDWcpz03tQeLjDv95GM8?= =?utf-8?q?OOwgEzuWyVCLKUsVS2hVnRByS+6fDswmmqY8h/w0ywOX0btc54GoUNM2n/hUNAJ8Q?= =?utf-8?q?14oFmc7b9M6DmjlRGM8skkRXSxLmaQxvQ8ey0l3tKJigxMvARWJ/WqOQzcsOyrBvp?= =?utf-8?q?CycJaOJnu7XnzDHU9aQNWeZZGngNuhlY/RwWbWwKHDxS2rJeff2Q/IrOK08A2wdGY?= =?utf-8?q?zbxHNW9VESnD//vaJIpiGQUTorjva5v0VWFeu5JflTLvuX5RRwBOJqFeEXOJ/TrcX?= =?utf-8?q?NIrBlDrap3ntZ2jI5l/6UnY/gki656ugFeOgERsaQ1xigX+9sj1brxQEaCfHQiUg7?= =?utf-8?q?Jl83uqL8UR8vx9bAjxBJV/thQxsWVTrHnqjryT0PN8ys4XyNnk1ol3zMQP7QTbRJf?= =?utf-8?q?I5VSVo/O2pmSrVGbZyfRU4P1+fZiomhJGpQfYU9GHYdy9CqgcSOU8TjKdlyHc28uX?= =?utf-8?q?L40dSEkKqZFGUmx9JoWOBjBo7EzgcsRK3Seg3JFTW1sU8+hlzFIja/UGOACR++Y+C?= =?utf-8?q?1D+7sdTVTI+Z+BijHQdNpZ/LyaNlo7UiytaVWMow3vN4E5ha6hFefN/vm/wdEThir?= =?utf-8?q?mmX6vEUzxN41/T33WxolunRD3lofXb9reuAg1YhLc4atsYGavyDxEgOBCx0iJ+ULJ?= =?utf-8?q?w69NyeWasC+OJTsRT4+rvBwo3/XfYcz9A5p6Mta1aGw5Bs6U+YRNxzYaMWmpdnrIJ?= =?utf-8?q?3snLvAy45RMP4wK0Mq6bJZxOHhGiDO3s6ruv8oNk8Kjt4ULWNErZlDDf4YrxDSLwC?= =?utf-8?q?hKTITsTCa4AUbElBuqZ6DvhrA1UR2MSoyY01QsDl2AWDtCJY/DbXV1GErgn+7+9DH?= =?utf-8?q?iJ60lTv0PlXToKtZliYt98fd6n+Hta8IVYOfBhAZl4nurytEPf4rnllfHXOHRcYx4?= =?utf-8?q?hsJlIA2ReakPQPyBaeeiqcsZaRGLfdqTwv9iSiwNLm7CGN3siKWAU/XYUu5iH4adB?= =?utf-8?q?ROrfjY/T9bDnQtafeMVb4I1SyzAduH+LOoHR8rpgnto/FnHtn3D8fycoOHXGq3sXw?= =?utf-8?q?nRy0F8jCN7ni9MV1NxWWre2toHVVQlVMKcKT4uy9UDAImdtLPTZEncaZ2n5qNJSW8?= =?utf-8?q?3YRD8I1nwzrlyKrS+OaDyktT1pOowCfXf6g0Yk9M/lMppfUciiKN6pFPerLh2g8zA?= =?utf-8?q?+kYXtqzed2MV3YK9D5MsqDpUvP0MKDHNs/cmF0baTkukIEyOqxWAHr5j6mzXvdYjS?= =?utf-8?q?m261W1wCdlF1Q5RrLGC1+QRuhSrKPGJ4qJZvz9EL0tLonbFUHNwa5OmBuqjskamZI?= =?utf-8?q?EWXGcrAZY4VKE1FzCOyjbbruz+TSTkcFl0DP0TC2YyWmVJJJrDOAawH0FABBmyNOZ?= =?utf-8?q?UUdBnu1Fn66NmEewp3ZPH+xXrhjszrd4SD4h4W238dbTpzKEC8XJihAJgjn2+MB/b?= =?utf-8?q?9rIOuMIqlcnXRVfIuf1kqGfZVjL3aUFpF6lstdbgWUnn2AZC+DgLsEbtBND0nKt/i?= =?utf-8?q?fHH7mI9EVOtyOcrTysGw+/QY9oaeCeJSQblZk/LEXZtocZKndS1B5k0=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?utf-8?q?jLQl591eF79XNCsn?= =?utf-8?q?knhkRldCy+EzRYkyHGsOmoTR1+aR5Y6AwwMrNk5Y85xExRpBVodG5IXbr8r9eiANN?= =?utf-8?q?+YzbmVpEkvht2/BpSUf5EWl+xxmnliX5RmFjadf7YqLUMFpI02CPyaI8wVP14c5nZ?= =?utf-8?q?XpgOV1Oz182b7HtVRO6fud/fbE3mTeEeP9eBHcGwMHEicWGmAqjRA7myyzNd9yZcH?= =?utf-8?q?EjC28RQrRaUnnrZ6ZckGN1IPG8NOP0rhVaAwJXsJtehM8sdhyzp8K3mm2P7WffNEr?= =?utf-8?q?b+4Wjk3z7x5xM5KmIEUI6Py0UueE/XLVPOMiC9KlGJNxLotLOus9WZeU7Jdm9AD31?= =?utf-8?q?wBQWRfmLwwbgRdvZohsMB3CyLHMueU9d6XrhVyVx1DyGjosr0IkmLxeWi9o/koEcs?= =?utf-8?q?xukHiMWjXm4lxwXdgP2cCln3keKURJqGaIk8GTZgnM98WYM8s1vCQygFLe6bD8JsN?= =?utf-8?q?eln4X1iMYmPOiSz2djYB3OOXMkoXR+OaHhILcegdx/G/BgGL6RiugPg84SntR23Ew?= =?utf-8?q?+hLMu50xQ7ACRaaeocnI2NLQyTJjlT+9AwXYW4P8BfFXUwG/R/LgMOZO71SB2yoCW?= =?utf-8?q?iZxNyC4m+stojceYtSGfrMGGepcQnGDJdDl+rEAFSr6m5IBrpwjrhJ7u5k8v7zUwD?= =?utf-8?q?SvascuXdqK7MHFsgXVLblFlTWWj7slAdsG0FYkV8gierfpSaHIxyhxbDNdBJw6DXy?= =?utf-8?q?4JNw/eac2hBLBdGbNaeTVSF/m6V2ZbSr+ZK/8pCxYJJb+5az6Tjdn1spl63+UBPat?= =?utf-8?q?oIWM+y1Jq/wvvYvMJZwqc4Pvk6MbRTVetlFp98UIATJU6kZc05iSqrsUlvfDjXubq?= =?utf-8?q?cUAbwLZYTjGYmy3MLPHiNJjz7RtD0WwZwBFUU6RmcyqO5ROWJgsd7rYk63gaHpfqZ?= =?utf-8?q?mzhNVQtjXwjs/vrHI8UUQZumI+FjUJJ5/0Mc9WPZfWY9mIH1t8icvAGKYtt5gGh/S?= =?utf-8?q?QNOL5kQf7BUIKUnrsbdy1WkiABSR9deb2SrgEmuwQlD6Bqf/51VcPB77o1G7SB8+J?= =?utf-8?q?JQ0BX/FWnYT7RNCJPI3POO5E/bDC2Pbz7A4sw/kxmUmucCKd8BO6+BAfRwxszncxg?= =?utf-8?q?8l0O8j6vhrsH2brzGuXov2qxz/6PYIQLVtGWt3CUs0Cc8SQ/dh1tm4zG3BgkmScsj?= =?utf-8?q?tmO5XTsPVbeHQI/9O13OsM76zH5Z173gwOmRTdgrG5K8ubQcF9b1horrLie6gLBaq?= =?utf-8?q?haT+bkpGdrp6TdAmmhuWdeqwT3x1o?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7574f9b1-dfb4-4c88-7b4f-08db0ba42eaa 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:19:59.1023 (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: iKgru7HBQOZIsiNE5AApNd5hYe8R65hIDQFNS5ZhLkeKijggRB/9eDsI+y1d1RYmOzgiGSwa14UCGO4GOHqmEg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR10MB5652 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-2302100173 X-Proofpoint-GUID: 6JB-zsa-1VpLB1o2s3OCHTAAmJGCNgM3 X-Proofpoint-ORIG-GUID: 6JB-zsa-1VpLB1o2s3OCHTAAmJGCNgM3 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