Message ID | 1488395968-14313-7-git-send-email-ynorov@caviumnetworks.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 D368860453 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 1 Mar 2017 19:23:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE2602854E for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 1 Mar 2017 19:23:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B202028558; Wed, 1 Mar 2017 19:23:01 +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 2324C28552 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 1 Mar 2017 19:23:01 +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=23qf8IOoXif+eFRkrtyJN7ehLefLZMu00a5VXbOHQ6s=; b=KWAvi+ETmN03ML SVtUjrD3JSlY3YmdwmA5rRN04ZJAkesayTIjd5pK0CmL2OLSTDlDfkGLoIx44msgh6xoVPLjglhms 4imXYK4awi9ORBgwDe4Z0Lw/rcb/yPy89SsIRrg889QqYq7/2lwjpDYgqKO02hXk+ZHaqNRwsh/+C SHnNNN8R3pgitx9NVOccab8QQ+OQzHvFG9rLNDYD4oOE8DnJaU7Mt8BeRk1kl+yHDVumqNiGVik6g /Thkn2Snb7aaPJm9w9YQTptt8gupQEs/S1dqps7i1VT1UHXq5qBeU+QnNIG6D2BblDbiw0WBjoLut chCFbg5VZEwO6C2Z47Zg==; 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 1cj9q0-0002Zs-OO; Wed, 01 Mar 2017 19:23:00 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cj9oO-0001SG-0o for linux-arm-kernel@bombadil.infradead.org; Wed, 01 Mar 2017 19:21:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=JLYKsTmO7xAQnTgYatE7+N0XYhTkHhyRSEKY+l1RTfo=; b=fvnxlnTw6JKo+HwWZG42OMlJ4 UkTTVCggqOKt0L1Pm56+aNjXeQiEEpEIm9PjOViYoAASyxpJjaYQP/7tgkKrGcFpoLQgOO5h4Lni4 OzbbiUVUeoLWb3vscLNc2kEBtfIRAdRIPQg+Enzq6kHpEDGNIWXMMt+nQFIVmAK7lqKrUHXVhOw2D FTg2sbzPgoTUQs9ufTVnBLB9VNqSgPyqJW7d1oPvlBjrVHbXeFuyj/pjHk/NYLnsOSJ5F33xcHfff FjBxoIvjRter4hrcqmH7Qf/5Vw8BykQ+2dTjHEM1y5PGd8SyoiEBxrk3G4Ru7Lx7Ers7+Xu50Z0ss ftXpioRMw==; Received: from mail-by2nam03on0053.outbound.protection.outlook.com ([104.47.42.53] helo=NAM03-BY2-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cj9oL-0002a4-I3 for linux-arm-kernel@lists.infradead.org; Wed, 01 Mar 2017 19:21:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-caviumnetworks-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=JLYKsTmO7xAQnTgYatE7+N0XYhTkHhyRSEKY+l1RTfo=; b=rxCkLhT5NLCQd0K0w3BINxOfGRhnJ8wTgV2Ink+voV7ZX3BRPFG1aYyw0ux7vFdj5GWC4EzWM1Kor8HSHmijidK3/XQWjR7RK1ZlMJTirOwtoef4miAME9cpYtTzaxRfrJMBjhj1Unc1CBvptgKPjxyFXUFb1zgH/1eI5Hkt8so= Authentication-Results: lists.infradead.org; dkim=none (message not signed) header.d=none; lists.infradead.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost (27.97.135.110) by DM3PR07MB2252.namprd07.prod.outlook.com (10.164.33.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.13; Wed, 1 Mar 2017 19:20:52 +0000 From: Yury Norov <ynorov@caviumnetworks.com> To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>, Catalin Marinas <catalin.marinas@arm.com> Subject: [PATCH 06/20] arm64: ensure the kernel is compiled for LP64 Date: Thu, 2 Mar 2017 00:49:14 +0530 Message-Id: <1488395968-14313-7-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488395968-14313-1-git-send-email-ynorov@caviumnetworks.com> References: <1488395968-14313-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [27.97.135.110] X-ClientProxiedBy: VI1P194CA0007.EURP194.PROD.OUTLOOK.COM (10.175.178.17) To DM3PR07MB2252.namprd07.prod.outlook.com (10.164.33.150) X-MS-Office365-Filtering-Correlation-Id: a8e9b55b-472d-4b8e-2837-08d460d81425 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:DM3PR07MB2252; X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2252; 3:+vIkvnVYRmA5QfBXhj64sgnHjrsOsDalwOE+DsqMeOnrVw5Q6qKEzUFyDTHRs/Z5Ddm0cfQHrzi13O/0PYb2SyMzNiKv48JcMYFclTgpwWzUhH3A9Gwqmj4mTckkGzKo4LP9/Qy+8jKWWvnri8tXFyAYBVk88dc+LKbNmc3z56wtshdsnLv+4zfxK9uoB/42efofXd4+uURqONALo6ZRwvv7yKRE1pmmQx/jfbXkp4YRUxn8bRL1x0sjK+wwCzQAQBm3F4zQaSxCqK4fLVkh7A==; 25:TwKD43XNCb1c1lcBg5/8yjUqhq4SGPqrYZEicMkQJfMA2ddJa0jjWmilZhK4FsX1CKLaPWLj1Qx4rTxAmuGLmZag6mV8FxOoMu2WL/ncFih70Ba78IyUbtp4lL16P9350tVO9SmBsMDIr5n3/EJ4Y5u9CwdiXCYgVozLoimCxh2CL+NhS3bmcywTKltrwADJ/KKlvSgl3f6TDop3G+kczHd1UiYyp90GfsM6nZBvnQJXC3ndfqGZyrAEHjYeEshquJFFehtG1uL4ryZRZE2TH3Vqix0dxsO5p4EnKnX/m483BXlM3Mv7dkhcActOHOQhi2gcOt1WMdviF5+pjCf3mj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M3PR07MB2252.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123555025)(20161123564025)(20161123558025)(20161123562025)(20161123560025)(6072148); SRVR:DM3PR07MB2252; BCL:0; PCL:0; RULEID:; SRVR:DM3PR07MB2252; X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2252; 4:SuBM6Q6qBGdCiPhBtrCDUQC/E0Yb0x6MmD1N8vxPdJnAKIP2iN37kzwxfeiqnkUlsGOE3euxdsSmCZJM1fW1woy1ttCS+f7HYOruuucChLStTOo6+J+V4Akz+SnNuBukzwCY+9KS+HXQXlFCgUM2DCz5iXJiys9+0YIiMxhz8bh3hyJopazvZiQhDOMqk5PYzybyvMPq8/XtM4OBeLdhmI8diiYinpXx4cJrnUQ5Rqa53P96I7VHh/8SaLlscBCHZF/Mrq6WU4wI3ZcggRrilBtVyb/JRBSCQgGBR7CH6QGjZUesQccGbehwKbtTuR1qb4nAkXswoYz3O7nX+Ee7PE18CRfAMsM7Amg1+CisAwfU062LmD9HwzFaXfILFwBt8gkQHSLtbNCEvpRqfQxQ45To0EL4QFTqYR6Ja1WCSrLhGxj084Jw/Ud2XsPF+iKJOo4Q2h1uTuSPpOciN6Sf48zFWhJKl/SdmUX/nP6BOZZAwfSE0/izghqVJc1GM6B/4nUO1eul0mseQvMsFSkbHSGMCEhfuVNDdT4F07reVY2aZeRIF8RddNStzIip1vbZLPHJVTIrhK9cZWuOBbsJ7AI+5zgM9wb8U2Z3mSUFHLQ= X-Forefront-PRVS: 0233768B38 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(39450400003)(50986999)(53936002)(42186005)(36756003)(5003940100001)(5660300001)(4326008)(3846002)(76176999)(48376002)(50466002)(8676002)(81166006)(50226002)(2906002)(6116002)(5009440100003)(6496005)(76506005)(47776003)(33646002)(66066001)(107886003)(54906002)(7736002)(6666003)(25786008)(92566002)(305945005)(38730400002)(7416002)(189998001)(6486002)(2950100002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM3PR07MB2252; H:localhost; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM3PR07MB2252; 23:YoCXc8XhgQKZnUUvvDD1PtFiDQlBoV431FOtcPyv8?= =?us-ascii?Q?WPP1ilr9Z+9RJox60yHoegJPNY+iuFzGibgyIcFNVzZEfRWKgjb5WlJK2XSe?= =?us-ascii?Q?bzyLVdGaVMI113Fnc+LbnM60miUB7BhSnoj21MDJ0cH4QtLbJuBTvRYXNrRB?= =?us-ascii?Q?Fvp85W5Z0SlKvlbfEg3oG+RjawhyCHNupR0vZpr6gv6ti+mZ+NRhooFvYiPH?= =?us-ascii?Q?gC2VVzgmJ6ide4Fpkcp3VPeDc1+y5WdlWsx6CUWEJXODXTqF/c0qPNN5wem7?= =?us-ascii?Q?ZXogNnnt335L4CG0kOO7gSV2zt0C2QWoOOaI1k7EFwjUK/UzDm27Gxk0B5se?= =?us-ascii?Q?1iYhdVsv3Zos9lrB4d5HBCO3VNDEqIz9pn0MYoh+qNuTKnhgqseVcu7q/Tma?= =?us-ascii?Q?OduB4dHl9Atdg1XpwyEsU3DKqCsHh7J4JWlp/J6blOm9ir59cVe5y+Dlah75?= =?us-ascii?Q?HtV4Qya3Ec3Ei0rVO21t5/vF7mcwB8iB+xP9nU+6Y17CEQ0cdZ5iZoC58fr4?= =?us-ascii?Q?jW+4dF3M21afy/ad/yjf8y3vvPj7ZNEBBSsGg07joNiYEgoiY2ULH5WHw47F?= =?us-ascii?Q?cexaq2QomuXQ1hk0eyCtePwXKxKRT5wOgdqFo1lRSRDtafmaETO+qmf1YgHA?= =?us-ascii?Q?kyU2Px+RfU7JJc+vlyvCWsjzX++bhwT7kC2uUboRPLDN9n6WgfxvNzCfWthh?= =?us-ascii?Q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CbKaNnnVtx1PTso6pWJzKAA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2252; 7:+oO1PHMvw4Hlizn36ggFYrEW86Pkvseg8QYE57Iv3JnfOSiTqoaqCYq2noh2mL5BCDsOJMH/9gBEpA7geu4SVun6a1H/qs64MLyzQCEVVt2iXlPIAmU+Vm6j3hViB0WWWYpO5JMGKWvhrGSSUfxF35c/2AEue3ubNX6Th5ffd17LvVSBDwXoKejYE9o6Ot48rbJCUQiSOKWzrmR8IFsL3VR1yBRIiTFfoD0xLq5mKw1tBHkbFhLgchUoXfTy8PLZAAkGdHY0qA2KeUYTUZyuK8wZeic2pZ2IusfLnzcztT0b9dp+uf1DYp7cpJ2dIYqZXQ/2OHH5+ax3/K71BYH7Fw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2017 19:20:52.4357 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR07MB2252 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170301_142117_824697_B00EE6C5 X-CRM114-Status: UNSURE ( 8.11 ) 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: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Andrew Pinski <Andrew.Pinski@caviumnetworks.com>, Heiko Carstens <heiko.carstens@de.ibm.com>, Chris Metcalf <cmetcalf@ezchip.com>, Yury Norov <ynorov@caviumnetworks.com>, philipp.tomsich@theobroma-systems.com, Joseph Myers <joseph@codesourcery.com>, zhouchengming1@huawei.com, Steve Ellcey <sellcey@caviumnetworks.com>, Prasun.Kapoor@caviumnetworks.com, Andreas Schwab <schwab@suse.de>, agraf@suse.de, szabolcs.nagy@arm.com, geert@linux-m68k.org, Adam Borowski <kilobyte@angband.pl>, manuel.montezelo@gmail.com, Chris Metcalf <cmetcalf@mellanox.com>, Andrew Pinski <pinskia@gmail.com>, linyongting@huawei.com, klimov.linux@gmail.com, broonie@kernel.org, Bamvor Zhangjian <bamvor.zhangjian@huawei.com>, Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>, Florian Weimer <fweimer@redhat.com>, Nathan_Lynch@mentor.com, Andrew Pinski <apinski@cavium.com>, Ramana Radhakrishnan <ramana.gcc@googlemail.com>, schwidefsky@de.ibm.com, davem@davemloft.net, christoph.muellner@theobroma-systems.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index b9a4a93..c89734d 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -48,15 +48,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