From patchwork Tue Nov 17 21:16:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 7642431 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5B584BF90C for ; Tue, 17 Nov 2015 21:28:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8001620524 for ; Tue, 17 Nov 2015 21:28:53 +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 9C3E420513 for ; Tue, 17 Nov 2015 21:28:52 +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 1Zynm4-0007J8-Kc; Tue, 17 Nov 2015 21:26:48 +0000 Received: from mail-by2on0095.outbound.protection.outlook.com ([207.46.100.95] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zyni3-0002FI-2f for linux-arm-kernel@lists.infradead.org; Tue, 17 Nov 2015 21:22:48 +0000 Received: from DM2PR07MB622.namprd07.prod.outlook.com (10.141.177.146) by DM2PR07MB1499.namprd07.prod.outlook.com (10.161.140.11) with Microsoft SMTP Server (TLS) id 15.1.325.17; Tue, 17 Nov 2015 21:22:17 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (95.143.213.120) by DM2PR07MB622.namprd07.prod.outlook.com (10.141.177.146) with Microsoft SMTP Server (TLS) id 15.1.325.17; Tue, 17 Nov 2015 21:22:16 +0000 From: Yury Norov To: , , , 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 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; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR07MB622; 23:RVqZtZLJgDNJrkEraGG/vZcIvGeubSjZgE45t/KPbx?= =?us-ascii?Q?Pjigtn93dneIIFky+wcYcqc9zwRnAc966AeCDzxQkHQ0+VaIopu6c75f+dCL?= =?us-ascii?Q?aj3W3VvPtYlcHSCoJcsVO7CYV+0mWfSijFWoL1X6s8D1F8CdSjd3KBzW8Yoj?= =?us-ascii?Q?zC+2Lp2V1guuslfcszu/WU0Jc+LnGt7QpdCpIznQWgbdlnQ1v6IldzNQDR/D?= =?us-ascii?Q?VdqlsBCatHRIRWMQJnQHefsrSod+nlPAaJmkEFAzlX3V02u5luWDZCnAmOJu?= =?us-ascii?Q?kP7iRMLe1skkpRe4692WiFIrLPDn0teU//QEi7WMUaPEzLN2bIiSMapgqID7?= =?us-ascii?Q?JtqcCFVWb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FLSpk0rbXY4jzuXHGSD/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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151117_132239_606113_CC680C49 X-CRM114-Status: UNSURE ( 6.89 ) 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, Nathan_Lynch@mentor.com, agraf@suse.de, klimov.linux@gmail.com, 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, 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.8 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. 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)