From patchwork Mon Nov 2 23:30:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 7538921 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 C65939F327 for ; Mon, 2 Nov 2015 23:41:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F1B6E205E7 for ; Mon, 2 Nov 2015 23:41:19 +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 13A53205E3 for ; Mon, 2 Nov 2015 23:41:19 +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 1ZtOhN-0004HX-KA; Mon, 02 Nov 2015 23:39:37 +0000 Received: from mail-bl2on0606.outbound.protection.outlook.com ([2a01:111:f400:fc09::606] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZtOcr-000738-2V for linux-arm-kernel@lists.infradead.org; Mon, 02 Nov 2015 23:35:31 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (109.252.143.100) by BY2PR07MB614.namprd07.prod.outlook.com (10.141.222.146) with Microsoft SMTP Server (TLS) id 15.1.312.18; Mon, 2 Nov 2015 23:34:34 +0000 From: Yury Norov To: , , , Subject: [PATCH v6 16/17] arm64:ilp32: change COMPAT_ELF_PLATFORM to report a a subplatform for ILP32 Date: Tue, 3 Nov 2015 02:30:45 +0300 Message-ID: <1446507046-24604-17-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1446507046-24604-1-git-send-email-ynorov@caviumnetworks.com> References: <1446507046-24604-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [109.252.143.100] X-ClientProxiedBy: VI1PR05CA0020.eurprd05.prod.outlook.com (25.162.33.158) To BY2PR07MB614.namprd07.prod.outlook.com (10.141.222.146) X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB614; 2:uHXEtFGGH+ccAULZ3OF7QjxInaUamydJJodICYOVqU+vxCmfECoHnBVXierXAuxJwg4ZgWo3tR9Jt5CDKWpQ1MFmNqEpNW0WjklocdoD7GmpPHP+QmADG0XYSxwo3opTFIMPonvFMaC51fsjpQFWss9B9XDd35whkKzB6SIdjkc=; 3:hsAB4HG+LVKVDAfBEUTgZ4zdH/27fqTTv07kDeNd4mcBq4NP9AY//Ec+WbHBGoYONoNF2ufDDsaRfVZ5fakaIcdAL25rLW2l/JiR0gdI0PCGxowORK3cf3FV4Y/aBCPvudV8Jmhkqw/rpTWh0ux3VQ==; 25:xdJHcbpyZn+mIVeCBPTxl41Rws1Cwfaltfp5wGzRZNd40rD5HNRGSso44ACH9jTkbVbuPuhpJkWC/rgRRKnB36K2jlxz3YWPugyOxaR3WY+4xUhwizYA6IAB/PA5qFgNY8rOtCDIWEgYOIgoSQMandfG+X52H7aodbxUYA96LqdKGFwXqU1NXkO52ojTbKNNFYzKyPNDyjdseOakViDU3DV1eXbYEjEw3IumfMLFHjk6ow/piCe13dwHAtiqm9kxBJCq9Fq+GWuNMx7vHRUzcw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR07MB614; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB614; 20:XuGR3mNK/CY7YjjutrWO3pkfJ6WtJ5KqC0FAkMy4WnJKknnrGNX3QFfqq6Tavr7F6jluHfuZlhE5jCIrXiVcKCfy1iPnkNsGc6X5Y4QJCvuuXP/I+ng/pV/G/kOepBUbiNd6ACLClLbA655jD5cp48HST7S6M18cyKpI4tcNVeJhVJfO8hiyK5F52dq1Am2Kimp5t0Ak8S6RyCwr42ODHBeYIWT+JEqEP5fgoH1joKRmRxpyx3wsvOeydEAOLHE/o8VVApB+FJ8mW19yctNtiVJXvd5muTdYJ9GaOyKFMTl3ejbDtYN4eYmMnVY6yjm8v+Hb3BUt8BKkDZEuzeZtenmU8J0JryHwemcK1m88R2aTuPGucRJg2yDSAf2RMWamHvnJmwNZmndUNtSH9plWwtqB2PJ74ggbaUWZo3Ll1R138+dqi4jerG4hSHFobt6ltFV4EGF3BXMWbEqNUE46s0g4RP12rbF9jRjQ4CSiuvIgsFrauJmjB83JwoEnAQH4U6xNoE+geNUufCph1EMM69PCqCMdmH4wyWOpvVhikBLdqwnxuU/J4Gem8xQiKvcHgsXAbHLGrAllEnIioDcmikpCP7tZTnCJHrxR4smHh6A= 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)(520078)(8121501046)(10201501046)(3002001); SRVR:BY2PR07MB614; BCL:0; PCL:0; RULEID:; SRVR:BY2PR07MB614; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB614; 4:y1xXHt8sFai8Fr8nf63/TB635fVfAkMcveL7sDgU1p5IK6j9fDa4fBgq51eriqcoTMeF1RtifpQL/rQJO/2IOkG0gnZgRVTFCj9kyiP6Doq5ZqUB4JLNHQMKhoVbSJngHzdtz680qmwebTyvBXCgKYIOYXso8+9cKggzDWttsYFaYyNVUfPIOG2DDuvpp2kPdfVQ4z0cDA3YSmDy0hjX13Aj0fD+IuXM7BZds8nz0zJtHnaxr0M56od0q3cl5nqPJU2NzQuCz+7Dj4RM6aWZmyTG0LqY3loCcdSgRbT8TRqLKZxB7wNFUF1RjnqJAdoaYZzEPvQ3RRs4GKYYCm/vbNmETywaVuPDthR9fTr7R+qN8MkAmL5gsnFRnRe6IX7S X-Forefront-PRVS: 0748FF9A04 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(199003)(189002)(66066001)(92566002)(5004730100002)(47776003)(76506005)(5008740100001)(5007970100001)(189998001)(50226001)(105586002)(2201001)(101416001)(229853001)(19580395003)(4001430100002)(107886002)(2950100001)(33646002)(50986999)(87976001)(97736004)(42186005)(50466002)(77096005)(5003940100001)(36756003)(19580405001)(106356001)(81156007)(48376002)(5001770100001)(40100003)(76176999)(5001960100002)(122386002)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR07MB614; 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; BY2PR07MB614; 23:szKYXZXHiio1Qxzwqi+CsRqkCn3Wip1CGoZ/qMn7WR?= =?us-ascii?Q?V8XfjXvEfoe48bvfIjQc5Sa5YYb6yof3+epLjhGBYhcT8x5syyUjlWF5RcAW?= =?us-ascii?Q?PxkngZRhleUJwjHSlMkUGpfa1yLbH8f3TLKFTTF9w7cXLdGkptKzuvMS6k6X?= =?us-ascii?Q?QQSNR2BEoQJxq8IAPiohMI0XaF9ttXUyao8766v79kJJoCXudSRsQzftv2ml?= =?us-ascii?Q?XSw1EWvzbKtNzJZfsUYHIHhVgk0QrD/zmQwazvwTDEa29KW8iHReKBuVHV4k?= =?us-ascii?Q?6y+XDTcpQltkpiHTyYncZpEnsgjzvfY0c+k1P2EUDYU/HW0HF08N0LbQ1Aby?= =?us-ascii?Q?srUUTsJc3CBhxt96DZi1jln+kqORLz31QxMel8wTOR0q9NarTA7KrfZvKcUv?= =?us-ascii?Q?Es4ZIVaMU+i0umFdkwvW3CpV0L56MdbaEPLa+oiGJfq/aYhFEERJ4mKLPQLW?= =?us-ascii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WOrgBSXFXu+cljzZP9mYW8UHYQhLJb1cs=; 20:UmM6cUzQVe26fhy0d5+LLtQvRxe8hf0heSpvd1dGRtJjK5/nKoNbsmk2IbSxn1YU6UIM4ka9piBRD7SQfsoc5Q== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2015 23:34:34.2799 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR07MB614 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151102_153458_408896_7522BADA X-CRM114-Status: UNSURE ( 7.61 ) 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, Nathan_Lynch@mentor.com, agraf@suse.de, klimov.linux@gmail.com, Andrew Pinski , broonie@kernel.org, jan.dakinevich@gmail.com, Yury Norov , ddaney.cavm@gmail.com, bamvor.zhangjian@huawei.com, philipp.tomsich@theobroma-systems.com, andrey.konovalov@linaro.org, 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, T_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: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski 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 8f13dac..3e79569 100644 --- a/arch/arm64/include/asm/elf.h +++ b/arch/arm64/include/asm/elf.h @@ -163,9 +163,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)