From patchwork Fri Feb 10 20:18:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Saeger X-Patchwork-Id: 13136332 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 CDDCEC636D7 for ; Fri, 10 Feb 2023 20:20:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233742AbjBJUU7 (ORCPT ); Fri, 10 Feb 2023 15:20:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233715AbjBJUUt (ORCPT ); Fri, 10 Feb 2023 15:20:49 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FC722BF38; Fri, 10 Feb 2023 12:20:17 -0800 (PST) Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31AI0AqL020851; Fri, 10 Feb 2023 20:19:13 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=j+EPwyDwFbCEHnTTzD4tfzdpW0eshAUOG2DKtoPm+exkNaohC0BKHLPNdafq/hrD9UxK 5jltnddrBV26MmcWOO8wCQLzKbQOaoKxvL3Qn++gwCQmEcW4kfsQlz/g86WQpavx5mYB a74a+HUiHZfxqrOgS4Cuhs5vFl7r9gDdbSIDe7bGgIrKy8CgqheIOaJxkq7vxicHjfyu 8xs8SoCyssAdXCIp0vgRK2S3rBcMbYTudKSIiSNNefnt7Blin3xzjMROw9JcnakSxw5V cf6gDraO48icJa2l2NmI7SSjoAngS7illn1gGROyNpGFULrATtu+TlA8NVThD03t5kOP rw== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nhfwue4e6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:19:13 +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 31AJsANb013725; Fri, 10 Feb 2023 20:19:09 GMT Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam04lp2049.outbound.protection.outlook.com [104.47.74.49]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3nhdtaqk2w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Feb 2023 20:19:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Eoc56hDFXn0wPTvPa3GqCg1/Y/fi15KcnVFt6mLN985us/dUfjiM9ri2UFCf+x9/oVp8QYa33gqHhYZzYeOhDcjblFbCZZdGOLOUTm8hKq5YDjkAOLOvK0BOIWJncWEjmmMxOTBslrfBoT1+wYvn2obaaGxNaUq2H4OiXwpXtyKRAU39rbmD/vjF+ktR95zf7eeOImj+Ur5jI0cKNYQu3XWvJoMy5yqQI9AGd3fygOiE1Yt58nnpnMPuWI5dMdGvbQju67ttIT1ug+9/GD/xqza0lxEyZY3i42TB7bCakE6YCGwu/FzUaCM4oh/CMjUAF58OZG6db+eEs298CLO20A== 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=gdfnwbBEo10d/vgyytCGLftvnRSAp+y/4t3Mbvaum7ROVx90wvobO80WNSlGgzNW8wdnEXJOKq0EUjPoYvpW+nrNvN19p6gXdlhis5kAVlxGubmNsM6PhUjcmAZXM7JLhTqg+ifMZQgE5AqVRQtPgpn/gQIGfggbCNLTZ5F+JypeQTyg2lyhouOgxOWj06zRSPjvwUdRGYfBc6iKEUkqolYqRcxoO3cEX466kYUt97bPI4YneGmceHd6QbqfU1b44vQGbpm3oANFiI8pVBu6uVpCE7zrqAJpt52HD/dC6mv0NVuXG1YQhcCjx9W9uDu46NIdFFWB7ImU9zIwImmeHg== 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=oudFEp2fnTklcLyyeB4vXZDLHcKnxVb+Y5r30CHYd3tOSLvc18hC1wy7h3z225ne7fhsuxeUvgh34WfBOC66Iex5GjD246Sv0icJyAnjE4NOqmP5XdkMPqVqAKdE2BuDScqn+O1ZCj3XWChHM79QPbU362ucSx5oVrLZc9Wo2Vk= 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:06 +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:06 +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.15 v2 5/5] sh: define RUNTIME_DISCARD_EXIT Date: Fri, 10 Feb 2023 13:18:44 -0700 Message-Id: <20230210-tsaeger-upstream-linux-stable-5-15-v2-5-6c68622745e9@oracle.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230210-tsaeger-upstream-linux-stable-5-15-v2-0-6c68622745e9@oracle.com> References: <20230210-tsaeger-upstream-linux-stable-5-15-v2-0-6c68622745e9@oracle.com> X-Mailer: b4 0.12.1 X-ClientProxiedBy: SJ0PR13CA0012.namprd13.prod.outlook.com (2603:10b6:a03:2c0::17) 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: 7c3ab880-33f2-45eb-9387-08db0ba40f62 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mprV4hZ3EKSZ45lI1S5iJJGECoTd53KotsWaIlbR5SnxKiozy03RIR8Sm4VSnEdrlhp8sOSsDCMEf8TSRn+ywhACM93CDFiC3l+RufUc0+g7q117ep7xlcbu+ITUk7Jd/BoH0Ydszs/dnIheWZqNOXtjIXa5ygnNV9J5AOb8BALablvypx4iUw9dHkmbXseUu7dh2TY61Ju+lrUa3loPsPWt80M4cGJNNENTIdCdk5o27XPDNYunwTI7rcuHqXKbSAlVe2PEOxAPSuNOeKDj+yZLIsc1ZOBilYtLNfwLEpfA10wOPheedW7tg9mo/6k8ZvDumrUSG6Iyiy6rAG5TonhpmY5Qb26OxryIfk3R8e/Sjf794M4q0wEEFNosb8gCyQNtfzIBvFe2Kl15yVEP8EjSzdbkEA18FG7KQ4W/4RYpzk7FRMcywpgb1yJu80yoQ4E2hrdyipE8CqgGCXf4dPzlKpNgRfEV29ou8hFYwk1t2G6eGl7V6sYMANYAdLnpeZcScBGPGAO+uVakaG3sFkHyZR55mIUzYIwmy45whz69mkyDWv6AV0ZNWk4FkINKJqwNCSR8HRPF71n8y1CmCmObZSOkaXNSXMFDXkIMifVwvljwYYFFr+UYi45iGcmJZ12Ld9hR1qHtU7542O59r+dWra2M1NgENvBhlArfdb/NZ1em5BlcqfnkrQkmltOy86PxQ2KLa9BmDshr11KBzA== 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?2em11uD9gfXXAddq2RPN5HaqMTxB?= =?utf-8?q?U22HrwQkRNeuKmnLwlovaMtPNRH0j8vCYMpVTS2vNKl0kwbuIeJtpqPRaKgpT1+L7?= =?utf-8?q?7XIpaomrJ5m5OlkCMiKYz7EyK2vFIRPr5H7VNMx1kX/QfoTf3F796hBGxwERBjF2F?= =?utf-8?q?TrQ9bQSLmlglPAW7FlL06yZx9++CeW/jT/0MVbCVybmf/txvsMW8q4AhYrr9OIBA8?= =?utf-8?q?nx6Kmeo0xEUpqd8loWFxP2HbjJitrP3MRlR7nFYwJgI2RpEwDliJqXYqie4GRQRWR?= =?utf-8?q?CGDRplSUrIEopMqySlt4189yyuVZId8uV+ehx+MH0lRwgnY/t30VgXu8yuaPTqEPu?= =?utf-8?q?aNghlMMjavuSH2A+ZuWV+PTNd4mEcBjNxKWlf28AW81uZBj7tUhuSHu50DhproQjS?= =?utf-8?q?9euUveJwiqNfAIINxY0bwfPjGUO8QCxZ+29QsPJPYrspo8kf2Z9e02zqzLyEn2jj9?= =?utf-8?q?2PRzbVXgYGF062WyMWNEuohuGp85FINJGp0njxIurqrmK+QtDSwRV/mNxYcYw/ehQ?= =?utf-8?q?dVs2nojrlyao47qFQL+Lvdjy1rOcw5MPb9Ilv7QOXGlAusgwN0AsLwDeSZzDktAYE?= =?utf-8?q?rUj19obinFGutbX2kBwITuJGBqS/JW8SctCY72+8SHY/eBXXt+3rL5t/g8POrnx9w?= =?utf-8?q?VLn2Z+QcnBOYtMYuKJHhTdVqWDiRCFZ5uZfSDE3RNJXmpz81DinrxFF7/FAZ5N6Q5?= =?utf-8?q?uiiHbCzbs/odvtK6ICQfPn9M/bIC+25VkmbyDENgD/D5DMf3HBf88/uFKPmvzj+Dt?= =?utf-8?q?wnt/qvFyltgin2w7l7Rpznm6BmzbSM6WySslJvnK0BRZ/ZvWY2mswsh89nTr0/8KO?= =?utf-8?q?s9nU0+TszfyAGMm/IgdF/N9JAWBFKvdVnBw+xVUXe1iQ+fR3eLBEmgkQv1fqCHGR9?= =?utf-8?q?GgcgIcIO+975vLC3O3eGdSo7mvMdE1FoicsnDIxoxo7kBBYQTJE+s1VHOMMEcmiiq?= =?utf-8?q?8SyC8NopwqdOLCTdN+gp5fUV0E0vrXjAwqhx7ByF/TszYGC0GBdTUSBaN2/7n6zui?= =?utf-8?q?kR6CB3i7CW0Yuow/98G4eSwUrbmWww0ON9KrKvnOK7YJ0VCMQW7WXowyfNZTuR48q?= =?utf-8?q?+uEXlikBNokZwykMl67mj1tfO/9dmOnmY2BFiqhF4UGavVp+XoY6m5cNfJkikdl7h?= =?utf-8?q?K02ZemuwHjlEW7tpGD6MTZuhROxth81ulPayyCnxw2SGMmrVyCumQXVQS5Ee6hA/d?= =?utf-8?q?9R//dpXp9usD68rsS2/NwVkFFcAIxt5vu49EQNjG4prcas/QsvsU30ifbC5fBufcw?= =?utf-8?q?eJf8DKsV1fyuRUWG2mr9rCgB9oTfFBPjcwFqyCemYUbn3XEVBYnl8to5BOdG1ikMg?= =?utf-8?q?ProZtYLgzcLXMOw84HWvyqXSJMHlxR21BLJK4CDPR/aWFGFNJsncjMs+5JGpENDGq?= =?utf-8?q?2f0RSmjprFbRl9AS7elHuPBmSma0YLkozLgAt/sa6oNfwJUyp7qjMbks3sAnUrSwn?= =?utf-8?q?NGb3/1pKSWk1olMG7g5iFhnb1eOkkc8SZ8zSHya3FCa6e4oF2ikpr03tQlmoFOJtQ?= =?utf-8?q?WJ0EGZQx7LmfzUFKDB/wdNqWVPJzYhelcKNl1sMExJao4rol6lTp3d4=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?utf-8?q?a8ZNA/AcUXgLmup/?= =?utf-8?q?ejke3Qkp3Y9EGcpO+iFrbbVjfcqk3HAoacSe4xN84crapEuPgukNf4MyMssn9SgSU?= =?utf-8?q?c9jmZvNVzuZ40nWx5GjTlyY/bVj+YlAmuimTNKJYROC/Yxa1MQ2noYBAQ5v+Vkmkl?= =?utf-8?q?FZE1BdTJlPdR5Ht6Hg9ETWUyWDH71efInQgHMSffs0HoixQVJQgpbyaSh43/Lmhyi?= =?utf-8?q?N/8bGNHqbqmwPKdnJ1wd+/4DXNpAyox8lU4gYdd1nXWwZMmybXSgCEx4YxuCCh8fH?= =?utf-8?q?cBTquzLgmJYoH70Yr8TljHZMsc7FWlt1XUS+uyiOGbrHkD8CRNVn3bPAEv6PnnoIc?= =?utf-8?q?3VayRpiZ/zPt3pnnQ3tSiFXJEGa6D0Ngz22sj22O1+A83paTWiRMSjVlHRSTThM1t?= =?utf-8?q?FVdUrKQd1wIdkgGoDCMJRQnM7udjTrJMpwNO95/AoaPYrvv99Z/gMpdxzbkmrlpr0?= =?utf-8?q?+k62sFfh2qr3gtsKaflPcSMfX7Ozj4QEcvRvxggsp9Tv9QYVnB1yD6jng9VFhYFfE?= =?utf-8?q?S4MmjBFwdfgzM6/Y70Pfg8tyNIbf35GTjDG9hCraHwOw043ONBC3iJxPQ/6vk5FBY?= =?utf-8?q?Y+iK5rAK9yYs4GQycbF5/auvb1niAyhKwekgBasUd6lXqAyZAjx9QMEFZ9d/ou5xt?= =?utf-8?q?Nnpgem6FOZkRACmMIWTdNpbQWktjBHSWVgxGAHJZUxZsMYPFwrWSru1xoBDBvuNgJ?= =?utf-8?q?F3hwV2QQMK/szebqDpWEgK1W8Yw8xNB6Q9mryh2Y1qPSFSkms9UuCMD2ulfhL0D8L?= =?utf-8?q?2btxKfySmhmcxUe9eafZJ/k+K7/xhcokjcBMQptM3555YWwS5f7ZZMpjzR7I43iFI?= =?utf-8?q?/o74im0HDbXwGrnA6V8ZsPBqgL6npbB36wo09dcGY7+y8l5b3BFlpPZxELizOHMvq?= =?utf-8?q?pp1qM/OakvveQRyxk6hYpT+toOCy59I1K7ddL3ct4L92KbGOBiwELupwIv9ztcN0m?= =?utf-8?q?+FgOLaqehrCEub7QIrSZu/sGVh9GQ/P36yXoaWYSTvuWIyZdOxDboVJ+8BL+rB3z9?= =?utf-8?q?Gn7241zhCp1fTEJvUYcYv20ksRKOyZlP+gG9qlhDSnMwmxmUP8KB5CTGCqvlFUu1a?= =?utf-8?q?DKaXzRLmJN9InWUgc73mMjnQYwkE225bM3BgcCIoe23oqhrSBbTlLg603VVjF8BG5?= =?utf-8?q?AhAvCS40nkp+6aWOkXDFy/j9kEW1A6rgzH5DTsAygOEZmOtRBbt1snTjcRyomsf7q?= =?utf-8?q?w46OYiyKyOGDqb5LJFG7Qjml99tZg?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7c3ab880-33f2-45eb-9387-08db0ba40f62 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:06.6842 (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: sR3JTlOySi8z74aZWmFC2whkLD6KaJCxwAJF2XxoPxWJlv0achEAkeOVMErSlyiDPEZQF/bjOK/C1rxadi4cmg== 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 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-2302100173 X-Proofpoint-GUID: saPtajO_tYHyOXPH73vMTbD_rROWHMd8 X-Proofpoint-ORIG-GUID: saPtajO_tYHyOXPH73vMTbD_rROWHMd8 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