From patchwork Thu Apr 14 10:46:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12813334 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 E24FCC433F5 for ; Thu, 14 Apr 2022 10:48:07 +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=wKy8Pb1scYncUot+qmR5OaQbXfU3A4/K7+tq806KbRI=; b=EU7a0WKZnF0q7R hRJZtOE4Q5HoO8o/tONbcmPdThYQ3qbGBNXOMeuhQgAZz8n8TQEGLn42gopRBRWlzHYcSNe/MduNQ n7cgX/YZJleJI8aYTb84jrNtaPcB6nMwQWo4lVZuxMiouJDGaLkadgQgKV+lQtj1dSIALWYXjb9Iy mUDQmT3+BaXjrUw5SDvhbGZfJujRYSOSWNxaDlI1vJhThzqkIsCSsh7Ly+TgrG4Lqt/ui+LWm85Gm yE6ci3lv/unCL/Be79ZnPw8dmScEY/O2iGvFhC8hfNhpUpF3IhTmIbriPfTKIiMA5KwU7Vl8Of6g3 4nXLg7UP2tEqgFPJB1wQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1newzu-005BQh-2f; Thu, 14 Apr 2022 10:46:46 +0000 Received: from mail-ve1eur03on0610.outbound.protection.outlook.com ([2a01:111:f400:fe09::610] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1newzp-005BOZ-T3 for linux-arm-kernel@lists.infradead.org; Thu, 14 Apr 2022 10:46:43 +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=SnMQ7Bw329zP2Q0pRY+nw+y2imKFqxhC1JO+yjRQMXo=; b=SPZUPhNF78kRsipG1/lrtw9BfGqrXs4egL/sQStZ8oX6HZ+nKGP+YhXTTgIitdePFpL0JJkneLkbRJfZr9Dl07Oxny0g99HR76B8ekxXTN+FqOiYSIijbcgW+bLSJmw/6y7ovNgFF2C8x16qVhAVSxLqR+DjWV9CLtO4Lv36+Ds= Received: from AS8PR04CA0210.eurprd04.prod.outlook.com (2603:10a6:20b:2f3::35) by HE1PR0802MB2154.eurprd08.prod.outlook.com (2603:10a6:3:c1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Thu, 14 Apr 2022 10:46:35 +0000 Received: from AM5EUR03FT037.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:2f3:cafe::33) by AS8PR04CA0210.outlook.office365.com (2603:10a6:20b:2f3::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20 via Frontend Transport; Thu, 14 Apr 2022 10:46:35 +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 AM5EUR03FT037.mail.protection.outlook.com (10.152.17.241) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.19 via Frontend Transport; Thu, 14 Apr 2022 10:46:34 +0000 Received: ("Tessian outbound facaf1373bbd:v118"); Thu, 14 Apr 2022 10:46:34 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2b77d16b9a22ea98 X-CR-MTA-TID: 64aa7808 Received: from c5175a33042b.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 20CBB733-7B5C-40F6-8E84-856971260969.1; Thu, 14 Apr 2022 10:46:28 +0000 Received: from EUR02-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c5175a33042b.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 14 Apr 2022 10:46:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kfzOm9s4dtz2Pn8FMnLI3vOEt2K6zuD1h6Wq02SiZGYwJgQopfgEvVqav1LLixs6VFGe/4vDn3Gc9+fxgPQg9LB0VbfHos2kRnqpAQa8dVN/B7gQcI87zg9zEohcBeJS/kuwI9SmvXIeC9QGWiaYirphrFoFZz328I6C8XulATbyLv6/84WQBL4+tFR+QVqQCKMT8p56LxrNRxAbEJdjpanmo+BCeTtyxCf1SoF9B05Tt0JJM9U2mo7K6fGfwSJWsYCjh1/uWyT+nt4D5+NSf+lXlEXzUfMdoWoNjEvVugIzEwv1Q2PAoLuYUBnFtUmgRlSIgGbw4lfiJlhZDkmKAQ== 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=SnMQ7Bw329zP2Q0pRY+nw+y2imKFqxhC1JO+yjRQMXo=; b=Qy3ykZ+5QMcrIRm/sQyYkiZ/kw4EA/5q9vfysrL+tWbnjOszNe24mQhWjUI3XODMqeKEC9+hRvCXP+104h5AUuuozSGw1Btws8r9+IuceeM6qIfWDyZgGI4sIg3aNkcSjQ8J+D1XkwC65YdTFw+clNPcGzstYMCe1dj29CpK4+we7T6xPkpp47egfly85rrY94c5KeQ0tocZuEvaC7PMZkNxpm8O7u+y0Wp3keUFym9kCDDuQLzURtFMuq30qFwrnUUdLy5k6II/KTEC2I8+tp/vY5gxmayC2bvLUScXcd1GJAcO3SE+g/NwLoj07CWWlnaEqOZKMtHpubfs1VFJlg== 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=SnMQ7Bw329zP2Q0pRY+nw+y2imKFqxhC1JO+yjRQMXo=; b=SPZUPhNF78kRsipG1/lrtw9BfGqrXs4egL/sQStZ8oX6HZ+nKGP+YhXTTgIitdePFpL0JJkneLkbRJfZr9Dl07Oxny0g99HR76B8ekxXTN+FqOiYSIijbcgW+bLSJmw/6y7ovNgFF2C8x16qVhAVSxLqR+DjWV9CLtO4Lv36+Ds= Received: from FR2P281CA0001.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a::11) by AS8PR08MB6962.eurprd08.prod.outlook.com (2603:10a6:20b:347::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Thu, 14 Apr 2022 10:46:26 +0000 Received: from VE1EUR03FT003.eop-EUR03.prod.protection.outlook.com (2603:10a6:d10:a:cafe::d2) by FR2P281CA0001.outlook.office365.com (2603:10a6:d10:a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.8 via Frontend Transport; Thu, 14 Apr 2022 10:46:26 +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 VE1EUR03FT003.mail.protection.outlook.com (10.152.18.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5164.19 via Frontend Transport; Thu, 14 Apr 2022 10:46:26 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 14 Apr 2022 10:46:29 +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, 14 Apr 2022 10:46:29 +0000 From: Joey Gouly To: CC: , , , , , , Subject: [PATCH v4 1/4] arm64: vdso: put ELF related sections in the linker script Date: Thu, 14 Apr 2022 11:46:08 +0100 Message-ID: <20220414104611.17748-2-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220414104611.17748-1-joey.gouly@arm.com> References: <20220414104611.17748-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: d1259b5a-6a8a-40d0-057d-08da1e040b9c X-MS-TrafficTypeDiagnostic: AS8PR08MB6962:EE_|AM5EUR03FT037:EE_|HE1PR0802MB2154: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: XNzlrsLLg2LIPbeimKLVlT8HfXvVE8FavbFnNj4QtkD2Cx78//ZfmR359RIJUn7DYUtK2q/X61X0/MefTV6S0fJ74ShujEX4ronooXjFuupOvmufwng57sN5eWPiwlo/sxZ/tKfMtw5QuEK3CawGPOGlxH5K5kdb4GvQo9ww4pYXZ/EBi3wKaz1QUN1Z3YNIN8uqhgKzHLEvZ0he3KYGSdoFlZSO1rDSzT+BsaXVC8hSLmbnrFhumboB1sgvnjDYlOMpIWW1WuNXiXPznxG4NaR+46CngDkCzl459rg5aj2A/H3S+gAjcjeA7A3UQGK2aHmMxrlzVqnkycoXKuhCOTFTtdvavy+QmKgUdlJ0VP1N7FW9Ak9S1l3TltchNclBnrpH8+viGtB87VPxrI2q5nG48ucOY8O/oVCREVx1Gi1dOuNhspkejC7lUwzGcNekV+PqnAnxfagz0wl87fngJ8P3NB2P4PxMbjxijaVuShIRXUGcbydXi69VxOUlXJS+Ib2ah5MRPk8XQoLiEH/aRq4pT6sKwDkaFDVbOZ34gs3OIeLAQ6XkpDukzI1qs7gG/feO3SdJ0hvCATyVOqMkbbZMQozjT4R+s6xcpgSuz5UKoIqEjBvFHHX87Y+gB12e1TyImR4ehAHETiaU0Fs/efFPpZkBqtAgH9/5PCX2ErFDKKQ/BB8mHC68+XOUr5ZKac6E8QhKEuZ1iK0ZMc60sg== 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)(70586007)(70206006)(1076003)(8936002)(7696005)(4326008)(8676002)(508600001)(40460700003)(54906003)(81166007)(356005)(36756003)(26005)(186003)(86362001)(336012)(6916009)(6666004)(316002)(82310400005)(2616005)(44832011)(5660300002)(36860700001)(47076005)(426003)(2906002)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6962 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT037.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 65836e5f-fc5a-48be-6c10-08da1e04068f X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vAxypwBTQIG981fhDZT0FzdMFK9dZRds9i1w//4BgRYqYtI2peGsZbSZTkHsqU2K/3lJF0xOGanI8Fn5bV8BokV38nnFqlz8XC/HT7G+enD/kOEEN1W7kiKODdv9LXAn2Vg/BhDiGSldmRAYpJbhiEl6Of/uLpnImw9tfw7uaCmgvBDDVUCDgqKf+ffS5oKpc4K5q3OZXVY2GHATHDA2EYYvK7npjEmNO/r+rQJKxqIxOfQ3oVD9S9PCnnWYKxCERMhSEnp0pLKzLD6IXkNpqikvx50fuiAEdrtsdxURQgs68i5jMIb/sYJzrl/et5GFmUOanF44iMrbJEkA2CM1RM62rIlEsEs22wwQYMbd+UEReMDCJuYUV54Dyl3c0jxRRNm1DFz+meNIXXB1ZVowPp9sQgZt9b78jW+2GFi3iQLsFx0N5fbArqvQVuIW5D4F0NaEZNnJIpRpjXCwWxmfdqQcldFQ0v+bUxr+OMfNP8wqtgr6HQgVy1ywCBEaMvhGIanVNmvNanby5y4uCdU30fST2x1t2s6xeqr401kG42sXT0alHnD8kRsaPhSAQxiRp2upnO8Mdz8DhrzihRgOVEIOZGL50Asiqyb8NXS6eADcGZzFP/pg1i6ialFN/AQtu6z0JogsqiPfIwFB0fnQCCxQtabKdymyCXMy0FQWqnp7dhqHA4SwVUvFfqds25/O 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)(40470700004)(46966006)(36840700001)(2616005)(7696005)(70206006)(186003)(6916009)(26005)(70586007)(36756003)(44832011)(8676002)(86362001)(1076003)(47076005)(82310400005)(4326008)(426003)(336012)(508600001)(5660300002)(36860700001)(107886003)(6666004)(81166007)(54906003)(8936002)(40460700003)(2906002)(316002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2022 10:46:34.9198 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d1259b5a-6a8a-40d0-057d-08da1e040b9c 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: AM5EUR03FT037.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2154 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220414_034641_982195_8E7C1E40 X-CRM114-Status: UNSURE ( 9.13 ) 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)