Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754505AbbKBXel (ORCPT ); Mon, 2 Nov 2015 18:34:41 -0500 Received: from mail-bn1on0099.outbound.protection.outlook.com ([157.56.110.99]:63904 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754470AbbKBXeg (ORCPT ); Mon, 2 Nov 2015 18:34:36 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; From: Yury Norov To: , , , CC: , , , , , , , , , , , , Yury Norov , Andrew Pinski 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 Content-Type: text/plain 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; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR07MB614;23:szKYXZXHiio1Qxzwqi+CsRqkCn3Wip1CGoZ/qMn7WR?= =?us-ascii?Q?V8XfjXvEfoe48bvfIjQc5Sa5YYb6yof3+epLjhGBYhcT8x5syyUjlWF5RcAW?= =?us-ascii?Q?PxkngZRhleUJwjHSlMkUGpfa1yLbH8f3TLKFTTF9w7cXL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Nc9AkcpFL9VoiK9xNiSkYU2bBzNhaze0YsvPBNiTFJbhcxlqTKbk?= =?us-ascii?Q?TuCKdtnaVlcL1lml+JdXKpHPpX9t+QlH6j58j3gfWkgLT0Tw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY2PR07MB614;5:xlKmNd48BIVY2Oe+P3qSEVzm91TK//x33Px22vkXeYEwclgeL7v2dtBAZDHIRcaqtn6X/ditYluM6czDYFhu9l6vsb6CAw48f1MLwvbtZcoSV2USW1rcQYz9Yu6kBx2A9akallLWgh/YiRI7H7G5fw==;24:vdVp+xqFW//cBcEUqm27IVurkVkQi7q/ciKX0r4yiFD5dxDercxlp4KPzPo8kq4Xc/+8K7PkVBWOrgBSXFXu+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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1502 Lines: 38 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) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/