From patchwork Sat May 24 07:01:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 30864 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 642492066E for ; Sat, 24 May 2014 07:02:55 +0000 (UTC) Received: by mail-pa0-f72.google.com with SMTP id rd3sf23380621pab.3 for ; Sat, 24 May 2014 00:02:54 -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:to:to:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe; bh=M20VB8CNc9FlTGUXi5Lz+lKpB8Gppm8bm2qyuooZqug=; b=Lhfm1bT+7qOvYKnoq3tTmerXcyPJCszaXIcDBWgWVLyXbAz+mfGQ6/OKUeSTDr6Xm9 VdKWrSJReDRZ1PPw5NsU8qapwXh/b9jQmaaxtKnBpBeoPUjvGe08cPvpaLgLJPCVkfSQ 0G4Yq5GzwNHB70iK5G4OYdXL73YqEFrUqmFKZRLTzCYAtOpBNPX8Nrv4f0d28IFr51bz wbxByMw8XxeJTzmQ2wvk4545EH+hRJuW54RvD1Su8QA5pUgQd3kVI/twqcasMKGLguWU 359iqAfhMfPkky6S7YM42/mFMGY8tsY8MbJNgDHqcMc/8/EQ9qntOo5FpysCEliaPAL5 XCCg== X-Gm-Message-State: ALoCoQmO+yo2+qlcMuGmJWmSPo72nEDv706ParTFLOi8VKT3GGfeRf5NU+37npOLosmv0niPv8+Y X-Received: by 10.66.197.131 with SMTP id iu3mr4419486pac.15.1400914974552; Sat, 24 May 2014 00:02:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.30.165 with SMTP id d34ls1979439qgd.25.gmail; Sat, 24 May 2014 00:02:54 -0700 (PDT) X-Received: by 10.58.219.166 with SMTP id pp6mr8701591vec.1.1400914974445; Sat, 24 May 2014 00:02:54 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id g5si3070642vda.6.2014.05.24.00.02.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 24 May 2014 00:02:54 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.173 as permitted sender) client-ip=209.85.128.173; Received: by mail-ve0-f173.google.com with SMTP id pa12so7343456veb.18 for ; Sat, 24 May 2014 00:02:54 -0700 (PDT) X-Received: by 10.58.23.6 with SMTP id i6mr8641081vef.12.1400914974355; Sat, 24 May 2014 00:02:54 -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.220.221.72 with SMTP id ib8csp87360vcb; Sat, 24 May 2014 00:02:53 -0700 (PDT) X-Received: by 10.66.193.104 with SMTP id hn8mr11724777pac.99.1400914973613; Sat, 24 May 2014 00:02:53 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qf10si6826000pbb.86.2014.05.24.00.02.52 for ; Sat, 24 May 2014 00:02:52 -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 S1751474AbaEXHC3 (ORCPT + 27 others); Sat, 24 May 2014 03:02:29 -0400 Received: from mail-ig0-f169.google.com ([209.85.213.169]:39712 "EHLO mail-ig0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751228AbaEXHCX (ORCPT ); Sat, 24 May 2014 03:02:23 -0400 Received: by mail-ig0-f169.google.com with SMTP id hl10so1670480igb.2 for ; Sat, 24 May 2014 00:02:22 -0700 (PDT) X-Received: by 10.50.114.34 with SMTP id jd2mr2797398igb.35.1400914942842; Sat, 24 May 2014 00:02:22 -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 y15sm10014859igy.2.2014.05.24.00.02.22 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 24 May 2014 00:02:22 -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 s4O72L3V009746 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Sat, 24 May 2014 00:02:21 -0700 Received: (from apinski@localhost) by localhost.localdomain (8.14.3/8.14.3/Submit) id s4O72L2W009745; Sat, 24 May 2014 00:02:21 -0700 From: Andrew Pinski To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Andrew Pinski Subject: [PATCH 01/24] ARM64: Force LP64 to compile the kernel. Date: Sat, 24 May 2014 00:01:56 -0700 Message-Id: <1400914939-9708-2-git-send-email-apinski@cavium.com> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1400914939-9708-1-git-send-email-apinski@cavium.com> References: <1400914939-9708-1-git-send-email-apinski@cavium.com> To: linux-arm-kernel@lists.infradead.org To: linux-kernel@vger.kernel.org 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.128.173 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. Thanks, Andrew Pinski 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 2fceb71..e9dbd20 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 = ,