From patchwork Tue Jun 28 15:13:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12898461 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 23F04C433EF for ; Tue, 28 Jun 2022 15:15:02 +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=o/ydfWxUrNTdvHcf4hq8663M8Bun5UpjhvJzaLkuK3g=; b=V8rbzbgVj2O0df 723Yt8s9aKlfakD+Ssa/Fd1YdO7fmN49xAkgqyXvjuEOYOx7udilLGiQtu440nWKJj3wmafaH/mnr QuskLL1n1areFZRT6KNDkbFy/N6JDChJyFzTbPpyTn5p9JuhGi2I3xOsR1Bc3byVufM1u5CHnc2mM 0ByCrbIkVqMiaqmbYnZUGkq5mJ5J8hOb6OXfYMb2GsbkpkqzlisvRmg5Z+9kvOVoLW8F6CRv6IfPk T10xp/w9/CEgfHZkRrowmJv9ZW/Dysd9gvhvKboOBjzRdGtnkDaWJCMGByLVSo/zhkujsLscmkQBo 0JQ46yWVqn18IBTY/ArQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6CuL-006pgY-GI; Tue, 28 Jun 2022 15:13:41 +0000 Received: from mail-eopbgr00062.outbound.protection.outlook.com ([40.107.0.62] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6Cu8-006pbq-KS for linux-arm-kernel@lists.infradead.org; Tue, 28 Jun 2022 15:13:30 +0000 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=NM6NXTEHhAHR+Gq06QYz1ZQDtZPJVlM7ud7CwTxA9RvIRYIzQEisPjvKuXvANJGBlm0YnvtG9kVsYkLfnCBUxAeXdAJ3iHcQF8sQT66rPTsChHxl0Mg6xvXBd/CoixKo7yIc7MkixnO6aLE7kW9v/MQbSWbr2evFji3gK3rA6W18drJmJn8bgll37vVDzGcaUKGFUZ0sJ7MoFTxkRj8OJxgpNIMohupfWP+HGmdBbLlkAtsDHZWcTewKjA4kHAoiIY5TIs6NVueoavYb6HY8VPsmWyCG7Y5wucTEJOnE5qrRA0nNCeymANEaoVxStd1Vm6iPrxauABnQjG9AKs1zxg== ARC-Message-Signature: i=2; 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=tz8EFank2M7qwWkhi9FpXOOL6uRBo+TSlfNfl/Wmjr8=; b=ENTnCLZACi9cSSEiB2H0gGKm4BmTpACQp7Hxd2TU1FUU8rexOMvXLTdnI8FQuHP7NggZBOK7HparvZ3oxzp/FDA/OFfMZyZjV0D0ctJJvfU1JJH3CQWx9ule6dfIW9PzeqGSEUJIzNgnfJOA46kRgTu8xvhGzH0PslOi8aGsPGn40O8CdzmOkLUX+ZcgO604Tn6w1hFzwT6+qzZPtEAFKjt8svwEN1WRlRRtRc5KGFVebhWJM2pUepfDV2ofsVzscDqSgpPKdIy+xJgkiwC5najjGd5IifVTHOJufXYka+bA8z7swYIaJ/cEi9GnNgCSYmXLRHB028aBfz7VYm0Zrw== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com]) 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=tz8EFank2M7qwWkhi9FpXOOL6uRBo+TSlfNfl/Wmjr8=; b=pTzZDks/pi8YCnOTXCTggaHKw2a3zEE6ktwkUEHoM2/IRrppwA3WSDKh/DxnpRln1CMjY5s8vogTj5u5AmAnLhV1C6/Y265peADgb0y/rh1IT5dym6WjO4B/LWp0op0lj4duy0GLMoqxif5Bjgcv7iPYcjKzXtwiLfmFrn7SdSM= Received: from DU2PR04CA0245.eurprd04.prod.outlook.com (2603:10a6:10:28e::10) by VE1PR08MB5056.eurprd08.prod.outlook.com (2603:10a6:803:116::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.18; Tue, 28 Jun 2022 15:13:24 +0000 Received: from DBAEUR03FT013.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:28e:cafe::9a) by DU2PR04CA0245.outlook.office365.com (2603:10a6:10:28e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.21 via Frontend Transport; Tue, 28 Jun 2022 15:13:24 +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; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DBAEUR03FT013.mail.protection.outlook.com (100.127.142.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.15 via Frontend Transport; Tue, 28 Jun 2022 15:13:24 +0000 Received: ("Tessian outbound 8dc5ba215ad1:v121"); Tue, 28 Jun 2022 15:13:24 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: c1a7bc8ae22da43d X-CR-MTA-TID: 64aa7808 Received: from b493156da352.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id DF0AF746-48AA-4A02-82CD-E8A9D20C9F4B.1; Tue, 28 Jun 2022 15:13:16 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b493156da352.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 28 Jun 2022 15:13:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AGNdVs2+HKflMOt+7IM14lZICmvHTcQqALdDr7EUA67X2D2n4xe14wnZ/2hBgrSPrbRxnkiAXL8UMIp1CInfeBEXu5vYl1sK3eKw/9H85XwBxVibTFWvQcIfhZORX3TdlOaTVjxjEEO/l3E43dBn1P92bniHLpUrMwq96AzxLeJQyrjmUBWflimDL4Fet7rcIaoWaRUKwgcFr6Tv87yY7oWi0BPHJab/T5MJVkff7juP5b3sg0ftJjN8TGNQq16oQqG0nOknRO6cMDRKVO4o8LO7DFEkrMoZ9Ms3N7wvDatHqNqm7whchtGLQIPxHSqRZpzR91pB/crKaU1ykZpaKw== 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=tz8EFank2M7qwWkhi9FpXOOL6uRBo+TSlfNfl/Wmjr8=; b=iVDJxWRwL7dKdEdMq63IcgejCiMjKbtlJdWsDnI6n0cDZp4A0fomZOtZh4oOaE6N/nWyVGsg8pgOWr1t3YnshmjeHIO3befCGf1eAcV1xy2gBAiwqgSeGSrc6dYqK9ydxhNMxX3VPpu6Gw8b7CWpnWIcy+81HZmRluboPtfbtl5iiNzXKqZQcKVcuqc3DRWKAlFm0rxUrwaBzpFOcKpCF46r9/y0rWYgj9XdjIlG6XQ9ayTCcL9NdsIK00EXRrjQm8ZrYbl886cOZrQfM9Rsaw5ze3xlg6Jwoesw41D7H04h4ZCaMoHBb44K28VOR1ARFRN+PTAcVN6rYhytLc5oNQ== 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=tz8EFank2M7qwWkhi9FpXOOL6uRBo+TSlfNfl/Wmjr8=; b=pTzZDks/pi8YCnOTXCTggaHKw2a3zEE6ktwkUEHoM2/IRrppwA3WSDKh/DxnpRln1CMjY5s8vogTj5u5AmAnLhV1C6/Y265peADgb0y/rh1IT5dym6WjO4B/LWp0op0lj4duy0GLMoqxif5Bjgcv7iPYcjKzXtwiLfmFrn7SdSM= Received: from DB6PR0301CA0064.eurprd03.prod.outlook.com (2603:10a6:4:54::32) by AM9PR08MB6148.eurprd08.prod.outlook.com (2603:10a6:20b:284::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.17; Tue, 28 Jun 2022 15:13:15 +0000 Received: from DBAEUR03FT040.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:54:cafe::4a) by DB6PR0301CA0064.outlook.office365.com (2603:10a6:4:54::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.21 via Frontend Transport; Tue, 28 Jun 2022 15:13:15 +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; pr=C Received: from nebula.arm.com (40.67.248.234) by DBAEUR03FT040.mail.protection.outlook.com (100.127.142.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5373.15 via Frontend Transport; Tue, 28 Jun 2022 15:13:15 +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.2507.9; Tue, 28 Jun 2022 15:13:13 +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.2507.9 via Frontend Transport; Tue, 28 Jun 2022 15:13:13 +0000 From: Joey Gouly To: CC: , Joey Gouly , Will Deacon , Vincenzo Frascino Subject: [PATCH v1 2/2] arm64: vdso*: place got/plt sections in .rodata Date: Tue, 28 Jun 2022 16:13:07 +0100 Message-ID: <20220628151307.35561-3-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220628151307.35561-1-joey.gouly@arm.com> References: <20220628151307.35561-1-joey.gouly@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: b1e2158f-99e2-4f3c-4b07-08da5918befd X-MS-TrafficTypeDiagnostic: AM9PR08MB6148:EE_|DBAEUR03FT013:EE_|VE1PR08MB5056:EE_ 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: eXUCgLbIgRzk+D/L9BgZOpCNOd6aEbucZCThUcGJ8BPCjDEV6sMKkjFpfWCzyHAJrRFSpTGZmPHqB7qRtAZPUKn3/248Yfsk9RJVBCr8Qp6Ur0jaegKPTePOVuSbxVvOyTotIb64uwVv+fsOWxGNGsGYARHrd6naQ78gaq8i//xblp3TOp/KmVXRWburwB8o2MHkzgpGQyuIdOaQETdBuGwumT1bJMR63Is9rLze9zcfq2eZqDC/d2huzHUpzfxT2pUHHYmpunpxRvQ5Sx+ie2HpI6v1iuPyzyw3wx9C/szo9pA+iaiDe0f8sVsLSqX4Y60Wli67NyeZ6cI9s3x9CpwqFx5+4hTdu3mvXOIaKcB1BgUp3fNG11ia358AzP8Np8LZtVjQfXcUiyBJx4MAAeVIuCW61jE36lP0vttuJDgv9MJMvfUCSuzgWbO6UbfsfQKuIxezEV8kO/CurYADZpkUI7RQYqbkPciHXvZZ2PJPrjreHK4XwL0QwASt2YI8TdvFh9I8vx9WIy8ngXE/KFAACl7pYQAljod/fXi+22AY7ofb9b8Ygwj6bS4UkuUo7EVL0FAKGZinJk8bxMqA2QnUsHbBSHWklfHuSSNGWAuDBFna6g1pWWDzf42zsr3BXO4oAPe5hTvv5BF8a9tIUOJk3FuYpwvm0b8BzU2CqFalivxYq9UVB+WtZY6IqfUQzi2oWPlBL+Dr0hjibC/IX/ngyltODHTxZZyRcduYqAGLiUBKFBEhKB378qmVDDWzvylhIcT8RgOtObTUaD/nX87wP3lUEWB1pXIeNRRpsqCQ7j/m36v67K3xAeGbeo+KVWjKSen3O4A02FuI4k2REh1oigiH2adlMWRPgBukMt9EETPuVU6H2HtyovmGoP8yTzxHzXqZaGMJ+6j7A5sXfA== 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:(13230016)(4636009)(39860400002)(396003)(346002)(376002)(136003)(36840700001)(46966006)(40470700004)(6666004)(86362001)(81166007)(54906003)(44832011)(316002)(82310400005)(356005)(36756003)(36860700001)(40480700001)(83380400001)(6916009)(82740400003)(426003)(336012)(1076003)(47076005)(70586007)(8676002)(4326008)(70206006)(966005)(26005)(8936002)(5660300002)(478600001)(186003)(7696005)(2906002)(41300700001)(40460700003)(2616005)(142923001)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6148 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT013.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 2a2fe501-6117-417b-b0be-08da5918b977 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QTCfM8IatZo9Fnt26c8r5VffOF7GFWM9iiM50eKyqUcQ0tShuPGAWVzvziZcfp1JGSBuqcTlV1LhEybh+0dtblDPhz0YX2Rxwrdz4Fj1fsYSk/qWqbC7b2VJ/kUYqMytQDak3tzwzHjH+yH/m+XnYf2I2vYMWeMUY6bQK3SaRTah2TzMzbUq5wOkCeeyh9Mk8/0xo0QJx+HEaI5cFXAZ7wZTBe0H6GIKa9AsLsPdIsxdcwy3832Jv9MqB2GxIpzlatmGt4pXQ7giwrYactkto8oNgQ5fOSHUgP7GInmjhfGwYPUvTzVHLXrA1ji5Z534Hn0g7xe0D6rEN05TGKfYbFeLHTL5pHK2aXQb6GoCczOKgcgWIhfSs87YDDyXXClUH4B4aHkp5pUaHDU1A+OXVNHwKrP13c3e6Rzp/6EiaAJlAWQ64tsrA8OuL+BVJzt/hW1vwaYB3cedu7O0lRRPcWDu/XH1wa7aejQigDbR6TzVt+oPt+F+vJJdofEj+TOI4vwZR6VXcM/4vBGmp6cuCyUM9XING8xBa70urspzPXbuqI3ZKJD5WF0mfarvmz0ZWIAl90Q9pwxi5eCwG1MMbmBbUSS40LoVrvGQWIx8kn+egvgQAqWCwFjHHixyN99HX50Hb6dWZSEbYQnGegWR/CgXO1P0uAxo7t+Z9I9TLdtFK4+QwmZy5vOg9XBdMJyWdl+q6dg3rj5zLeYomsLvo15VbvdfSnvqmbkf1CnKHHePSLDUWoiwqQCJoRTn/lnWce35p65MyLPNQ4l7OrwaSl0QznzWwV4OTHm8uhRTvK72qhqMaUHJ1L/YitZYR8pEo9eGAbVcxBUcHqegZY/DVUihQ8LqGg8ogF259hBZe/c= 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:(13230016)(4636009)(136003)(346002)(396003)(39860400002)(376002)(40470700004)(36840700001)(46966006)(36756003)(82310400005)(4326008)(44832011)(40480700001)(8936002)(316002)(966005)(40460700003)(70206006)(2906002)(5660300002)(478600001)(86362001)(2616005)(426003)(47076005)(36860700001)(1076003)(54906003)(70586007)(41300700001)(83380400001)(336012)(186003)(8676002)(6666004)(6916009)(82740400003)(81166007)(26005)(7696005)(142923001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2022 15:13:24.4704 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b1e2158f-99e2-4f3c-4b07-08da5918befd 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: DBAEUR03FT013.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB5056 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220628_081328_718806_7309A828 X-CRM114-Status: UNSURE ( 9.62 ) 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 The vDSO will not contain absolute relocations, so place these sections in .rodata. Signed-off-by: Joey Gouly Link: https://lore.kernel.org/linux-arm-kernel/00abb0c5-6360-0004-353f-e7a88b3bd22c@arm.com/ Cc: Will Deacon Cc: Vincenzo Frascino Reviewed-by: Vincenzo Frascino --- arch/arm64/kernel/vdso/vdso.lds.S | 12 +++++------- arch/arm64/kernel/vdso32/vdso.lds.S | 23 ++++++++++------------- 2 files changed, 15 insertions(+), 20 deletions(-) diff --git a/arch/arm64/kernel/vdso/vdso.lds.S b/arch/arm64/kernel/vdso/vdso.lds.S index 1cd85258c079..e69fb4aaaf3e 100644 --- a/arch/arm64/kernel/vdso/vdso.lds.S +++ b/arch/arm64/kernel/vdso/vdso.lds.S @@ -52,17 +52,15 @@ SECTIONS .rela.dyn : ALIGN(8) { *(.rela .rela*) } - .plt : { + .rodata : { + *(.rodata*) + *(.got) + *(.got.plt) *(.plt) *(.plt.*) *(.iplt) *(.igot .igot.plt) - } - - .got : { *(.got) } - .got.plt : { *(.got.plt) } - - .rodata : { *(.rodata*) } :text + } :text _end = .; PROVIDE(end = .); diff --git a/arch/arm64/kernel/vdso32/vdso.lds.S b/arch/arm64/kernel/vdso32/vdso.lds.S index e2f8ced571d6..6e67a6524d58 100644 --- a/arch/arm64/kernel/vdso32/vdso.lds.S +++ b/arch/arm64/kernel/vdso32/vdso.lds.S @@ -36,7 +36,15 @@ SECTIONS .dynamic : { *(.dynamic) } :text :dynamic - .rodata : { *(.rodata*) } :text + .rodata : { + *(.rodata*) + *(.got) + *(.got.plt) + *(.plt) + *(.rel.iplt) + *(.iplt) + *(.igot.plt) + } :text .text : { *(.text*) @@ -46,18 +54,7 @@ SECTIONS *(.v4_bx) } :text =0xe7f001f2 - .rel.dyn : { *(.rel.text) } - - .got : { *(.got) } - .rel.got : { *(.rel.got) } - .got.plt : { *(.got.plt) } - .rel.plt : { *(.rel.plt) } - .plt : { - *(.plt) - *(.rel.iplt) - *(.iplt) - *(.igot.plt) - } + .rel.dyn : { *(.rel*) } ELF_DETAILS .ARM.exidx : { *(.ARM.exidx*) }