From patchwork Sun Jun 4 11:59:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 9764799 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1D42E6032D for ; Sun, 4 Jun 2017 12:01:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 11DE228111 for ; Sun, 4 Jun 2017 12:01:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05F9628498; Sun, 4 Jun 2017 12:01:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6F45F28111 for ; Sun, 4 Jun 2017 12:01:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pSuhNDGzkzugrCqFkAFJKQyGEse0O57iaWxUnlHOBJA=; b=apX0CJS811Hncz Fc6jY9j7005eoIVFKnoSqFYSxTlG/AfQSrNRJMoR+4Zmre7toAuzTIxrIRQJREQ3mVvhFdlCfs7Y4 3N7kQkuvZfcdqMyVTjAGQwlQQheMHERitL/6P3qFLP7bPTp7jbxVjARgY0E8WtSaM60sjXL93IGjr FaFhGpZJ91ROPNpD6eYz6XJkCoLBRCF4dIuitKqMAGUDjiGaERQ00Z0D6DPpX3xC4iXVKDR3znUem hSRTmK1eh6E0mI6sAJkZ6D0FgNqSWjeTAm1704Gx3k+USdzW9XG2ius6ANFHQ+iDBv1kN0CMsYNba 4y3JIQ2Fo7KB9+LW03sA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dHUEF-00085a-6V; Sun, 04 Jun 2017 12:01:55 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dHUE8-0007we-Mj for linux-arm-kernel@bombadil.infradead.org; Sun, 04 Jun 2017 12:01:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=s9RfqUUaB/klcQr+G6MFhjL/JMc0S5GQEMdW+UcBQVw=; b=koXGek8a0b/K9X77JobYAed1G pV/Pp0qe9STE372d9Hk5kKT7r1jFWnFO4QDr2L+0U27GsBTnqSD0yAgrJlG/kmO3fUSELNdyScJaY eUfemTJ4vJY8xg+5BA/2JnmFkQUvgX0rsz5f56j7MhnDzD5M9dAnFft0tV890Q5j03liLhKtjoCLM AyOgZqWmhylHVqQS9dzbNpMrYcjRATdyC9vcfXD36FR79EO+WF6IiQUsKrXbHlAXqgnlC5UW7WxLf 0I7vImNnfsjqOdYeNQKtdBikqy4CTDWB+Uendyd6CZd2fHRdS8P913tAFsfPoTSiTPkH1QWrD8lhy cA/rLJWaA==; Received: from mail-co1nam03on0044.outbound.protection.outlook.com ([104.47.40.44] helo=NAM03-CO1-obe.outbound.protection.outlook.com) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dHUE1-00087Y-ML for linux-arm-kernel@lists.infradead.org; Sun, 04 Jun 2017 12:01:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=s9RfqUUaB/klcQr+G6MFhjL/JMc0S5GQEMdW+UcBQVw=; b=j9H3GCnS1BaCZRMQdE8vXR3+Te8l/eP7OzTUkrDcS69xzTDe2ooybsJK/mfxe47h6Pmagdx85jrd8ke6jSSxvkIikOPuQr9SrB8d17qIhWtOL1930EoFFT8ZocljXi4aXvaiX1ATPWzqTnWy/Y/GG+JgsR/0eJfMZD3VTx51XJM= Authentication-Results: arm.com; dkim=none (message not signed) header.d=none; arm.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost (176.59.55.28) by BN3PR0701MB1266.namprd07.prod.outlook.com (10.160.118.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Sun, 4 Jun 2017 12:01:36 +0000 From: Yury Norov To: Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Arnd Bergmann Subject: [PATCH 06/20] arm64: ensure the kernel is compiled for LP64 Date: Sun, 4 Jun 2017 14:59:55 +0300 Message-Id: <20170604120009.342-7-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170604120009.342-1-ynorov@caviumnetworks.com> References: <20170604120009.342-1-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [176.59.55.28] X-ClientProxiedBy: HE1PR09CA0068.eurprd09.prod.outlook.com (10.174.50.140) To BN3PR0701MB1266.namprd07.prod.outlook.com (10.160.118.140) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PR0701MB1266: X-MS-Office365-Filtering-Correlation-Id: 448655b4-9f86-413a-d4cd-08d4ab4173f2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BN3PR0701MB1266; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1266; 3:4Hz0LGgGzXvVYoxu/kSSHnfM59stQEjfv6ZIskAAX/uw/GqKjBpSMKj/FS5KGr24RY8QvFMSb0L2PbyZC2ptZcZsuv04/rcEuwCz7EeT2JpY9tlYbzqXx29897JuTy5O5fqZqQEhB596Iu/Y20y8YtPnXG67uN+12DFmHKcoaKLfEPX9wfwR4AnFGBbW6HlR1RdZHRtf/TjOPYt3FzSECsrg64LSdPaIWpGy3PqF3qxTsLxOddBPenJTlo2eH6tBQ9fR9TMVlIf1g6HAbIfaBAmBVCuD3fCM4K6wtt6YtTjecVj4rjHadzqOqeP0Ci8OPlU2VvmDf6lbtYV86KliEg==; 25:MA94ZuoyT1dJIVoiuFL3RlyRJaUw4NIUb7fxrcaWdgwElsOdEd5XN+nvUfNwIzeQd1w2ljmEnE+08LCqqhZSyCSjVoc9NXOM+CDxL35fD+yvPO+aGaspdY8Ivm23WnLrE394o4R9im3KqpOMKJ33KYjZ0djU+B7ajn3NaaQ4WPEdBwIzNKKWqVziSo72ZPqXQvbaM4kXz5soZ18OCvwiWjC8BKkdjhynIvRMJfbWubdA6143h2h5F3/PrQl1zdoMHyeY9wyoNs1w4hputjbrIDAH0cLdGxlSRl0pWYNjlsxCjl19lt9qNwYC2FVop8MwZ0WhJKbrXEF535+5A+2TTQUpMIRcWsiUwZp5GZ3O0P8ipWwyKAjtI57RVsr/t/wEeU2vqo90+OsYtSozxKEY1pvxSm80sI45+jGKKsKdq5KyzkkpkkbiBW6tOg89xy5zDkP2UKSb8uMJjt+Qj8cfeKHiK9Jw1iYwgjlc6nIRrVA= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1266; 31:TA+AtwOkpPzXIBJfZ8gS+jv4YAp4QD/nGWLjSMz5//2AIqN7DhYKnUole1kdHUf1nbjCFPALWpjt6LemPbyUEEiF/jeKOK0vqnQuW+GvqoBkBuBkyrQJKWB3XISKdyJsuAis9O8mIrnRWTGwazEJw2O5JLSWSuW0uRtFilHABHAqyiJ36Uu6hK5wboNbiL0vQseFJtqoGaeMWP7vw7DYkGwEyq6IaXAqdX8Pa75v3l4=; 20:yNsUmgeYWk84okafFWMhht2djRGZDL1sPBRVu3jKAZYraTxdgK62Jn18wDFZeJt4eRzxqNo4EDbLTShlJoVGGuTI7MzAaxJdqIQhUbRdpB8IkCUWxcmVKYLvz+odcug02amEo9TNKrUNGZe/Q2ihJov7Ujt9PmNYW9IpdKWXKYK/bTRjfXOj+2l3igMtIuE0SN9YyU8szHi7dungZTc6/wercNv7ImD40mguKau3g9BPOX9c4ms3AyzGuit5+/widTVDfwskCoRuk6Bd2GOEEN4nfTyCc1rwZo+3rXmUdbMhu+AuT7hdxt21FmGbTNrlP/jPOxVxBh+j/4pRPV3Z0YGnxi9phrjKBysILmN3+GIVef9aPJR31GlmyStcc0lVgej+ckw5aGf/0Ph33gmly2V8JHbj6mIJrIjvWmOeOtUdotefo1W7wLXIEBOvq8yNzzHJuEyAT2R+AmRHORCqbjFlg4tSbZVyJW3uzol2xVzwe+QOdoeRY22d1wlQVQ1tGk/KZEcC/JH1trU92rCRuRHh9pKoSfA/hJlI/HHIk80qq48t7RrAPb6wqCeJEJ46OTHxUaEj/JV8x+kVTeMVVyNsBiJzyvSAVkCSvDMcHj4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(3002001)(10201501046)(93006095)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(20161123560025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR0701MB1266; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR0701MB1266; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1266; 4:q5QqzEa8+0mocZC5k4tZNsBNy9V0AL6ifFZLaynp?= =?us-ascii?Q?aPzFWe1PluJ2vPSjDckOjmzo+KZBj4Ff5V/KpLBovl2Hnd7GcMgPBb7C6p50?= =?us-ascii?Q?U1CvTS6QZqimlcl5BfBDckC4p0QvIGr3CFqnxJAIPUFitRdHD5Vf3JD6286r?= =?us-ascii?Q?IgP30u63U/vRM9v2txlajHcSUMgdavYLaeQVNtktKWkSqCPbHw75nbYXnjLn?= =?us-ascii?Q?ieGpLq2echKWI1wLi8eaGKbB8qruumkdAAMPoP/TujQec2avl2kYLO1SYAee?= =?us-ascii?Q?PBRFycM0zhtVIe+SwehJrLTHmVbDZdvIPCo7cYMpntKt1jcTGKgoVFByLFtR?= =?us-ascii?Q?/TWa+X3eZX90aEnOZLlLHY6saXJLYGuUM7QCKBkEHIQVxRsIY4udam40wJ9I?= =?us-ascii?Q?ml9ZnayjiUx3jKNrx2xHd8IRSgWm3+6PKJZ2TjekChuVgfLq0SeH6vHL9CYv?= =?us-ascii?Q?t1N50lTr+m5VOE68Hez5JxfT83tAO5PUoqBG+2zff7ilEpyb+dRwsWkzalTw?= =?us-ascii?Q?Oq37FAN0h6RZtELWS9BKUZgsGLyy7/o8nXbP/5wZDc9sWZLCqqhZEM0uMXNg?= =?us-ascii?Q?CflW+JAaemm+nED+cIFixVjDODf9evHo9/5lhcMP56pvb+ZI3vaW7f71dkhI?= =?us-ascii?Q?gZXt/Gt58h396LCYat1VLnkBi5NGwDNFaqqlESvvv0aK/hBuJy0lA+h38ueK?= =?us-ascii?Q?S4tWxoGDjOPSgaGIzHDifkoQwqc0tHzRJ6wlKJMvPrAPaQLMUX/b+qmD3tN9?= =?us-ascii?Q?m1p27WViNhUJK/ihlSeGJGRZHf8WHXUdmC/RPQnCdZT6LGrT4BEkRDk4AHG1?= =?us-ascii?Q?KS+sW0hHh6rIqeDdQ6YtzI5b9yokgY+UrnY+OGQb0ieGckKii0eCMsvrN0NZ?= =?us-ascii?Q?MMous3cXXb/ji66IK6NoFH/5imHDRE3QZ/CjdZgRzOM4xOWTGo8Y/gVZz9vA?= =?us-ascii?Q?LPlKT2wDD8zFjYUICiyAm6VaSoj+J9cOnywT6rCjLlwg4CC93N1YrJzL+Qd0?= =?us-ascii?Q?6ekf0L3w5+FM1unyEhliHlpn6yfe0xsE6cUrgzAYSMJPu++bA0iXIuctRUAr?= =?us-ascii?Q?TMTKduulWhKUmM86wtGqzbRZbFjJsB2YvDqvcqu+FrBYPpd6y4Fc5DnxFmHV?= =?us-ascii?Q?7HbL4NfAonI=3D?= X-Forefront-PRVS: 03283976A6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(39850400002)(39400400002)(39410400002)(1076002)(7416002)(50986999)(76176999)(72206003)(2906002)(305945005)(189998001)(478600001)(47776003)(5003940100001)(5660300001)(6666003)(6496005)(2950100002)(42882006)(42186005)(53936002)(6486002)(38730400002)(107886003)(33646002)(54906002)(76506005)(48376002)(4326008)(8676002)(25786009)(81166006)(36756003)(50466002)(66066001)(6116002)(3846002)(50226002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1266; H:localhost; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnost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oJ5JXnGG+SZO0bFJy087LppJAuN/1b/s+Vzd/3hfI2R9l0FDKS0nItsocSLKX0PEZvk7Z45tr7yLsvLWQ9aydqMw741lC5TXYSb553YIPOAHGZAhksmeEUq453IQV4QAwZzhnZL7ziZlJpXhhE6U6b1O8oQeL1on0LpXwyOBrpNbDmYZzGuaVMrEs4uUaPQZngfHOdhRNrGR5vOCfXW1wytYXdUYAtbBIS0QROlkv1z8878SuBLIAuvk/Mpw+R2IzojDsymRw9rCfFd71TL1B8GBvvePlxpwF+l7GIS; 24:1ffkRE4HkSG+H+6l8kjlTVjWQZCTutj9buWI0wBCMSecqII/B8ZKl6V7RwVeV2YEHvwRn3Bb2JAOkxHzrgxHUtNvNV5CvOV6eGlfcf6EMmY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1266; 7:nHp4FCyvcwYne3gk3FyiUP8l7kBksSmpDChTuN02uVlgeB7jcgDOimaj84bfsW622CwaB0EKrgW/uR7/gKKMQh2veUYnDPo0jaOXBRaWaWCW+H62oOKTliKOmanw0pvBZpV0kRzxYD0hKckukfaK3MLzPbaiLPf7y6o0/78CVb3gZo9iY0owIZ8lA9Y7AdetiOnddEMaDZ60yhmN4Z6S/tAFKSIsQuw1pjus/ru/fTX6yTpwekD5dQCzz39bG2qU2pfqaaVPkt7mb8JYq1J3A3frue5z82csOmGVPFlSZnQwXACd/L2kqT3/sRILcmuWPedLihsNQe3GH4EfRD2vDg== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2017 12:01:36.7913 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1266 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170604_130142_233626_B6DC4B82 X-CRM114-Status: UNSURE ( 7.40 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Pinski , Heiko Carstens , Chris Metcalf , Yury Norov , philipp.tomsich@theobroma-systems.com, Joseph Myers , zhouchengming1@huawei.com, Steve Ellcey , Prasun.Kapoor@caviumnetworks.com, Andreas Schwab , agraf@suse.de, szabolcs.nagy@arm.com, geert@linux-m68k.org, Adam Borowski , manuel.montezelo@gmail.com, Chris Metcalf , Andrew Pinski , linyongting@huawei.com, klimov.linux@gmail.com, broonie@kernel.org, Bamvor Zhangjian , Maxim Kuvyrkov , Florian Weimer , Nathan_Lynch@mentor.com, Andrew Pinski , Ramana Radhakrishnan , schwidefsky@de.ibm.com, davem@davemloft.net, 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-Virus-Scanned: ClamAV using ClamSMTP From: Andrew Pinski The kernel needs to be compiled as a LP64 binary for ARM64, even when using a compiler that defaults to code-generation for the ILP32 ABI. Consequently, we need to explicitly pass '-mabi=lp64' (supported on gcc-4.9 and newer). Signed-off-by: Andrew Pinski Signed-off-by: Philipp Tomsich Signed-off-by: Christoph Muellner Signed-off-by: Yury Norov Reviewed-by: David Daney --- arch/arm64/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index f839ecd919f9..5ddfb3140f7a 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -50,15 +50,20 @@ KBUILD_CFLAGS += -fno-asynchronous-unwind-tables KBUILD_CFLAGS += $(call cc-option, -mpc-relative-literal-loads) KBUILD_AFLAGS += $(lseinstr) $(brokengasinst) +KBUILD_CFLAGS += $(call cc-option,-mabi=lp64) +KBUILD_AFLAGS += $(call cc-option,-mabi=lp64) + ifeq ($(CONFIG_CPU_BIG_ENDIAN), y) KBUILD_CPPFLAGS += -mbig-endian AS += -EB LD += -EB +LDFLAGS += -maarch64linuxb UTS_MACHINE := aarch64_be else KBUILD_CPPFLAGS += -mlittle-endian AS += -EL LD += -EL +LDFLAGS += -maarch64linux UTS_MACHINE := aarch64 endif