From patchwork Tue Jun 4 17:41:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 91505 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8913938D473C for ; Tue, 4 Jun 2024 17:42:33 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2061e.outbound.protection.outlook.com [IPv6:2a01:111:f403:260f::61e]) by sourceware.org (Postfix) with ESMTPS id 809703AA11E9 for ; Tue, 4 Jun 2024 17:41:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 809703AA11E9 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 809703AA11E9 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:260f::61e ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1717522921; cv=pass; b=IO8k4Jnk6wz3PZNGInPR+yAmbulU+LZePi/8VKFNMvdrBhjrKQq791rN3bNXoFQ0PNZQ1uaEUpUWUy31S7k7nHBAjEo/xPTi6N42DsUcbTV8f+ipNF6RfdHnji8wDSteCYvpsjlatqTW9vMDxIJqAdXpeCugVjwKdWVPB0RUnl8= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1717522921; c=relaxed/simple; bh=LYYAjO2z+Dy6FazLlEKv+JSfN7n9mAQry16kf3spFcU=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=l//WxTObELJFTSQ8o3ATPkC0WuFFLo2wPYOiqoH7lUwaTUVN8052e3PVKD9TY81SVzTfN8sim1vk7BucJD1qx7Ms6ITMWfXP5LUNl2fHbZ8yMLPLouqRg+TqhmceTCNvk3OQLTXzdVhQBBJzTSFRrBR0FEk8MlqhmDTaSW8LejA= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=NT9tnqHzjV/Rwz8wMOhRRiHw0S67SkUw19DPrHpcYxyxm2Xe0Y1DW81+0WFYKWB6UD1fiHU3UH+zYjPlku8c3ecJxapESDCMaOym01a8PMZ/FXEhu/7jvE+1Gh2enj+ll6JBMDVPs/qlX0jkfa3Ka0j9vNlT3pwaM9B2wPWJnYLGMwh0WK9I+BqtUQT0Oa5FeJRjy1hC+8rhkdS6/UqKckXUNAtdAjYd0lm0gswVYf9QWcVduTbbBHPGdFDTo16jbD1m4c7SdHA4nZryzYjKWOFQQr62EunGWNXR8/90YaPIC0jIIEDD0U3ll8Nyq6Q238jmyMGcdoYqZx4fKbcWtw== 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=fYaPNF73Ak5bZTSplADeXjXqZDESj7RL+UTZOeKmpwQ=; b=A2xI4dJ9c6cEGUFCrIW7CXx5PlzSNoQIh0CdRnxJbjFIDDGwb2oH3HcWf5EVZDWRwH2ouUXSSA1q7ahCpVvNX2aqILuA1/AQnPwW8oeD15PgvHVwIxY3ckXF1R69ybQ4d27ZSLQJZkykvAf54ldF6yAzkOXIALqE/b1BaHQKCM2YTf/C6H/u995wYzCbHGB4mdjMNRoZbAbj4MqMSPChGWUHuwBB4vrVKKqZRz+lJ5DPrDJdeFwWnyCR3TXRgZSryVecRga+8J4zt4fXbUrmvaaBe0g0cOioYWmmvWdObc/4iQz8azbxrT8ejtQ1ZBvcVcCPmIRqyTlwKibFOC6uAg== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=sourceware.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=arm.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=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fYaPNF73Ak5bZTSplADeXjXqZDESj7RL+UTZOeKmpwQ=; b=iZeo3mrxcOkDZXPHe9ajUb3bWh0eMk20LxrIU9PYXLR9wsJNv5XPBVyEok2EKYfv4YmYCjuffjRnHEm9SZ9D9x4XiXvmP3RY3kRBSZJrLMSJDTEueP5yfZenH/anVvTSFr1LE8b7U6JZCuxtJ0T97Ah63LlxgzLJRYZCfM4v45E= Received: from AM0PR01CA0075.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::16) by AM9PR08MB5875.eurprd08.prod.outlook.com (2603:10a6:20b:2dc::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.31; Tue, 4 Jun 2024 17:41:55 +0000 Received: from AMS1EPF0000004E.eurprd04.prod.outlook.com (2603:10a6:208:10e:cafe::4d) by AM0PR01CA0075.outlook.office365.com (2603:10a6:208:10e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.30 via Frontend Transport; Tue, 4 Jun 2024 17:41:55 +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=arm.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 AMS1EPF0000004E.mail.protection.outlook.com (10.167.16.139) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7633.15 via Frontend Transport; Tue, 4 Jun 2024 17:41:55 +0000 Received: ("Tessian outbound 101c07e38e11:v327"); Tue, 04 Jun 2024 17:41:55 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 00d1dac23b212727 X-CR-MTA-TID: 64aa7808 Received: from b72f03c0b302.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 9D8ACDDE-F5B0-4FB3-9C74-0DED5CA1F51A.1; Tue, 04 Jun 2024 17:41:48 +0000 Received: from EUR03-DBA-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b72f03c0b302.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 04 Jun 2024 17:41:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WnRUgSbQ+BxCYJJBHU9M4JVFBNLaoViQcNLqATwSPnF4Jo5g38q6pCnYge7lyodbNtNH3Ydlie5pq7MdIPBRKqMRwE1fC0pbSa3AM0snnBQUdzxuYE6gIaFEQbPx0OhZdE2R/zIxGH5494VpZfcQ+mYrLlrIk5owNPMl9TeA+hYHnhiSqgBE5Z0Ft+aSMQFgdkBGMEH01lAzgcxJYgfFExK8uvWcrIdHzzyId7iOxl29jCSsSS02hVhObSItnPTa1iO0Hk0Vhia0d7sEcgvqT2IX1wCMC6EXFtOhWPja6sbcl6pbloiqZd7NeJwNc1yy4yXtpFxeIdSbWUES3D0cPw== 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=fYaPNF73Ak5bZTSplADeXjXqZDESj7RL+UTZOeKmpwQ=; b=cCx3G7Y03W2rXM1UgUw/BZ6eXY8KIAM5tHJkB79ut5eCv7QuKHougX/uVlxKTBRVk2vKUu4DUxkWn1/HDCJ4Vbr5XX8vP19d7U42vw5H1hOSg3v27p3dNjFuzDmZejXhT1GuAkiwliDhbYFEAeHBq75WhsNGqWyIIE71vGzDWUaNZRJyx53i34dthq6TntCadb4gdkR1pWYpreh9Tw8KrCX9Gb5jtAoRy3QiGexs5ocbrexHuDtfmjqhCvtMPs4wNooDqU+Br0rX2YxNPr7rOqqvnFv7qy8quEZOufEo2JbxVfvld6tgeyO/GieLQi9RvplrS2SmH3kmM0TWLgTIOQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=sourceware.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 (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fYaPNF73Ak5bZTSplADeXjXqZDESj7RL+UTZOeKmpwQ=; b=iZeo3mrxcOkDZXPHe9ajUb3bWh0eMk20LxrIU9PYXLR9wsJNv5XPBVyEok2EKYfv4YmYCjuffjRnHEm9SZ9D9x4XiXvmP3RY3kRBSZJrLMSJDTEueP5yfZenH/anVvTSFr1LE8b7U6JZCuxtJ0T97Ah63LlxgzLJRYZCfM4v45E= Received: from AS9PR0301CA0007.eurprd03.prod.outlook.com (2603:10a6:20b:468::27) by PAWPR08MB9758.eurprd08.prod.outlook.com (2603:10a6:102:2e2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.25; Tue, 4 Jun 2024 17:41:46 +0000 Received: from AMS1EPF00000041.eurprd04.prod.outlook.com (2603:10a6:20b:468:cafe::c3) by AS9PR0301CA0007.outlook.office365.com (2603:10a6:20b:468::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7656.16 via Frontend Transport; Tue, 4 Jun 2024 17:41:46 +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 AMS1EPF00000041.mail.protection.outlook.com (10.167.16.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7633.15 via Frontend Transport; Tue, 4 Jun 2024 17:41:46 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) 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.35; Tue, 4 Jun 2024 17:41:46 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 4 Jun 2024 17:41:45 +0000 Received: from armchair.cambridge.arm.com (10.2.80.71) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Tue, 4 Jun 2024 17:41:45 +0000 From: Szabolcs Nagy To: Subject: [PATCH v2 2/2] aarch64: Test DT_RELR with discarded sections Date: Tue, 4 Jun 2024 18:41:45 +0100 Message-ID: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AMS1EPF00000041:EE_|PAWPR08MB9758:EE_|AMS1EPF0000004E:EE_|AM9PR08MB5875:EE_ X-MS-Office365-Filtering-Correlation-Id: 246c63d9-4e66-49d7-6783-08dc84bda057 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230031|36860700004|376005|1800799015|82310400017; X-Microsoft-Antispam-Message-Info-Original: uy//9R/8hSWs1rUSd6y1kVCGph0LXysBksv72/t0xmm0Qrjvgu34lEQxgUnJNVfxrX6T9ASReyIZDdwD/HCp9QEgFCiM/lmBJjcc8PCf7RdXmipjP1aUi3TiL6s0hQ5xLYJGJuLBCoQyde+Q7oBHB+JPX7ZPsfS5OI4RpNXjCPnYVevyleLDsD3uFwETOHmfPqhnEbNfp95tFHCLtQFuZFy0ODjiC7bH5iijglx2fLi6nx3fewqCjDIB837jrsqn+Hz+oy9FKH+xYhypw4AyErwmZh5TLFfhGnIn+fY0BXgkv2jSQrDaAPalnzsD3r1MTp6JPaLnAKf+gCuUGUSLcz/ZS3PtNt7gCOBEqOFAX7b/GhRbRiZ7hyaGX74MRm2M6rcpphhezvP2MCI1SKns8302b/rBifdJCuxUs3OzHvWTYcvPm53+y1MOVqrQ5cdLT8cX7vwmJWlMez8X5+vdp/lToY94UTqSTEjlIRWBjXqoMRYqCDddbQYCYONTDo7KXzi/kV2apLjtMvC4QRL8y8H9fuRCpBeJ4RV7UY9vENnkEXABX7/PICbdzRrLeihKTsL0duUUz2NRZwnXnBLXJ4oG/2iB7mo2OPdpC9upE2r103rViCCPP0RGc35e++VZpVmE4EOFhTjPQ7+9snvPX71oEBctRV4OXGYMKol+iEGH5X8Z8fA+qhnhkt8dWhu6EALxhQM5NWNp4UgtjTMgXfqx2dAl0YtEIp8EmsUfPtYRy5YyNjh4Wlhlnmr05UzKjIqHM16VKhgl2YuEKFIjDWvR5oJoQNfJ0r0mOFfxKAzF5JQqyGnaBtYTyXzL+ydCg2bQrX+zz25TYu/piTeauJF8sZDvEt6a1bZkr36R19OZnMuAYJnz8grj9FHGhogXPiMZAzHCc3NeSp4LdNravaqQlwiJ7btjq+fAbROl27YJcNjUfIpetSLEhZ+83Gzl9jv6I1RmJKyCFXrulKwIIsNGHl/l0DUKnxqehlt4dTQ51fqfx8gmUzePyd/lsZEddeoYzLg2N1/GD+0hjnzc9yqMbDItNjncrWbcw7vv7n/sBCmHurBT2wVPsJ5aPFb8a6MZkwgNpl3PLnlhoc5OdgoOXW796jru/vcUz51/WGnCMeoL1x+9n7bKoMpjZ2puKdqlD3bwkeIVIiYfyIWCu3IqC7unLJB6iY6Yip+5lAYmvllzxWViVm9L5gDaNK2mtrRVuOciRBEgFEYcYwxJIqJBDPnnjtZR9drAVSnKdfH+/aYH+PZd70M7Frizzxp8PWHKa+BmJye+RplkikLwiE33EEcosFSYZRWx053gHgHZgsqlxqMV2vnbf76wuPFP7xJ/JefQC9+AKMC5vXkFau1U7kahzQAGQBivTpzk5+U= 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:(13230031)(36860700004)(376005)(1800799015)(82310400017); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB9758 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AMS1EPF0000004E.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: bdde32cd-1932-4560-d45b-08dc84bd9b0c X-Microsoft-Antispam: BCL:0; ARA:13230031|1800799015|36860700004|376005|35042699013|82310400017; X-Microsoft-Antispam-Message-Info: dyi4ULARL7SXJolnc/baja99BVp6zRkjD3xfpYamlXrUFCE2YqB4VwGLR8/K4spQLhs/nJmsn4fPkBf+n4WnCv+nyRMKwiIgPw+mO3a1bYUffYpfGoyNsZikx6EzJxM3nTTBRQu2vGvxjYhdnReRZ/7NQMqGbNgk1Iq82tOKAVOWLFqDZOMD6/mj4QU3jxi0dcNof7tETc9HPZOhF265479/2aGGzNJ9JjdBStsvJNdQIIHXNrRD4n+6I9ft1/qtg+Rdn6BVqLrpZ2yEkhrSN9YVds7dvzSBEm6u4cpElKLHmtIfZGkb1mcNIVGLp3n3qof8WLg+x63AJP43n3T8Ve03QoJsR+v0h27mSf9qo8c03Xxzcba4XowZFAUZAWIfeu/FkDiesrTURaicuKSIoGoHSzV2t9aAc+BT0+zUL8rlsXhqBGPFhqGNgV7MEqSPVDV7EqhvxxzGnpV6BnA9ZKT27MyZf1fuepAE3KpA+nJvm92yAgmRER9pAw3E13vd4VzNM0fb34mUIS2pkZ+c4NRBJ2l/jQaMNbp1khvixJjRUWoLzGvLSe+H25a18D+KvzDhrkJhLs02ISWCxGCLWsrYyWolV8iSaX7giZ0Sh7z+fztJQeMOnuFfTnd4Y7mGujskkJYBcPaoXJWZhsIUUw6nmfCII3kslcpht75cyw7/xykCOLqRkZAjKhYlEuEyD6TdeuR+RI7zc237Ot67GTnQ2WZXKH0/WpjoVGrnE+LjM8zODclag3yTQ3Fd7jLywrNGVdpEEtyIRHe9KoAQWBpRzhzvcUV6/UTYB2NS0LpJWmSx+lG9HoVONXWHfNluVJtG1VmnEsLhfYG9JGfQqroKyfhfY7wf88NWI7TtpDC2Q/mtjCBY0ADREHHIprE003JxRVcMjTiMoN4DQhT9sVaBPbVwcLd0K7n5DvgeF0hmCa5UOYVCia7r5Pwn6XnUIkQK9mIFNaZB2NerS9XIte4mBXFlgYCyAFX1DQ7YbvdwHz7EIvGl2F3kqKWvNXLwm8PpeGV7RRChVywX6ulHiO4ndwvLlV7Q/qU923w3aSQFdOFKyz0KHRYILRwEnNITE0qMKMJDAxDF6QV4nYIYCAwNxSSZvq2pz2hhy/9RI1PE2n8RVdEQDum0PwmHwbOjnFHuOKvY7dw/vpiHikVU6KML/kgYk2fetMgZx4PgIp4OC0Pi3emc828Xtxx0btQ9OCjCWwcktgkiv2zi+pkb/flpObQ+LFbOe8eN20gPlCdftIyacbIB8g8z7W4kM0b6aW3cVAtLg2EwY7Jj0MpDPtsBrFHitYSQwKx0bDiIhqf9+LUbuK6qB526TlOlVgzr9h0w9zMlo+9dz9kVVfZ1ltx7Xu+qM4Mb35j/MFxnjHU= 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:(13230031)(1800799015)(36860700004)(376005)(35042699013)(82310400017); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 17:41:55.3067 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 246c63d9-4e66-49d7-6783-08dc84bda057 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: AMS1EPF0000004E.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB5875 X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces+patchwork=sourceware.org@sourceware.org --- ld/testsuite/ld-aarch64/aarch64-elf.exp | 2 + ld/testsuite/ld-aarch64/relr-discard-pie.d | 15 +++++ ld/testsuite/ld-aarch64/relr-discard-shared.d | 15 +++++ ld/testsuite/ld-aarch64/relr-discard.ld | 13 ++++ ld/testsuite/ld-aarch64/relr-discard.s | 63 +++++++++++++++++++ 5 files changed, 108 insertions(+) create mode 100644 ld/testsuite/ld-aarch64/relr-discard-pie.d create mode 100644 ld/testsuite/ld-aarch64/relr-discard-shared.d create mode 100644 ld/testsuite/ld-aarch64/relr-discard.ld create mode 100644 ld/testsuite/ld-aarch64/relr-discard.s diff --git a/ld/testsuite/ld-aarch64/aarch64-elf.exp b/ld/testsuite/ld-aarch64/aarch64-elf.exp index 38929ffc3c6..0e70ca3e028 100644 --- a/ld/testsuite/ld-aarch64/aarch64-elf.exp +++ b/ld/testsuite/ld-aarch64/aarch64-elf.exp @@ -475,6 +475,8 @@ run_dump_test_lp64 "relr-got-pie" run_dump_test_lp64 "relr-got-shared" run_dump_test_lp64 "relr-text-pie" run_dump_test_lp64 "relr-text-shared" +run_dump_test_lp64 "relr-discard-pie" +run_dump_test_lp64 "relr-discard-shared" if { ![skip_sframe_tests] } { run_dump_test "sframe-simple-1" diff --git a/ld/testsuite/ld-aarch64/relr-discard-pie.d b/ld/testsuite/ld-aarch64/relr-discard-pie.d new file mode 100644 index 00000000000..b1d16e30bc9 --- /dev/null +++ b/ld/testsuite/ld-aarch64/relr-discard-pie.d @@ -0,0 +1,15 @@ +#source: relr-discard.s +#ld: -pie --no-apply-dynamic-relocs -z pack-relative-relocs -T relr-discard.ld +#readelf: -rW + +Relocation section '\.rela\.dyn' at offset 0x1.* contains 4 entries: + Offset Info Type Symbol's Value Symbol's Name \+ Addend +0000000000000000 0000000000000000 R_AARCH64_NONE 0 +0000000000000000 0000000000000000 R_AARCH64_NONE 0 +0000000000000000 0000000000000000 R_AARCH64_NONE 0 +0000000000000000 0000000000000000 R_AARCH64_NONE 0 + +Relocation section '\.relr\.dyn' at offset 0x1.* contains 2 entries which relocate 2 locations: +Index: Entry Address Symbolic Address +0000: 0000000000020008 0000000000020008 _GLOBAL_OFFSET_TABLE_ \+ 0x8 +0001: 0000000000000003 0000000000020010 _GLOBAL_OFFSET_TABLE_ \+ 0x10 diff --git a/ld/testsuite/ld-aarch64/relr-discard-shared.d b/ld/testsuite/ld-aarch64/relr-discard-shared.d new file mode 100644 index 00000000000..b5f3ad87666 --- /dev/null +++ b/ld/testsuite/ld-aarch64/relr-discard-shared.d @@ -0,0 +1,15 @@ +#source: relr-discard.s +#ld: -shared --no-apply-dynamic-relocs -z pack-relative-relocs -T relr-discard.ld +#readelf: -rW + +Relocation section '\.rela\.dyn' at offset 0x1.* contains 5 entries: + Offset Info Type Symbol's Value Symbol's Name \+ Addend +0000000000000000 0000000000000000 R_AARCH64_NONE 0 +0000000000000000 0000000000000000 R_AARCH64_NONE 0 +0000000000000000 0000000000000000 R_AARCH64_NONE 0 +0000000000000000 0000000000000000 R_AARCH64_NONE 0 +0000000000020010 .*00000401 R_AARCH64_GLOB_DAT 000000000001000c sym_global \+ 0 + +Relocation section '\.relr\.dyn' at offset 0x1.* contains 1 entry which relocates 1 location: +Index: Entry Address Symbolic Address +0000: 0000000000020008 0000000000020008 _GLOBAL_OFFSET_TABLE_ \+ 0x8 diff --git a/ld/testsuite/ld-aarch64/relr-discard.ld b/ld/testsuite/ld-aarch64/relr-discard.ld new file mode 100644 index 00000000000..288ba23e11c --- /dev/null +++ b/ld/testsuite/ld-aarch64/relr-discard.ld @@ -0,0 +1,13 @@ +OUTPUT_ARCH(aarch64) +ENTRY(_start) +SECTIONS +{ + /DISCARD/ : { *(.discard.*) } + + . = 0x10000; + .text : { *(.text) } + . = 0x20000; + .got : { *(.got) *(.got.plt)} + . = 0x30000; + .data : { *(.data) *(.data.*) } +} diff --git a/ld/testsuite/ld-aarch64/relr-discard.s b/ld/testsuite/ld-aarch64/relr-discard.s new file mode 100644 index 00000000000..0ed9b4a9098 --- /dev/null +++ b/ld/testsuite/ld-aarch64/relr-discard.s @@ -0,0 +1,63 @@ +// Test DT_RELR with references in discarded sections. + +.text +.p2align 3 +.global _start +_start: + nop + +sym_local: + nop + +.global sym_hidden +.hidden sym_hidden +sym_hidden: + nop + +.global sym_global +sym_global: + nop + +.global sym_global_abs +.set sym_global_abs, 42 + +.global sym_weak_undef +.weak sym_weak_undef + +.section .discard.got_local,"ax" + adrp x0, :got:sym_local + ldr x0, [x0, :got_lo12:sym_local] + +.section .discard.got_global,"ax" + adrp x0, :got:sym_global + ldr x0, [x0, :got_lo12:sym_global] + +.section .discard.local,"a" +.p2align 1 +discard_local: +.xword sym_local + +.section .discard.hidden,"a" +.p2align 1 +discard_hidden: +.xword sym_hidden + +.section .discard.global,"a" +.p2align 1 +discard_global: +.xword sym_global + +.section .discard.global_abs,"a" +.p2align 1 +discard_global_abs: +.xword sym_global_abs + +.section .discard.weak_undef,"a" +.p2align 1 +discard_weak_undef: +.xword sym_weak_undef + +.section .discard._DYNAMIC,"a" +.p2align 1 +discard_DYNAMIC: +.xword _DYNAMIC