From patchwork Thu Jan 7 23:34:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 7980761 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 611E89F3F6 for ; Thu, 7 Jan 2016 23:47:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 984D02017D for ; Thu, 7 Jan 2016 23:47:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9BC8C20149 for ; Thu, 7 Jan 2016 23:47:36 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aHKFl-0002Se-QF; Thu, 07 Jan 2016 23:46:01 +0000 Received: from mail-bn1on0059.outbound.protection.outlook.com ([157.56.110.59] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aHKBK-0004ut-9T for linux-arm-kernel@lists.infradead.org; Thu, 07 Jan 2016 23:42:18 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (95.143.213.121) by DM2PR07MB624.namprd07.prod.outlook.com (10.141.177.154) with Microsoft SMTP Server (TLS) id 15.1.361.13; Thu, 7 Jan 2016 23:41:03 +0000 From: Yury Norov To: , , , Subject: [PATCH v6 20/21] arm64:ilp32: change COMPAT_ELF_PLATFORM to report a a subplatform for ILP32 Date: Fri, 8 Jan 2016 02:34:38 +0300 Message-ID: <1452209679-19445-21-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1452209679-19445-1-git-send-email-ynorov@caviumnetworks.com> References: <1452209679-19445-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [95.143.213.121] X-ClientProxiedBy: AM3PR01CA033.eurprd01.prod.exchangelabs.com (10.141.191.23) To DM2PR07MB624.namprd07.prod.outlook.com (10.141.177.154) X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB624; 2:QE+x7RATM013d8f9QKy/uv8uCADw5AIj3Jv43RDNsW8/z/Gsu27sa/vDlQsniyRcbXy9zQ+oVMJQ9JlQeWL+2+ZPezqSZPjlfC6PhS9+ojr4Gv42LHP3BTkhEijilMpjjtdTYyFj6wx8m63fFT/xnw==; 3:aFz5aPfIQwGXsRcwzhpkpByz5YKkPTBDhnUbEvSdEpXp6x34B6BT4n5j94mo9f/Z+7w+2Sxh2wWwZ3/e0H5iePvzIlqDB9cs4b49SxY159XPtTveXCj+yl+iOYYUAay7; 25:RiLqqxw3tyY149EGkwaYACTjibriSPQ8/jwn6JvdSl7/kc1/TBWEsz6XG6oV/PwvPNaeyDbu2d9F+y5Q74P1PB/sJN3I5QgixeS8oKc2ZNvR8EmDnSlcYqozI6AFJROeEBXrYFw4FWSwbQ+ofCK/9I5ylnfFfSQxzklTl9LgwKJzsdyO0Axa2C/RQXiNLlnRMfgC2rVp9xkvyZ17/6j7CeHk8rJWkyyzFSkrExQ6/muydNdVwI6T3KJznbTvNvO/ X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR07MB624; X-MS-Office365-Filtering-Correlation-Id: 89c402b7-5c2c-4266-df90-08d317bc01e0 X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB624; 20:zzLVAPXYZhjzDaBPA2b2ahv/r4JT4OZDhdthflOb2lP1suyYMk6IXHaw80j/aumNaBKWZpFkokeHrvE4XNYw14b5jsizXq2IRS9uLrx+ghRDG++ZfPZsvD1KFPutarvk4ZL7p10Z51muITdz6OaATYo0vxjGlC+OY0yr8nZWOKkOiRDmfx6ltsmO7jYhoPYjeQFGrR9DPa6IhNnwiq+VRGLKfrQLTfc8iIySc2G51kLg1iPe15tjlI+TWNhZL369pW6hBV2J4vci0534fSWlkz0i8Gq7bbWCEqGmbBWcThjSaita5YC/vNwtezLdd7zrmcVbkL/cZUDycVu2WyJ0hgHIdryGp44gUpmVxxF4oNdzUoPsMLhqcRqLSvVnjDHDzrL3PFzS/CB3iVZUxHEsYwKdvDPp0QlOw1hhuk6rwwP3w3d3GkJE1Mwmm0nFOiitFDwIlGmvh7mq3B9tNgGHLKGC5F4mQwjuUAgXI2HpbP7GKcM1Bnr72J9nlW6rdwLfGAGxSQk3eVIZgZBRT5VhN4VSfJ8aRj/K213YptTtmKYvrCe2MQhr9a86POS62XX7xb12FgA+6nxlHrn93tvR+RxXJY/+G07gQvipev+5Y/o= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(520078)(3002001)(10201501046); SRVR:DM2PR07MB624; BCL:0; PCL:0; RULEID:; SRVR:DM2PR07MB624; X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB624; 4:VX/VjOH8vgtqrfuWgpSNN7rmaZVbkfwn0SP0SReVXI68aBsD8lsDAg3SjB4aDOw+rNfsUux39kQXJP40yTJ5a88aI14g+7uc9/D/ZoTsHGiXe0xVMq98OTCXVroQz0KbkPcMv8pEngjXv3IJqClW/xXK/XICOU7GnU1hunO4VTFrSo70zZhYPYCiyNU/QTd4anHzV9bPsRKMni0lj2jjSXJGaynTOs+o3zaiz7SXgv2g3kF7nDbdsKiQU1ViYyTovmukqug0+hV+t/zwIpK2jaawOWnanA0lYnd4Rh5zbGlO+yjnRZpr5b0Kg7cW2OfVDCl2GuPefRjY4uLeBUx5IKZmapHi9mCsTnbVHoGZdSks/3N6PQvBrD4FbnLcOWPVBbWEU9QflJ/68UhHfbcwjGO7RDVkq3MouibDQTVjBS2e9b0ZrhvJGYm+r+yASzR4 X-Forefront-PRVS: 0814A2C7A3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(199003)(189002)(76176999)(101416001)(50986999)(47776003)(106356001)(2201001)(19580405001)(19580395003)(66066001)(2906002)(87976001)(42186005)(76506005)(105586002)(229853001)(107886002)(5001960100002)(189998001)(40100003)(77096005)(5008740100001)(586003)(122386002)(1096002)(4001430100002)(36756003)(48376002)(33646002)(81156007)(4326007)(6116002)(97736004)(5001770100001)(50226001)(50466002)(5003940100001)(3846002)(2950100001)(5004730100002)(92566002)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR07MB624; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR07MB624; 23:7slb0OAyB9x5u8I/ntdo7B9GQMkVGZz/DBfkUTJs23?= =?us-ascii?Q?ONNVurvLv4NZX7wGktfTWRFHP2E2RtEgqxGcjapHaIPESvuXUsicoxe6NZ8i?= =?us-ascii?Q?61XveOJSlTJ6+44kGxK4uVgnTVXoW6bNA6tXfqca+Y3+SeEsppPHZSh/a8nh?= =?us-ascii?Q?9IRtzMuXy27/Z40jyMWuITy0SC9YVajN5tfn3PrKvkcwK2P90FQxRAuVSFyQ?= =?us-ascii?Q?XOQTgheC/vVZwZ6xeZN/uV1iyGv3Un9pjLsU/hJNIsV7zu+qYgIqbodZYRyt?= =?us-ascii?Q?Hl14QvkmidoVaSn0M6/vYmSPVoaNKvrkAyHCL9AcgcV3Ly67cJDotTy1y6TS?= =?us-ascii?Q?IPiEc10SeqqfjPhT9efueTgqm+HnY+Uq5TR1mub7ITJbkfHBpdGWCpDJUWjH?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Fs6FnZZZ4raHRTqG+K/UrjIQmA3fhw6Wnjfj9q2+d7Dr/U59BlSoWB71DnrbyMuzZq3oQ2emLtFqTE/wt54pr/app0pk5HqNA3D/stppb8nBvuMC0Bg==; 24:pfQRg16nNgqaOVn5TsJ3VXmRF7gBnLzZYeGoHs/ntmpcnwIOvAa/FKzA0vIhAIL68N8G8qe+g13tPXFiOHMW3U2fSDEWMz1TfK8E2GQ5dwU= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jan 2016 23:41:03.8739 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR07MB624 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160107_154127_454992_F8CF8199 X-CRM114-Status: UNSURE ( 6.33 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pinskia@gmail.com, Prasun.Kapoor@caviumnetworks.com, schwab@suse.de, broonie@kernel.org, Nathan_Lynch@mentor.com, agraf@suse.de, klimov.linux@gmail.com, Andrew Pinski , ynorov@caviumnetworks.com, jan.dakinevich@gmail.com, ddaney.cavm@gmail.com, bamvor.zhangjian@huawei.com, philipp.tomsich@theobroma-systems.com, joseph@codesourcery.com, christoph.muellner@theobroma-systems.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Philipp Tomsich To make life for tools (such as gdb) easier when dealing with ILP32 processes, we report a proper subarchitecture for ILP32 in the ELF auxiliary vectors. Signed-off-by: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Reviewed-by: David Daney --- arch/arm64/include/asm/elf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/include/asm/elf.h b/arch/arm64/include/asm/elf.h index a519233..392301b 100644 --- a/arch/arm64/include/asm/elf.h +++ b/arch/arm64/include/asm/elf.h @@ -160,9 +160,9 @@ extern int arch_setup_additional_pages(struct linux_binprm *bprm, #ifdef CONFIG_COMPAT #ifdef __AARCH64EB__ -#define COMPAT_ELF_PLATFORM ("v8b") +#define COMPAT_ELF_PLATFORM (is_ilp32_compat_task() ? "aarch64_be:ilp32" : "v8b") #else -#define COMPAT_ELF_PLATFORM ("v8l") +#define COMPAT_ELF_PLATFORM (is_ilp32_compat_task() ? "aarch64:ilp32" : "v8l") #endif #define COMPAT_ELF_ET_DYN_BASE (2 * TASK_SIZE_32 / 3)