Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933871AbbLOVvi (ORCPT ); Tue, 15 Dec 2015 16:51:38 -0500 Received: from mail-bl2on0072.outbound.protection.outlook.com ([65.55.169.72]:37135 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932469AbbLOVvg (ORCPT ); Tue, 15 Dec 2015 16:51:36 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; From: Yury Norov To: , , , CC: , , , , , , , , , , , , , , Andrew Pinski Subject: [PATCH v6 19/20] arm64:ilp32: change COMPAT_ELF_PLATFORM to report a a subplatform for ILP32 Date: Wed, 16 Dec 2015 00:42:45 +0300 Message-ID: <1450215766-14765-20-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1450215766-14765-1-git-send-email-ynorov@caviumnetworks.com> References: <1450215766-14765-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [95.143.213.121] X-ClientProxiedBy: AM3PR08CA0037.eurprd08.prod.outlook.com (25.160.207.175) To CO2PR07MB617.namprd07.prod.outlook.com (10.141.228.143) X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB617;2:1q1IqFRBBQSSIbKq7qA/ApMxdLLBy3cTL/u1GRulyfCFC5z1JAIbp/oArFJ7fyqcRQ1btQkJNdFmPR11e3XmdJ6OFkMnMv/taa4qSdMILj793Y9Z3yTPIiYwwU7i170brj3/1zOHPX3DyfI0yLFRPw==;3:Ke3eEyxq71m+xBARprCqM2a7UN5HxJEWBrCN4l4uYNYNUpK56RnEQvjSsClWYnYHRL+LDNnjo/EmxYKLITNZXvu0MGdN7B+4aUiQ5wRBzbZW2Pp317v/KLWDSq7Koa0G;25:2wuuHVTZ2QI/4vg5Hj/+2eu6Z8Rj6AEhmuHyW6g58nl4ANoLQtFgvIiSjiXtdp2MP1hB/f8vFRK6pVPcYXSikXCxxxtc8tUyUNt5No2UDopdHGuJTOisOj3ucx/ALW0+3VM53FnMUx4tXp2G4aKguTJStd15eeQ8RlyJ+TPt7BJ49hgGE0XTMMZksw/ou0QR6dF9uzWcN2scAD5jym/uGSCkQyXcFqbJppGpZ+983qQUDOVXOizxXDRDIr+eMEw0O2+wGzzcdlZBCYTM01iCEA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CO2PR07MB617; X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB617;20:+ZEgeOu/XJuHrI+QOZ6TSsH7dHFNljSbEStoxzuvzoZTKtvGGciA3wEz6kub9+m0AQUl5DovNEWX5hCgLfObYMcI/0hArtARYsPwCm8HJqJ8zQQdcuyktOr5j2spxbbwju9sKlA6CBNJk6ETxsH6mBdhRPisps+d/fRdXtbEWfeC8VC+t/eEixyIRV5QB5G029v06LnzxAxMoRXcV2d0qefhfroerfN+icwYEhBPB12RR+doJd64LwrPpZfGjSuSXKPtxGCi8rl2/Z3vWTqhHsZeesNq8ud2lDdRiflVJURe5pZ8W4Ou0VEIHW2fYw6SZdoDlr5GyS9BhPAlPNVVBmUn9g5GW9iYkGAG/PSWruhN0Azw3oWYUmPLyanREaiOYfeF8pQJ7R9+4dD6xlAOHSeqqj9tJY4oGEZkdwgPhUz5gUd7yDL1rTXoDiq41SEkoL9dy6hGpqUb99Q1T5IFhzGL8IP9gd8u6+mBAkBkL7rKD1lkj82gIjmJvOjFjzOKZDPlcQGCQCmi2zo5NZebKlzYRS3QnotufTPofExh3KNTumKTvuGa/pmNPCa42mn/PgRxIxU9XlGb3CPCkYK94DLAzx8ZVUBnhT8RAzM5DbY= 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)(3002001)(10201501046);SRVR:CO2PR07MB617;BCL:0;PCL:0;RULEID:;SRVR:CO2PR07MB617; X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB617;4:IAHbKYPfGsLQPVuetBQGN006n3dmIiBdMhvt+io0mwpChqWuiB6oxL716NwMordQBUtbHbwKLOVxtc3+iW5Wj2Bu5U8+gyGN4BvF2rRnrLsVDxW8wVfIQLdo3yFQLqkOA3k2HRNu3Texy/kAIZ542k1Z2KbEMsohx9OH9eToclqRznAHCbRZwZRBZxLwAPglulth2LIANDYMk4hpa9ODt6s7foIboLO4Qr0AVhRXTE4On49w57+06FeC0xMtpk+s7Lfwa5w9IStQajpQd/nr8OgN8eGTX5IRlIpW4tE97t307kMyna9hGpX6Tt9jMk8ygasPKuvYwBSDiC960Jvz3N4EEqanGTouPV+4A516//qRp2g8yhFTrN1cY/0IwvqaykjZdintTZheQov8LqLTlsfAPr+K9LGKsvl3Tnoy4HdtIFUIgRxkbzK3vhdt06O8 X-Forefront-PRVS: 07915F544A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(6009001)(189002)(199003)(5008740100001)(2201001)(77096005)(2950100001)(19580395003)(5004730100002)(122386002)(5003940100001)(50226001)(50466002)(106356001)(1096002)(19580405001)(48376002)(42186005)(76506005)(50986999)(6116002)(3846002)(107886002)(4001430100002)(47776003)(586003)(36756003)(101416001)(229853001)(66066001)(97736004)(33646002)(92566002)(5001770100001)(87976001)(81156007)(189998001)(76176999)(105586002)(40100003)(5001960100002)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR07MB617;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO2PR07MB617;23:8Crou50lAQPnZBzQZnZPCLkBTddgGE6NFsf3V2AaL7?= =?us-ascii?Q?OOKlPjV+bPRVa4qo2OHuYOxOPLaznNWrUwl1TRZMi/FWOa9Nq/TNEo+fPHso?= =?us-ascii?Q?Fhoadgfn1D2hFIxrNKnrYq86T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ascii?Q?WTNOSFynFHCf/3LGOS1pZPU8ZsGPVt50oJSzj2kcPQ8xjHdeqZ/nqKmzCeCu?= =?us-ascii?Q?K2UYB7GcxhHLrIzfWifkb/yZS/Xdr/mVPzSRskO2Jv1YH4G2LLMLV1TUSvmn?= =?us-ascii?Q?sfZ8WMuTm9TC28hA7Au07uHxCqOuzf?= X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB617;5:IsHVLeKgl6YFMYReSK8vStsHghq2rUNkf+CHjG0aiCNW4ex5zbv4ui1SM4DgDu9X9Fm0YjPSRwy0c4CiVT80MfcYlniHrI35qwOvU6loe+BEzGmWG8vzJhef8QhiIkscKfjuwaFdPHjVNjpXfGAgxA==;24:4X5OfQa3eK5wwSMPn2fqZUSFdWWT5FUniQZklpTXZSbhJF/WZCpUgo/vkabi0mspX69vqTFk+IhHUjr+GaBp8+SE+YsUQegh0yQ1Uc/i8Zk= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Dec 2015 21:51:33.4207 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB617 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1505 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. 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 4e2e3c0..1fc6b48 100644 --- a/arch/arm64/include/asm/elf.h +++ b/arch/arm64/include/asm/elf.h @@ -164,9 +164,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.5.0 -- 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/