From patchwork Wed Sep 3 21:18:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 36638 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f69.google.com (mail-qa0-f69.google.com [209.85.216.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D3DB0202E4 for ; Wed, 3 Sep 2014 21:19:48 +0000 (UTC) Received: by mail-qa0-f69.google.com with SMTP id v10sf26043445qac.8 for ; Wed, 03 Sep 2014 14:19:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=jOYTFQcH1zmtXk4KJYrfLns1Z1YabbLKGYNI/Iyzo8Y=; b=Gw21x59og3fGw/WVQ7ZWKCIWrHG6fmXtOoxi3JgO4E5ogesTHplc4OhD1ITjt64eVj XUu1PWLE0ZKN+/xNTwSmwcAhEdY29uDmCbneEsek9smmhn31LV3g6mF58TtCqKkP0we7 K0YI29szw031AiW+5e+qby4FZtHQsHwJPH4vCgf1LlNwMowbw2737cxv+K8qCekICqMq PxedH6k+SYCinQzsMluXU6c5YgO0z8xbmwN7jmWvOScwXnkw5OvXJ/NAZL9fUVkBOYBm xBnzfoOLPEM26F2b4zugDxJKGyJKZkKeY3jPkL9rNIu5PwTZ8jxdu5jRO6hbMXjej/me PyVQ== X-Gm-Message-State: ALoCoQnKimIu6BjbH1hHnPwSgU69vks01ILQNj6H6Moh2HlWcGmNxd0jkFvqTSuRljWoF3yNDkXY X-Received: by 10.236.17.234 with SMTP id j70mr83448yhj.26.1409779188352; Wed, 03 Sep 2014 14:19:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.86.176 with SMTP id p45ls9459qgd.57.gmail; Wed, 03 Sep 2014 14:19:48 -0700 (PDT) X-Received: by 10.52.88.74 with SMTP id be10mr54737vdb.54.1409779188236; Wed, 03 Sep 2014 14:19:48 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id d9si1714737vdi.28.2014.09.03.14.19.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 14:19:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id hq11so9734446vcb.0 for ; Wed, 03 Sep 2014 14:19:47 -0700 (PDT) X-Received: by 10.220.118.136 with SMTP id v8mr57318vcq.50.1409779187842; Wed, 03 Sep 2014 14:19:47 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp740027vcb; Wed, 3 Sep 2014 14:19:47 -0700 (PDT) X-Received: by 10.66.174.107 with SMTP id br11mr391271pac.105.1409779186853; Wed, 03 Sep 2014 14:19:46 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o4si13482850pdl.67.2014.09.03.14.19.46 for ; Wed, 03 Sep 2014 14:19:46 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756629AbaICVTb (ORCPT + 26 others); Wed, 3 Sep 2014 17:19:31 -0400 Received: from mail-ig0-f179.google.com ([209.85.213.179]:32861 "EHLO mail-ig0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756504AbaICVT2 (ORCPT ); Wed, 3 Sep 2014 17:19:28 -0400 Received: by mail-ig0-f179.google.com with SMTP id r2so9883411igi.0 for ; Wed, 03 Sep 2014 14:19:26 -0700 (PDT) X-Received: by 10.43.101.199 with SMTP id db7mr270742icc.95.1409779166138; Wed, 03 Sep 2014 14:19:26 -0700 (PDT) Received: from localhost.localdomain (64.2.3.195.ptr.us.xo.net. [64.2.3.195]) by mx.google.com with ESMTPSA id l4sm6469611igt.22.2014.09.03.14.19.25 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 03 Sep 2014 14:19:25 -0700 (PDT) Received: from localhost.localdomain (apinskidesktop [127.0.0.1]) by localhost.localdomain (8.14.3/8.14.3/Debian-9.4) with ESMTP id s83LJOkn031015 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Wed, 3 Sep 2014 14:19:24 -0700 Received: (from apinski@localhost) by localhost.localdomain (8.14.3/8.14.3/Submit) id s83LJOlj031014; Wed, 3 Sep 2014 14:19:24 -0700 From: Andrew Pinski To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, pinskia@gmail.com Cc: Andrew Pinski Subject: [PATCH 01/24] ARM64: Force LP64 to compile the kernel Date: Wed, 3 Sep 2014 14:18:55 -0700 Message-Id: <1409779158-30963-2-git-send-email-apinski@cavium.com> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1409779158-30963-1-git-send-email-apinski@cavium.com> References: <1409779158-30963-1-git-send-email-apinski@cavium.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: apinski@cavium.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Sometimes the compiler is set to default to ILP32 ABI so we want to make sure the kernel can compile in that case. Signed-off-by: Andrew Pinski --- arch/arm64/Makefile | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 2df5e5d..b05340b 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -20,14 +20,18 @@ LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) KBUILD_DEFCONFIG := defconfig KBUILD_CFLAGS += -mgeneral-regs-only +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 comma = ,