From patchwork Thu Apr 7 10:13:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12805035 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6B65CC433F5 for ; Thu, 7 Apr 2022 10:53:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hAErKeuE610H56n3pn9i0U2E+6/3oIKL0GqQHYBCC/0=; b=adKJLMB3Pwo27V CWiuf6Th3BDoONQsWv+l2UB2ukeJ2Dp3HZbe9Br7/UwFiPmCidgpqifqueSKp4Y68optfhurViK/y hdScwsHRLI/jfVTQIVzTYZMCun8deo76RsMCpKwy8/iN0KwNulBGjJqACMyk3W5vEael7A8b5ip0N IPPuXsMjycUXufIcUOG3CeLxyRXikR1LGXcT+J5w9dkcLQXYUwYxAsApocWjJyOWE/o06DohB/TeW ebpVl2j8jnCcV4sl4jVJb+O/Nntqbu7cI3gLgSRfK2WzJTaZRn5LIYl79YH4c3AQqY/ufK9C5tFob GWuSAKm2IoxZ4zv4RcsA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncPk9-00BNFc-Q4; Thu, 07 Apr 2022 10:52:03 +0000 Received: from mail-ve1eur03on0614.outbound.protection.outlook.com ([2a01:111:f400:fe09::614] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncPah-00BJWe-LQ for linux-arm-kernel@lists.infradead.org; Thu, 07 Apr 2022 10:42:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=prHK7F5ToHtjCKK3sZFbHf+/MhLZqRuHmSn5VTerzqo=; b=1G61iznbunbilqLIJ70zt++q270TwdfHUHLMqxe99AsxRsdk1lCJ24eOrGdAi29X9KQkVg0F/3DSMStjgyorjUP/xxxXsFBzWKDyP4WgoZNyz9HPLgBPqIpjmE6KwjatBtX9KVJdoa8pWLIuHf6OHbRhEVoLZkv5Gky3BmWPDy0= Received: from AM5PR0202CA0012.eurprd02.prod.outlook.com (2603:10a6:203:69::22) by DB9PR08MB7164.eurprd08.prod.outlook.com (2603:10a6:10:2cd::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.19; Thu, 7 Apr 2022 10:42:11 +0000 Received: from AM5EUR03FT032.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:69:cafe::56) by AM5PR0202CA0012.outlook.office365.com (2603:10a6:203:69::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.22 via Frontend Transport; Thu, 7 Apr 2022 10:42:11 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT032.mail.protection.outlook.com (10.152.16.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.21 via Frontend Transport; Thu, 7 Apr 2022 10:42:10 +0000 Received: ("Tessian outbound 2d401af10eb3:v118"); Thu, 07 Apr 2022 10:42:10 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: bff16f57d7919e8a X-CR-MTA-TID: 64aa7808 Received: from b0f5e82775b6.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 601520D0-1118-4686-94D0-1FBE0F7FB846.1; Thu, 07 Apr 2022 10:13:24 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b0f5e82775b6.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 07 Apr 2022 10:13:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Kda3WRvq/7FDxSagxzSGMA6aBpNQd0n+lQ/Gpu5uctjLJfHKDKLuEdXsb4mgjGt+7jy/mMWkby6ggZuZAOQuIouT8U6vhath2S0VeWPf6TV/YY5DOGZDtUABe6CTs2MNis0lKTaqNSsW1DWt0f5omMUd9c8jACO8oVNjLWukcddVZVY6AGf9629wIL5sTMTOjIS/UF8+P8RlrF+9jD4OzKfEzIAAgx7zl5FN4f5PbolW/UrWrWxvi/AeovuFbvnS+MyfmTtjhUoyUFSfoLXN7/PxRcsJwTr0T1AWwH8MqGuvy3xbaTMM4LC8moT/E8uU77H8AeCezLAuY42gLNtRtQ== 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=prHK7F5ToHtjCKK3sZFbHf+/MhLZqRuHmSn5VTerzqo=; b=a63v0qpIQU+xymbMP/RHMXh+tixXSR38q84K3pG2t0JGWjLpo8NOloV2lmvN9ZGYCqaUWi7iUQ5R1AVzpy+VqP6cBKFyQnsIPSO7o24C6qjWfKSqJCU2FprsniXT7xKu+x6ZDCG96Xdr9bQX98LGhc0GWUVzMZ6/LKub2BaWT/dg07rn9fM0M8m33gBmGPaZeb5Hr3NYrbAoxFuemZBK1TP3KLfN4IqkbxUyzjgLrgeJGw9PPa8FSD0/Uc0miq2txRRzvJ+Kt5/fn+xF0Rf73cIGWe+4EZXW61pLHJ7v5YAbakjHe03Zun6BnOVfxYPXupyTbFS296n/Dp2Iy18TAg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=prHK7F5ToHtjCKK3sZFbHf+/MhLZqRuHmSn5VTerzqo=; b=1G61iznbunbilqLIJ70zt++q270TwdfHUHLMqxe99AsxRsdk1lCJ24eOrGdAi29X9KQkVg0F/3DSMStjgyorjUP/xxxXsFBzWKDyP4WgoZNyz9HPLgBPqIpjmE6KwjatBtX9KVJdoa8pWLIuHf6OHbRhEVoLZkv5Gky3BmWPDy0= Received: from AS9PR0301CA0013.eurprd03.prod.outlook.com (2603:10a6:20b:468::13) by AM0PR08MB4290.eurprd08.prod.outlook.com (2603:10a6:208:138::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.19; Thu, 7 Apr 2022 10:13:18 +0000 Received: from VE1EUR03FT020.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:468:cafe::11) by AS9PR0301CA0013.outlook.office365.com (2603:10a6:20b:468::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.22 via Frontend Transport; Thu, 7 Apr 2022 10:13:18 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by VE1EUR03FT020.mail.protection.outlook.com (10.152.18.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5144.21 via Frontend Transport; Thu, 7 Apr 2022 10:13:18 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 7 Apr 2022 10:13:22 +0000 Received: from e124191.cambridge.arm.com (10.1.197.45) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2308.27 via Frontend Transport; Thu, 7 Apr 2022 10:13:21 +0000 From: Joey Gouly To: CC: , , , , , , Subject: [PATCH v2 1/2] arm64: vdso: put ELF related sections in the linker script Date: Thu, 7 Apr 2022 11:13:03 +0100 Message-ID: <20220407101304.539-2-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220407101304.539-1-joey.gouly@arm.com> References: <20220407101304.539-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: 0414b75d-4d18-4745-e6a5-08da18834553 X-MS-TrafficTypeDiagnostic: AM0PR08MB4290:EE_|AM5EUR03FT032:EE_|DB9PR08MB7164:EE_ X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: FvVYZqIqpobzyKxDTspR9p4KjnjDQY8yisHDM1ewZkgJFay2CGrVpsgfPvpk6Z7590R8g9KMicaGwawVYVu0UQ/BwC5NtajMY1UXIu2dIhImekEKID3AsexvlOBp6urJETpyv+oQrsUwsosisfnY7EM8OTEkMEvB2jjXKzFxDbrrrwGrODqnmT7FRA0+Ws/6N2c7dT0HSRYKY4iONWXeFQ6D1dKNXRpTa4C7sG+sMIlzMn71rv4S+1pKsl60iPGkWRp7Xq0uCaqxR2nliLc/PgQRX2xyw8K3MlKgtD4Qsl0bmNAu3DTMlWeqAU0ReoJ7UDf0xRp/erxWevpx7omOnCPTHA9ZXHnZzorUG5kMpmr+emUuNt4Tr/J+SHH9wao27g3/qNPItXHGHJ4lo8I5wirnV435YOS1AOHelmdlMqYe7C8RBJhAR+DQGx3TETzRHbzeauxy/lo/imdivG7WGT5z6lHtz5Oa5FjTCKIhvksYXJ+VPj0bKKtUaypUA8qNZ2DKPWzMJozNXQXl+qJrXjb3vlm5N2eoNlbSnHYczI+qlA6AcMYrBIUul5vhcayxYOAY6zpGjgcxUbARIh7Uw+D7zrcdS9iA0iQDo+wJhcq6aR9Pn1/JZGV+nj01Ks2z8zwH2Troe2SNvQ47+Gd0e3zzmYw7O5WTmwclavW4FlxtxAKDYRs0M3AjuS2mEgXwwqZH5xmHgaK3Zg+yXmheTw== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(46966006)(36840700001)(40470700004)(36860700001)(2616005)(316002)(40460700003)(4326008)(1076003)(70586007)(54906003)(356005)(70206006)(36756003)(6916009)(8676002)(86362001)(6666004)(5660300002)(81166007)(8936002)(82310400005)(26005)(186003)(7696005)(508600001)(47076005)(426003)(44832011)(2906002)(336012)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB4290 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT032.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 886b252b-f822-4802-748d-08da187f3cac X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Vxh9sBV+7Fz+KRqOmwwZUlksQI8NQXRDngrFnsvBtX8kasDQP+UfdJHuwuvVZXhHVrKaXyURJ5hHBbtpAfDFpa2Avl9NiK2sVZylhRUOhitb55NuMn2RYSpIVyLOItfMWJUFgxqpmaFy03eT2/NkqdUCGOpig4APzMJZH0Wug2O+Br/zceuc787Fc7NR6bp7GjZ0rdWHiIDDq47VSCrNw3vrfzoQKMqSj6Fo+rfhPVqX1IF9FTBtLGvCZ6+fzCL9tOHJ8SZcUA5BOYW7ufVKXAr+ABSOXk6HGFvZ1ItKZjXkEnkM8YNVzMEHaVRbHXsz+BFo944+ahb2Kj7y+VDUqAF7M/BkykWCs2Ew4oP2CwkFAZ+3Tu5zlp9La7GWfj8WU4iVNM5fyxdkx/pzF0K8YM3rzmWcuWOgjcngg9CdFzXC2E7LZhVlUi4LMYN81pFw7ero7gphmXB1o2w1vmt3RAo8ksFlKWCiwK2PvYDSdcZ4i28PLiraz7EO2TrSfDvt2vjM22uGQvG4QHu3KVuOaBZBWIeAExf+f8ipZlPFk7KpNNjc8Ii0XJwVPMOLi77NZemNcX1It7fkFSTgdRGNo4t07huG0cLgSWex182UeMzEJlD91oUYUekRQheibgGlqBmHsB0wpO0+ShgvjBFY8apvS7KEh7wGf+wZU/RsEoV6XvrCjfgGzkHbqAuAQqAD X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230001)(4636009)(46966006)(40470700004)(36840700001)(107886003)(7696005)(1076003)(186003)(40460700003)(36860700001)(2616005)(36756003)(316002)(6916009)(508600001)(26005)(82310400005)(54906003)(47076005)(426003)(70586007)(336012)(2906002)(8676002)(4326008)(70206006)(86362001)(81166007)(44832011)(5660300002)(6666004)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2022 10:42:10.8626 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0414b75d-4d18-4745-e6a5-08da18834553 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT032.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB7164 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220407_034215_785236_099D293D X-CRM114-Status: UNSURE ( 9.58 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Use macros from vmlinux.lds.h to explicitly name sections that are included in the VDSO output. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Masahiro Yamada Cc: Vincenzo Frascino Cc: Kees Cook Reviewed-by: Kees Cook Reviewed-by: Vincenzo Frascino --- arch/arm64/kernel/vdso/vdso.lds.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/kernel/vdso/vdso.lds.S b/arch/arm64/kernel/vdso/vdso.lds.S index a5e61e09ea92..8a8780c6d093 100644 --- a/arch/arm64/kernel/vdso/vdso.lds.S +++ b/arch/arm64/kernel/vdso/vdso.lds.S @@ -11,6 +11,7 @@ #include #include #include +#include OUTPUT_FORMAT("elf64-littleaarch64", "elf64-bigaarch64", "elf64-littleaarch64") OUTPUT_ARCH(aarch64) @@ -54,6 +55,9 @@ SECTIONS _end = .; PROVIDE(end = .); + DWARF_DEBUG + ELF_DETAILS + /DISCARD/ : { *(.data .data.* .gnu.linkonce.d.* .sdata*) *(.bss .sbss .dynbss .dynsbss)