Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932567AbbKQVXm (ORCPT ); Tue, 17 Nov 2015 16:23:42 -0500 Received: from mail-by2on0080.outbound.protection.outlook.com ([207.46.100.80]:5507 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754876AbbKQVWT (ORCPT ); Tue, 17 Nov 2015 16:22:19 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; From: Yury Norov To: , , , CC: , , , , , , , , , , , , , , Yury Norov Subject: [PATCH v6 18/19] arm64:ilp32: change COMPAT_ELF_PLATFORM to report a a subplatform for ILP32 Date: Wed, 18 Nov 2015 00:16:58 +0300 Message-ID: <1447795019-30176-19-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447795019-30176-1-git-send-email-ynorov@caviumnetworks.com> References: <1447795019-30176-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [95.143.213.120] X-ClientProxiedBy: AM3PR01CA051.eurprd01.prod.exchangelabs.com (10.141.191.41) To DM2PR07MB622.namprd07.prod.outlook.com (10.141.177.146) X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB622;2:4v5MBMjS16BNLjeHzzJogdX1ngrQtKE3zBOD2BIitP1fghsvAhYilL/iO32Yo5+Q7NNyizBQ4vcUTM9ML/Wj9onBrojYxtu3aQoVoRh813m0B1aOOwAdUM6slFu419NkzaHso+jHNy3GliWLA8BsBOKkV1hrnz9GCZgnNoK+Xso=;3:OS4m5k4TbI55N0+u9ZdJ+V1XrbsIRgFUrJ4pz4xKNz8iuZMWmYRZFKlWJQMt9wnovx/3QLMf/qHlgMA7jXf/HnX7xWfjVChM9mp4wB9AALgTABbxZMba/MxWk4ttPDFTALfVd9d78M1Q8Ah9QGRUIg==;25:Q5bLxTTt1t6KcYcQbtkY43okA3TEIKl5NR+IbVL+sy7OWmHTN4FBUHu4pCJpngg2tx7xmbG1SN1VZSh6J/agKA9oCvZ5t77GC3jw4PXcKvcQwVT8YT+J4eTGFCc/HmndMdqp5A6nK1XIZ3YoZdP8x1zM07z7xs/UzVNVf12w6x4C7Qidk8BXHAeJ+BrqclrkmXY0gtMpLyQaBq5dEKee+neXpzXVY2ZQcF0XBn0UCEapTMSixIE28k5iuiR2XmsBF0Ke5wLrwEAVFYTQ/sLmow== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR07MB622; X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB622;20:bL7/WDM9i4Gi9lO3eeEec61KRxCQJxyD04y+BEKjGqg7I4OeS/HBO0sycUG5QHAzUdB53Ef744X//yGewgM1tHweXLZKE3XFi27tzz8HwpHg2opaNWXXwIFmX++3mc71lnSTymsqFdCMkIosAQ8I+PSqJRGYLTglTLctsm8TtO3s9sdvoWR/n59v+40f4cp/r2/gM/uT11DUTNznQF6b1uFpnrKFG0GnIEseiwe+n2ZOOjtKmbylH9iuOXwXHWspuBGV2hcJcJKhwCtOQEXRFhsPSmwyojnkrd9VKS6tgp3BPTmSSenM7alN/CxNsbWNBMfeD1LdbvuQXc92Vpd69343yncFwzTd65qhBMY4bxoBLGFU4kQxyoBtaKk5s6yqjwCmxHwMGFcaLa/vFYhtDT+8C+ekGQRmGNq6P7lk0Chqzg9Sp5gyT60DllZT3JuDOOXZyqg4uVagpn+3S/fSzN8aTpQtpRvefXZlSgsyhjln2ADnpCU0Wy/JrThwRdc7RQR6vz4kevhOOyGRjwC/mjq2SGOND1HD0Wf0y7nLnahOFlMGHgK1aJJciGUd2nSB6Aa4o9bGI0Y78xzcZG2M8GKVtrNLdDpKtGn2t/tRDoY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(3002001)(10201501046);SRVR:DM2PR07MB622;BCL:0;PCL:0;RULEID:;SRVR:DM2PR07MB622; X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB622;4:4uiL8eW4ruyd8F5p0x8nEn2MJ2peqZL3eVI3Pht7Ru5Jnk/ceCzv1USQ/p+HQMtn8VGOsDYKiDAjUV64L8u2UsktzPG3kMRpfmMbfkA3i/1aXipeglj3j4M2hnlL527Cm/FKrH60ZbMLEb2HFfPTsUvrtDlvqWwLpULPhVIllU7PzQbZbm8Xq21GMpHMOrAB9ftcYXSjdoHO010MUhhl7UsoNFMLFYJeOfR9UnvgtAWCHPLyBLsE7MAqBxb040fTii/7gIpKt4/92w7J0kV8+u99RFMeYKKYd8xSa0jJK0yUdJbWJe/TiJsOx/xBOvM4vaU+W3CjRc3nOTfECrn/7tkiYa/a3uuyjy85ccLpQZaqcF5nk9e1Xcko2Lpr15mU X-Forefront-PRVS: 07630F72AD X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(6009001)(189002)(199003)(47776003)(107886002)(48376002)(122386002)(5001770100001)(586003)(81156007)(40100003)(97736004)(2950100001)(36756003)(77096005)(5007970100001)(189998001)(76506005)(19580395003)(87976001)(5001960100002)(4001430100002)(42186005)(19580405001)(5004730100002)(66066001)(50226001)(105586002)(92566002)(2201001)(106356001)(50986999)(33646002)(50466002)(101416001)(76176999)(5008740100001)(5003940100001)(229853001)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR07MB622;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR07MB622;23:RVqZtZLJgDNJrkEraGG/vZcIvGeubSjZgE45t/KPbx?= =?us-ascii?Q?Pjigtn93dneIIFky+wcYcqc9zwRnAc966AeCDzxQkHQ0+VaIopu6c75f+dCL?= =?us-ascii?Q?aj3W3VvPtYlcHSCoJcsVO7CYV+0mWfSijFWoL1X6s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CH3h1CPZVt6HganH7tJ2K4UAUhwBKv9+0/AvU+1B0Hgi?= =?us-ascii?Q?NXy6HUf0Y9OuBsKY3DUNhEgElvIOPPdQw90Jp7+iJAZZKjtNaSrXmIuMcQbG?= =?us-ascii?Q?9yVTtgn2o=3D?= X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB622;5:4GgCKkJTHQ4YjOy/YE/Gney2YpFvHeaXCGDt5BgMVbx58hlj41KSMsrXOx4WQ9aQ+RiFLSpk0rbXY4jzuXHGSD/YOz/ZTf4eh36FzFw8XASEppBMaGsTZKenQkB+kaMaJ3F1NyHRZ2qwRLzK++Y3QA==;24:NY0irxCood/uJSO+8002LtpEDeEUEcYgWt02yfTuhT8FBrfKTZzPDW4ALlBuPlHLt/Y3Pg1H51vsk7ApOxlC/0dJ28NWh88RABZauODv65Y=;20:yxGd82U6xi8SNxFIcrlz31kK1MWE9DuFXFO/FlXy3gesifmCdpxQ8M9uy4DPyjuOQ1FNCWBIUi7CUUxR115q4A== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2015 21:22:16.3842 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR07MB622 X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB1499;2:bOBQNN0AbnQ4EqiZ0lmazDyBwZ55zQ4r/B0mJmMAw06Z/6t/mKtXiUCjmMPG2tYmLv2XIvMEjJMKBWErbqq91TGcrx23BdF3ovSFrlPXcv/B/bbmP7DHql9sMBdJyuY3jY0K3iWAOUf4GU2wzmjYVUHy9q3I3RbTI4bjEgYKsYo=;23:86lx1sR+BLLDY9ShTQBE8S10+pMSQmXaWcZWtBRFrgBDhH334bBrpYfIzt3NcNclmtiVDjfO93iCLRlC0c+SVhCGpzryU1OF3t9dFdP8DlpuZSA+RgeocbGNQHVVxdng8JqhWjW8XehpIsM8ieeE9BKJeZrRWc7IIK1tnydsxpzkj3/oXWKZrNrm+ft0cmAL X-OriginatorOrg: caviumnetworks.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1506 Lines: 39 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. Reviewed-by: David Daney Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Signed-off-by: Andrew Pinski --- 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/