From patchwork Wed Apr 13 10:18:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12811844 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 F1438C433EF for ; Wed, 13 Apr 2022 10:20:31 +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=2QS5N6VQfCGQrE/+01sAc0zTIIR2FWyqUjOXLuwMaWE=; b=kqxzjRNz2dAelK grkhK2p1SQ845dKUFiOb/4Rp3P3+fv7Isp+JYjY1OCyl4ZTeW0/kKRCdRWCGOkuN5b/jN5ykUn5kv TwnPclewNmzyv5BSrjV8a3tWvzApWZUYT38Es0X6/C+MengYdHW36/CuAQEhlIAk9tbWHE8IVVOMW zOkagV/CfHSjuOSUmeOsai3C2cHAF6+EEZ2xiWcORs4ab9Wz7ujXkQtY1qFhQk7v2FoUyVSB7Eznh ic4NKadRYytZEaZGRPk0m2nSgTLS4ed0Hf5TB4X7N1oQv+g7PfXEAeOlx5LOBJTNU447l1jX+CdrR 13DomQWV8kGg06r0o3Fg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nea5c-000VEd-Ro; Wed, 13 Apr 2022 10:19:09 +0000 Received: from mail-am6eur05on2062b.outbound.protection.outlook.com ([2a01:111:f400:7e1b::62b] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nea5Z-000VDV-Qz for linux-arm-kernel@lists.infradead.org; Wed, 13 Apr 2022 10:19:07 +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=EAx+lHHdo0szE9sx7jZAyJYEbwJtsBirD/h+tA5IYq8=; b=lp7CIpgHedwHmv5z6IQrB1NTR3Uk444lJDfKkt+/dCOikO/LQHKiyF8DuG5JCNRJeKtlUm6IOy+UWW44gSlsDb+kMMBUrRLCdbJE2LEZM9vHPdlaLX1D9aB9oNO/q/uSZSkeBTku+ucvPEmyElhyBLoF2TfhZcSEF/QZfvGPjGs= Received: from AS8P251CA0002.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:2f2::15) by AM4PR08MB2866.eurprd08.prod.outlook.com (2603:10a6:205:5::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Wed, 13 Apr 2022 10:18:59 +0000 Received: from VE1EUR03FT011.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:2f2:cafe::ba) by AS8P251CA0002.outlook.office365.com (2603:10a6:20b:2f2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20 via Frontend Transport; Wed, 13 Apr 2022 10:18:59 +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 VE1EUR03FT011.mail.protection.outlook.com (10.152.18.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.19 via Frontend Transport; Wed, 13 Apr 2022 10:18:58 +0000 Received: ("Tessian outbound facaf1373bbd:v118"); Wed, 13 Apr 2022 10:18:58 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 508aa161527c987c X-CR-MTA-TID: 64aa7808 Received: from e1fb15b597a1.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 2D205504-395A-475F-824D-BE61533960D6.1; Wed, 13 Apr 2022 10:18:52 +0000 Received: from EUR03-AM5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id e1fb15b597a1.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 13 Apr 2022 10:18:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O9m5VSRFTudZ3f8KW21Jhro5ZTuBIedK154X4UF9JHdi7IrHcUvpYQb8nwP4AQwynGc6msyihPcnmrXeAZA8f2ysUhwcfA19aTA7TNyVdx3elgmXPpbKSFXL5t1nyJFonyCSHD5MwNKR/HixfjCizRh3ewh+5ITR0v9XXiLuR79EWPQMJZR4f+J6hXaeIrGUcWAAdLQPF7TccRbXZ0YOHF0EQKkvjDMT0j6o8d6lgIF76SGOKal0gMTMTCsTuLoTHVc09S3lpa+xGcCdZvIDWC0PpcWVS2ylHFzA6gR0oxZxvfHiQXOgn/lLdUuN53wVijskOwF7A4flcz4CCQoOBg== 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=EAx+lHHdo0szE9sx7jZAyJYEbwJtsBirD/h+tA5IYq8=; b=BO57XNoYJAQn0IQ548JPniUmkeqOj7/rxaAnyuGKKQ+0nrq0A40SSL7H+atXHvnDmuzsQJdNn1iCYtTaR3MEXD8E9eNvgb1a/dcfQsYLwh0LOJDL1k6UxVURjZn4G83JZXCcCg6XLq4Cs5ql3z6Chcc1xCHgWS4cVWhik0sdC/nGfI4jYnYg3D0tXr5Q8QaujLgE9BUZub7tsPU+ko7QLj6awbqfvFB1z+2Bn8kNXRpZ5FhH7cWUnBeSPLWO759/RpDjP+U1g02FmQ9/rIDU1Z6hL5yPwV8ATcoYdVvkRjeSdxaYZgYUtYA6ybaPVYi8Hd1oprZpdAW2oZQxKbyRFA== 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=EAx+lHHdo0szE9sx7jZAyJYEbwJtsBirD/h+tA5IYq8=; b=lp7CIpgHedwHmv5z6IQrB1NTR3Uk444lJDfKkt+/dCOikO/LQHKiyF8DuG5JCNRJeKtlUm6IOy+UWW44gSlsDb+kMMBUrRLCdbJE2LEZM9vHPdlaLX1D9aB9oNO/q/uSZSkeBTku+ucvPEmyElhyBLoF2TfhZcSEF/QZfvGPjGs= Received: from AM7PR02CA0015.eurprd02.prod.outlook.com (2603:10a6:20b:100::25) by AM4PR0802MB2226.eurprd08.prod.outlook.com (2603:10a6:200:59::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Wed, 13 Apr 2022 10:18:50 +0000 Received: from AM5EUR03FT061.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:100:cafe::a0) by AM7PR02CA0015.outlook.office365.com (2603:10a6:20b:100::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20 via Frontend Transport; Wed, 13 Apr 2022 10:18:50 +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 AM5EUR03FT061.mail.protection.outlook.com (10.152.16.247) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5164.19 via Frontend Transport; Wed, 13 Apr 2022 10:18:50 +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; Wed, 13 Apr 2022 10:18:44 +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; Wed, 13 Apr 2022 10:18:44 +0000 From: Joey Gouly To: CC: , , , , , , Subject: [PATCH v3 3/4] arm64: vdso32: put ELF related sections in the linker script Date: Wed, 13 Apr 2022 11:18:31 +0100 Message-ID: <20220413101832.4594-4-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220413101832.4594-1-joey.gouly@arm.com> References: <20220413101832.4594-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: aef2273e-6120-48d9-5c2f-08da1d37060c X-MS-TrafficTypeDiagnostic: AM4PR0802MB2226:EE_|VE1EUR03FT011:EE_|AM4PR08MB2866: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: WbueOFZznZnx9QRhwS5suWbQlJp+X+cWaN1OeKMk1kQBjQ7O27Fuod+6AV1BJFVrP7xKNcJoLCiMzOb3Xj2E6AkufQH+m33EDxoJ+pRiulIXpwfQdydRYk1/28982HJz0Bsdc0c0+1R0zOokJnZ0K36lww82nwF3TEQ94wXKJRH5vYf91bA3jqTTAEWXLvcQsBDd880GtPH4ZpMBjJK9cyw+GQTVmzOXpunLhn4RQw2BhFnDDgHxNMOiNmvfG1rzFUxtyScxWRL5f+zEs1n4D+bEICIlx50U8mmdNTjpqLa7goAOSxYLuuZbfqsQyk/dh4ZMFULO9h1iHzOftI+zKWTeLMhRljxUdNX+p/RfVe1wavXg1bKaJhPQlJHeuoosTx+yQVrDjE+bDN36za8o6k1EsGeahmxGoNaM+rSkDVBT69rg9scxgrlp7V2mR+0lYWbaYn2Cln7eHEtKDOv+efPy5i5JaezqiOVB6US8GFc4BGtLOsH3HI39QI79zKuvpg0iKnxcsq+vYFApxhOPOMsLTIBxS462Ujx7xSXCas65jNx4SoSjG1aKQDd0fHoNMsCBCP5/BYbFQIeopHUaNBEKiSAp0cwKYRQjPjjhwYpnoRN24d3BLCVwBRSlfRRONmc98ZpO+hNLjdvg1z7NvZ+UVNhjZp+oBZVK78ddX0770CuM8lVe7HKbsUuznZaUrCvCAaQ6viSUEu7ixB37Jg== 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)(70586007)(70206006)(8936002)(186003)(1076003)(44832011)(508600001)(26005)(2616005)(6666004)(7696005)(86362001)(4326008)(8676002)(36756003)(316002)(336012)(426003)(5660300002)(81166007)(6916009)(40460700003)(54906003)(82310400005)(36860700001)(356005)(2906002)(47076005)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0802MB2226 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT011.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 7a459b10-1928-452c-92e6-08da1d3700d8 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WKwrB5584ODK1uEFv/+BZhkKYVGeJY1tKQyZng0c6Id0oEmkRux7vGNcXSj6+05UzjNQF3E5XwEYB60YJlx7nUMY6PzhLLLqqwD+uLPjAYydL1pUbIYCjDex20e8t3U+4JA/1p8Qi2QDiUnx2fnXHeff7eNiJoF6Fg9IxwCxpwFmyWnQWsqOp4ArYbLvfR6E4wMcLOIP8i1JcB3sM5tTgd//6GKnsxKZDvUC2EA6xxFcIo7PJ7gA0NIELoNEWf7Nm84bmEWCwXcIvf6m+pM4N1+9WYq1s0LkLnLqjCfrjMdj794+kdtXtTta70zaRIy1cfnWz9cdpG4LjV4Vg89seyxoE0qwT0W1vC2MJssCZhnWm7NasP29KI8jqw5yNzNPGZuUnw2ukMkqBamyKi3oDTWvxN8ttZA3ciNkPWUlwJrdPCRhfEIYK7Ym+D/IezUPRlkWZvvJE41fjEPOOfNo7mgXUmfFEt08zI7EH6hBS/8kG97gpt819stZA2rmbYXh653aZmYafrzCUgAIgBW1RaVP4FBBw9thOMcsbaybei9ZliNx+DY+X3MO2Jy5gjOmL6POrj40rqsTwk6gdV3AgjlyXGJ/AD6EbrSR9dQWb6vfws/R5UYRKrMBx4UbDGqSfpngnQR2LmX3ZN0zEtAHA3szQw//X0vbSwjgHZbik6rhWhSd9tmkK/iL1CBVERmT 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)(4326008)(8676002)(107886003)(70586007)(6666004)(70206006)(498600001)(7696005)(8936002)(36860700001)(44832011)(81166007)(2906002)(336012)(426003)(2616005)(86362001)(6916009)(40460700003)(1076003)(186003)(26005)(36756003)(54906003)(82310400005)(47076005)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2022 10:18:58.7132 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aef2273e-6120-48d9-5c2f-08da1d37060c 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: VE1EUR03FT011.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR08MB2866 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220413_031905_915665_7BDD59E6 X-CRM114-Status: UNSURE ( 9.56 ) 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 compat VDSO32 output. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon Cc: Masahiro Yamada Cc: Vincenzo Frascino Cc: Kees Cook --- arch/arm64/kernel/vdso32/vdso.lds.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/kernel/vdso32/vdso.lds.S b/arch/arm64/kernel/vdso32/vdso.lds.S index 3348ce5ea306..3bb955f08240 100644 --- a/arch/arm64/kernel/vdso32/vdso.lds.S +++ b/arch/arm64/kernel/vdso32/vdso.lds.S @@ -11,6 +11,7 @@ #include #include #include +#include OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") OUTPUT_ARCH(arm) @@ -42,6 +43,9 @@ SECTIONS .got : { *(.got) } .rel.plt : { *(.rel.plt) } + ELF_DETAILS + .ARM.attributes 0 : { *(.ARM.attributes) } + /DISCARD/ : { *(.note.GNU-stack) *(.data .data.* .gnu.linkonce.d.* .sdata*)