From patchwork Tue Apr 5 16:02:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12801750 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 B2D90C433F5 for ; Tue, 5 Apr 2022 16:04:43 +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=bX4BEmoqrwbrgaAybDg9sx4Si025uqb93quajthvmE8=; b=3IKNfYoM8kYNUd QXZCf52QfHjQ7asHT0Mhb3p/cg4xFrJzuG4s986piwyjvJ5dHLeFSviz0ajhist5/vh/l1MB+vfid jLJWWNiMJTMt1eMn2nyljHU9yljsp3hMoRq7Q2MwFmUc+HxhXzQUKC+rGoB8U8WQW8nArDGEaFVU3 7AnpXov7pXfx4BwSss+Mb8mE2bQ4biJoKx/0yLtbk2vxX22GESEFIZlJPmWX1sZsMVwSrG1BgJEjv COM/j7knqYoJNL19fNTF1ig3o0RaQ0JBESEsxkEamD8pRIakR/+PP5Gw0gE+yBJ58N84urxbO5UOj Z3h/KsX4U25YJ5QULGng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbleO-001oS6-DC; Tue, 05 Apr 2022 16:03:24 +0000 Received: from mail-ve1eur03on0624.outbound.protection.outlook.com ([2a01:111:f400:fe09::624] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbleD-001oOh-9K for linux-arm-kernel@lists.infradead.org; Tue, 05 Apr 2022 16:03:14 +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=LTwkiMXFgbbDIyJEm//y4NwKOh9hC9hU7BxRVIoJBRE=; b=DDN8TY+xNEYESE0ZKlZXT2t/3NVAJDZ3ajGd1bWoyoImqfqluUqAY2e9WVUVEXk74HnB/ZwUEyfe7Bhu7PfCr+becCfQ+GUj0lEGLVkZplZsffOeaoDh8dYVTOrEFDHcjlO+E+NHQysvvvmCJkcfsH4XRZ32SZM2AZ0hOF5vrvc= Received: from AS9PR06CA0194.eurprd06.prod.outlook.com (2603:10a6:20b:45d::29) by PR3PR08MB5627.eurprd08.prod.outlook.com (2603:10a6:102:83::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.31; Tue, 5 Apr 2022 16:03:04 +0000 Received: from AM5EUR03FT055.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:45d:cafe::83) by AS9PR06CA0194.outlook.office365.com (2603:10a6:20b:45d::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.31 via Frontend Transport; Tue, 5 Apr 2022 16:03:04 +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 AM5EUR03FT055.mail.protection.outlook.com (10.152.17.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.19 via Frontend Transport; Tue, 5 Apr 2022 16:03:04 +0000 Received: ("Tessian outbound 2d401af10eb3:v118"); Tue, 05 Apr 2022 16:03:04 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 955f9b09ff34c5b1 X-CR-MTA-TID: 64aa7808 Received: from b9bb40b8ef3e.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 23B08FFF-0FDF-4789-A5D0-234D2E8E9DBE.1; Tue, 05 Apr 2022 16:02:57 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b9bb40b8ef3e.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 05 Apr 2022 16:02:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J0Btu3uxdz1ZFuf/VgKduBSLwjE6CDP+5/O66sF5+dK/4GioQWcKAui91ir0BVHFtqFprmPCmpavDucxe5Q7OQdxPq5frGZqTLA1+I1/j30KQZJ6opIefh3h5rQZtyzYlJ3TswFOBuElFqenhXrcM3IkAf1LMjT3s9PKblFX7wHiA9i61zjdvXCPexeudv5BF+4XfGFNByWjdplwEks7YNiDRc6M5jciqCwFKgvk3aQ+QHUApJf61Sud5HFiSN64BST6IAbNHc3jTFdhClZ35yFIGWW0fey2DkRo0Bq2AYVfRvxb9URKngIiuHvoOsbcGLGi7tE5PF5XvE7gv1pMXg== 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=LTwkiMXFgbbDIyJEm//y4NwKOh9hC9hU7BxRVIoJBRE=; b=j9XAU5HhwA753Ro1iKu46VWIB8ltscqKywNThK9+qZaIAhUt/mtXxSEkPy4npCJPz9CHzLiuzYBN8ovh0afr9iTBViGoDNjo170fXI06tYfaEBaPWCMFJwbrKV2O5uRfHQKRhHObSDDqe5g2/GfHSEGWfEXnh587iZIsM3/JVGIztlM9zpuNJo3UP5TCe9R90k2/3FcOw1ELjOiDuESUKLr7IWtUhKL2fAh9on9UDw20NjZXsh0yutnibe1Kr/+6O2F4pW+7stHVkXROLvLgeHx8uprk1oHqtF7lIy/ntTlM4WEFHJ5ySnhwL/BL/3lVUTSK/Kq/vtHSGkiDjNvP8A== 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=LTwkiMXFgbbDIyJEm//y4NwKOh9hC9hU7BxRVIoJBRE=; b=DDN8TY+xNEYESE0ZKlZXT2t/3NVAJDZ3ajGd1bWoyoImqfqluUqAY2e9WVUVEXk74HnB/ZwUEyfe7Bhu7PfCr+becCfQ+GUj0lEGLVkZplZsffOeaoDh8dYVTOrEFDHcjlO+E+NHQysvvvmCJkcfsH4XRZ32SZM2AZ0hOF5vrvc= Received: from AM6P194CA0001.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:90::14) by HE1PR0802MB2427.eurprd08.prod.outlook.com (2603:10a6:3:d4::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.31; Tue, 5 Apr 2022 16:02:55 +0000 Received: from AM5EUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:90:cafe::43) by AM6P194CA0001.outlook.office365.com (2603:10a6:209:90::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.31 via Frontend Transport; Tue, 5 Apr 2022 16:02:55 +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 AM5EUR03FT016.mail.protection.outlook.com (10.152.16.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5123.19 via Frontend Transport; Tue, 5 Apr 2022 16:02:55 +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; Tue, 5 Apr 2022 16:02:55 +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; Tue, 5 Apr 2022 16:02:55 +0000 From: Joey Gouly To: CC: , , , , , , Subject: [PATCH v1 1/2] arm64: vdso: put ELF related sections in the linker script Date: Tue, 5 Apr 2022 17:02:45 +0100 Message-ID: <20220405160246.1991-2-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220405160246.1991-1-joey.gouly@arm.com> References: <20220405160246.1991-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: 4bea0289-a81e-4eed-7125-08da171dc462 X-MS-TrafficTypeDiagnostic: HE1PR0802MB2427:EE_|AM5EUR03FT055:EE_|PR3PR08MB5627: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: uzcQxXLkpnqDdJ+JeESBaFvvmv6QqfifsX1WQoNmzmeZM30T8rtn0Tb4x3ZmUY7iFzNnhd/AM3OWf150GV49GADuxgr+DY+qhFbKJ+caADKyfPhSomuNuisH8JU8OI6M+2pTJEHp4kvm8jyI+Kk0fFj9pW4v9fiZC+mUf0Fc01wxds34sssJpRoZv5t8+PQeLz+kirN562lrKyapLYzEpL/gtBIsnaxa+JWeGQ+hhdHvlW60r5QkTdN6sqO3JXEZJSupXYpocpJ6bHJzzTrH8i9Wpm+FPWmupo0cCaOMuURJnIB3BcLsS2R/GQUKh4VH1mOUc4QEDYbhdGIAzfTx7BvRYa2G/jok4gxlIo9ciMtm+XubB7/uKWvGFBuJofNwuup03tftwekpkjJffRVj0kQT4mPTNEr5jmYqrdpbjlauyZibqE0BBstCv6HROUUARTtjTZsGNxXJdoM5G43O2ZU7d6cR2cq8Q28c7+V0+atzqP41TCvEEQYELZjPSEBA4ous4mi6QfKiLOgg+9JJbKNLBPhV2B6UwK3L8iRxdZb5iX+isdV0dBwfyXwF5IyEFy0pyLYghJGI0vwqFLPet5lLxZB71ByYdkiXDm/g3mbRHxy59pMhOfArDmMhbi2aK+FDBLdE0QhIsy3uT9LXBd4s8WUx3vRwcNQheVR5h5JK0E2prdIDGRpoqVpZ8BPoOmCf0oSJSocNmCQd6mLIRQ== 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)(36840700001)(40470700004)(46966006)(36860700001)(336012)(426003)(356005)(40460700003)(82310400005)(8676002)(4326008)(81166007)(86362001)(6666004)(44832011)(7696005)(47076005)(2906002)(4744005)(508600001)(8936002)(70206006)(5660300002)(26005)(70586007)(2616005)(316002)(6916009)(1076003)(186003)(54906003)(36756003)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2427 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT055.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 78e9339a-87e6-4b81-3e63-08da171dbef2 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8NDXfasu3f+b0jXXa5Phx7ptHXG8bSA1Dc7FI8LAzYVpKIqzYwrKWmkq4gqA8LbNGQkcvZyPHboPmTVP+FipHKfHV4BqKvevCdX2701w+bxKqbvSQobLcNcucBNaUyVyIfltuI7y4QenoJ/YLt2CEzB52LXhLqN8yhuL87FWyck6es40Ok9vUKrFlhG76LzEDarBRrjlMQxBJtL3fXnwzaHd+3T4dlM+BJN9XgYorCcplDqI+3QFNji2YWlWtCLX5Cl62Fdc9Xohk2+e5SEolV/1WdzAWXh4kcjrImeVD3JMaU1RlibF00yoO7L9qNHM4g24aJKJMJ4t/Y4LNmoLqAZFan6o0Xvuqjf83sISLJOH5eU7Kzd71tezseYeTX/5IOfcedsfWSaUmjS2nl7dNx2YLON8m5EEkWTpf5KCG/8YAgwxvcfcmIJuionR/ufjhUlKUyYSMY2vGFfKUlUnHQn2cIyZfnaQRzoYpUCIz8/5/Jgxx4WfxmWcQpCBz41diyMUHoZ8/fF/GHI8pDvACQjLfyD4wv7zckuUo/W4DgUQWmBuLsiLC5jzZaDcYvWWTIeamAQKF4leYUcZ/jXS7uvPuy7o09rIxOdwadTIJkWqXhJHNgVh+cJnRrUfvtrRrq3qgq5+GLxYx/n58XCul4htWh8zLxui3axOKLPPNaPlSvvZQn8/yd2ZY9ixy4di 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)(36840700001)(46966006)(40470700004)(47076005)(426003)(336012)(81166007)(7696005)(2616005)(36860700001)(2906002)(107886003)(1076003)(26005)(82310400005)(70586007)(44832011)(6916009)(8936002)(54906003)(8676002)(316002)(4326008)(186003)(70206006)(508600001)(40460700003)(4744005)(36756003)(86362001)(5660300002)(6666004); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2022 16:03:04.1988 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4bea0289-a81e-4eed-7125-08da171dc462 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: AM5EUR03FT055.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR08MB5627 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220405_090313_387235_03B009B0 X-CRM114-Status: UNSURE ( 8.14 ) 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 These are the same sections as ELF_DETAILS in include/asm-generic/vmlinux.lds.h Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Masahiro Yamada Cc: Vincenzo Frascino Cc: Kees Cook --- arch/arm64/kernel/vdso/vdso.lds.S | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/kernel/vdso/vdso.lds.S b/arch/arm64/kernel/vdso/vdso.lds.S index a5e61e09ea92..e453e74e98f9 100644 --- a/arch/arm64/kernel/vdso/vdso.lds.S +++ b/arch/arm64/kernel/vdso/vdso.lds.S @@ -54,6 +54,11 @@ SECTIONS _end = .; PROVIDE(end = .); + .comment 0 : { *(.comment) } + .symtab 0 : { *(.symtab) } + .strtab 0 : { *(.strtab) } + .shstrtab 0 : { *(.shstrtab) } + /DISCARD/ : { *(.data .data.* .gnu.linkonce.d.* .sdata*) *(.bss .sbss .dynbss .dynsbss)