From patchwork Fri Jun 17 23:54:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 70382 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp518104qgy; Fri, 17 Jun 2016 16:55:27 -0700 (PDT) X-Received: by 10.66.132.7 with SMTP id oq7mr5283454pab.26.1466207727201; Fri, 17 Jun 2016 16:55:27 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id d81si8058625pfb.192.2016.06.17.16.55.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Jun 2016 16:55:27 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-70762-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-70762-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-70762-patch=linaro.org@sourceware.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-type; q=dns; s=default; b=xX1Dj S5YShhRddpZ3LcAVpQDP+ZZh+mZartCKCuc9grU8Q/PDQYflOGHrxUbGGGJ1coY9 j5lU2zsAVPXk/6oCLjLzUXjJJtOpvP6NAUqJ3ZqDGu57NKfF+HKIk80OUaqjBVWP 032+sKjr4fYlKVCpIQQdEZCDqAfTHa6PORdET4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-type; s=default; bh=z7A3blKg5v1 9oMh/gRD/JSUDLlI=; b=HwXbL7kNQnzWB6vU0AH2nQq6vCCmMOdBhjkjjhUn0MX NnHxdbA/wgpWrUTyia02wyeF74Qnmrkfio875Z7xHzQ1XanytUTrWmTaf39O9La1 uMTV62sWgKY3qYXTDGlKTZzkLwxF5u1n7jNOvJ52VNViwC0UxA/2w0vDjdD5KIFA = Received: (qmail 89410 invoked by alias); 17 Jun 2016 23:55:08 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 89293 invoked by uid 89); 17 Jun 2016 23:55:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL, BAYES_50, KAM_MANYTO, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=no version=3.3.2 spammy=H*r:sk:na01-by, H*r:207.46.100, H*r:sk:mail-by, sk:philipp X-HELO: na01-by2-obe.outbound.protection.outlook.com Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; From: Yury Norov To: , , , , , , CC: , , , , , , , , , , , , , , , , , , , , Andrew Pinski , Andrew Pinski Subject: [PATCH 04/19] arm64: ensure the kernel is compiled for LP64 Date: Sat, 18 Jun 2016 02:54:13 +0300 Message-ID: <1466207668-10549-5-git-send-email-ynorov@caviumnetworks.com> In-Reply-To: <1466207668-10549-1-git-send-email-ynorov@caviumnetworks.com> References: <1466207668-10549-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-ClientProxiedBy: BLUPR18CA0036.namprd18.prod.outlook.com (10.162.230.46) To BN4PR07MB2242.namprd07.prod.outlook.com (10.164.63.148) X-MS-Office365-Filtering-Correlation-Id: d384d343-0c98-47e4-24a0-08d3970ac732 X-Microsoft-Exchange-Diagnostics: 1; BN4PR07MB2242; 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AgijOen8NhqGID+BaD/3N4jlvgFonHN0FMrDpz9RHm9+t44CRZUbuynv4YT3iDVgaHF4T8rI/8oa3XPeDybdiovf9UrEQvNXHRBE13WkROaR+4WffDWGsLWPtMZzEkUFAVvYh18Gqr1T/VwTSlv7fZccfEsU/3B4gXSkxWyT0yydPMieUOi+DcCuGTK4GXkodBB+92Pvtx1XlepiZDHQBUR4N2FQtVQcVx/ppPG5+Td9veVT/ZZo4i52SKheb3aI+K0+OSDu6Gpdd1VMy26WGLYVGfj/xwV64csukHT9n1MFJ28fTne80a0usoXDx7fmzDibzZhhEAZ3NTGCprF3DKimMZvfVqqg90iAhi90DkFntP9basddBTKqRvFMtrxHDAc8K9lve74= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:BN4PR07MB2242; BCL:0; PCL:0; RULEID:; SRVR:BN4PR07MB2242; X-Microsoft-Exchange-Diagnostics: 1; BN4PR07MB2242; 4:PNw5UKqNms7e1Wh2AFTHi1056sfPZKcCbC00Swx5JSA322z7ZsKZkv+g8cjlpRvPBT3+l1op2RDMEpwRMaBIRmSqTY7O2qPGp3DXtZk2Fro8hAA3/0Uir4iASoijGgLd4i6BD/oYVWa3ozjGSgyiRUlVDXc8FbpmQeO5rrhg+mP+2Jquc7ZWzcJ0feXPm5I8oxBXBRf8DYh7II8CPUwzdcdRfTEVmVarE1c5OjFj51GZP9Tv8g6faA0uFFMPZOSLRvqQGLUE5pLKZI8DlsLwSIbwXYkJkUQIqHG+9gI/mkv+EVeeXPocn0T4qBKE9rfoIcuJ0x3r5IxTe5RC8jIxzHh+P3Hmt3n55nIiqzeN4KjlnQotENsUQq+n3+qM2pO3 X-Forefront-PRVS: 09760A0505 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(199003)(189002)(50466002)(105586002)(76176999)(50986999)(92566002)(8676002)(2950100001)(2906002)(36756003)(97736004)(5001770100001)(189998001)(68736007)(7846002)(81166006)(101416001)(81156014)(106356001)(66066001)(48376002)(4326007)(107886002)(33646002)(50226002)(47776003)(76506005)(229853001)(19580395003)(42186005)(19580405001)(6116002)(3846002)(586003)(4001430100002)(5004730100002)(5003940100001)(77096005)(2201001)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN4PR07MB2242; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; BN4PR07MB2242; 23:nyMFZm4ioy9nnZ5fU79voMDazX1owAX7Wwdp0gZJy?= =?us-ascii?Q?8acnWwfRON8cFDvsV/QS71xtE6L/SMLiKd8YwdcNEh5JNSWci5Z7lGnD+DY/?= =?us-ascii?Q?XNfGOG+rrz28CjPYEpKWg4QjEwzShegRiVVLDgaP8DS3ntPQ1qEODSyybg4f?= =?us-ascii?Q?CONJiCBTPI7Vn0TorvbOxUHjufJfB0LrBwJ4suEFisgE3QXsGq+0YH3JbaQr?= =?us-ascii?Q?/hz2WnnXUW9oPCAStlYV3DP/pMkSjRD/kDEClpNgjsmAXBCeWd1PAIkd89YQ?= =?us-ascii?Q?4FunqEZ85Jplv+IR0ljEou+Sk4E9pZL7pCIAwYx6DSWXfmLh1MVLdMtuGtPa?= =?us-ascii?Q?k3pZtdLidvQQhlMtDznYbIz5O85JYy7jQfB45HPkBb3JEeMfCc2FBM/r1Yjo?= =?us-ascii?Q?D2ffWaG9+/35lzdVlQ/3yCzxDzdc5RdIi9OTo+Fl0FabUCSqCXJy4UA4V0ts?= =?us-ascii?Q?3Y8AxLgaK8An72sXdgtrNsY343bUIs5b+WXy3+pTlBRO9Gk+ol+9od96DNhV?= =?us-ascii?Q?wa0EnfAtip3grSw0sdYeV9+zikH39qKIvjquNsFO6knaKi/D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Bfz2zK+8Rv4tn8KuS+uhis=; 5:yON+6jpvKl6MixfIdautAZzV0pdh329RrY19Kaldv2JPlMCFF0b6kepvkWLvMvjfQ+XQM9P6r3VsdHvHZbDl5vqFc9pQld/RsJ8Dd6eJof9txLl9WZfylVkeJjLwlyT5GXRIo0hyamV/pGJ+zNsITA==; 24:dLfV6mzRpyiQ7fmpSVYKjt4Hjhcniq2m1ZdedoZKsYm4WC/YEyzdSPGoMYRCBKX4CMzjYtje/MLzh02MbCsl5N6o349dP9FsrrfXHEWGiR4=; 7:/5QSGQvpVRd/+BuW8AhAsKVzLFMeUsc3FBW8PL2CVb+OKYvcwAqsA0vrhcyDEqjAYSVrQtlHavuzAvIm24AOZsAadxxHNNI61Dkx640qGhxqdOHEFFVcdSwLqdMSUKGIDUH2mb/tUd1UDTcsiOVqtn4Q8ygYimcUvdKOfRctPzOrch5o+GJIJbo7DCrnj/JHMx0BxT/0wgEbjc0+vmHldrnj9jfWENiw4T1LhGz/MLy99EcY4LQYY1EcvNAspFwj SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2016 23:54:53.3368 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN4PR07MB2242 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(+) -- 2.7.4 diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 7085e32..51c5293 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -35,14 +35,19 @@ KBUILD_CFLAGS += -fno-asynchronous-unwind-tables KBUILD_CFLAGS += $(call cc-option, -mpc-relative-literal-loads) KBUILD_AFLAGS += $(lseinstr) +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 else KBUILD_CPPFLAGS += -mlittle-endian AS += -EL LD += -EL +LDFLAGS += -maarch64linux endif CHECKFLAGS += -D__aarch64__