Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1119764imm; Mon, 9 Jul 2018 17:52:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfEVHKddplRVxWJX19SMJNQpCIWFwMzdZRyZ1hbzicwn8tRRC+FAZ0tlwzalnwLUN9G0mQv X-Received: by 2002:a62:129a:: with SMTP id 26-v6mr23505240pfs.102.1531183957581; Mon, 09 Jul 2018 17:52:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531183957; cv=none; d=google.com; s=arc-20160816; b=Q6NIgb4wzHaOx5V0LBeyJJPcFMqeCk1BsD0Ln3c7Rc2mrI7IBUplw8VCv3bePMih6d S8uZVzyuzMS0DuMbLtt6ScALW3PgulUg1yKCvTWRpAJ1hFdzzvsYNiFjyz1AsMFNvep9 YQlDX8wnuFFZfDFEOL5Q9FVkCfSl+urGrfy32HNTCUPcxve7Ad6iMO/rQ4fCDpBzwmBm agBJCxdKAyqvh1Lk11y/ToDnWcVucxP4SEO4s1aCBozWMixfx/1kk8JAifoTVeEWcadd CXZtWsyGk7AxzfbQtWGpCMVU5TDAd9C54P/9RQHrRh6PBekmn1zTXD3TRIZc5ft3Dzp3 WF8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=WB9pcwnvGIOQfaIcEEDBnltbglxMrlBjMgr/jK4qBNU=; b=0G82Ca+rR1D/JleArFL8H5DhgnRpPfnlCjKlE6Rrk3/AEOMISdA2zRwgi6xdqz7VGw rEmQ30iC/mwOYiChYcsGGDnYJwpy9tqel0dZn9UhTd15ruJfHozctuDgzPvRHtLncF84 jzajrQNvK5QA5pj+lyynZxJBnfOno+lv/SPvZxcpBf5CSJxaLvtVuQUkrMiBN42Qlsqf DLb76cY57hNVAxXqi990xtf52lOx2fmFogi8/C/TW/yKMh4uRW/+LG3k8fhMkcryxYuN 7EjFn3XgD2i9NnzASDzKbDyh/OBSdqSgZDT2aruXWitp4D3FEMgr6C6Eon2U2CtcwxQO 4LKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p9-v6si15494991pff.30.2018.07.09.17.52.22; Mon, 09 Jul 2018 17:52:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933352AbeGJAvm (ORCPT + 99 others); Mon, 9 Jul 2018 20:51:42 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:40383 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933015AbeGJAve (ORCPT ); Mon, 9 Jul 2018 20:51:34 -0400 Received: by mail-qk0-f194.google.com with SMTP id c126-v6so1982683qkd.7 for ; Mon, 09 Jul 2018 17:51:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WB9pcwnvGIOQfaIcEEDBnltbglxMrlBjMgr/jK4qBNU=; b=LGsKu+hd49UNcEoTH091PdhdhBVbI/MWcT90EQ6wqm/N1orkhPiEb0qflTPKwAV5TW kr3Ca9iA0rHH5zTn0LFyfd6bR/X5TiSwGRYOyMEUGVitDnoLqvoQJGT5v4NGA+jm9kN+ l/8pHM21aq+M+XBkRhCdo7/9BmNJ3S9LYj5zo5VYdi0R9gPNykFJIqZgun90c7NyYvxW npe4lQrGiknidW6yE4q2QhKA7uN2U26+67hpoPFzqG+IPfrPLDh5W4QwAdBWmZbGqXgi JhNO5NH8aSs+88zDJnqXcHr/ZTaomRJwzLUxJ5E0GWcgGWyJk6aSiW0ToilQAySHp9SD afbA== X-Gm-Message-State: APt69E3dKY40QnDKUnxFEONDn74E+UgUtlabWLoLXqicNcK8aLlRj8Pl xPpZ4EsriguogJ298yUyhAd18Q== X-Received: by 2002:a37:15da:: with SMTP id 87-v6mr19538874qkv.67.1531183893604; Mon, 09 Jul 2018 17:51:33 -0700 (PDT) Received: from labbott-redhat.redhat.com ([2601:602:9802:a8dc::1941]) by smtp.gmail.com with ESMTPSA id d12-v6sm4086190qtp.6.2018.07.09.17.51.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Jul 2018 17:51:32 -0700 (PDT) From: Laura Abbott To: Will Deacon , Paul Kocialkowski , Catalin Marinas Cc: Laura Abbott , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCHv2] Revert "arm64: Use aarch64elf and aarch64elfb emulation mode variants" Date: Mon, 9 Jul 2018 17:51:27 -0700 Message-Id: <20180710005127.22883-1-labbott@redhat.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 38fc42486775 ("arm64: Use aarch64elf and aarch64elfb emulation mode variants") unfortunately breaks with some toolchains: CHK include/generated/compile.h LD [M] arch/arm64/crypto/sha512-ce.o aarch64-linux-gnu-ld: cannot open linker script file ldscripts/aarch64elf.xr: No such file or directory make[1]: *** [scripts/Makefile.build:530: arch/arm64/crypto/sha512-ce.o] Error 1 make: *** [Makefile:1029: arch/arm64/crypto] Error 2 If the distribution doesn't package the associated linker strips from binutils, this will fail. Both Fedora and Debian currently fall into this category so just revert it. Fixes: 38fc42486775 ("arm64: Use aarch64elf and aarch64elfb emulation mode variants") Tested-by: Kevin Hilman Signed-off-by: Laura Abbott --- v2: Tweaked the commit text to be a bit clearer about what the underlying problem is. --- arch/arm64/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 7976d2d242fa..f476d52ad8d6 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -60,13 +60,13 @@ ifeq ($(CONFIG_CPU_BIG_ENDIAN), y) KBUILD_CPPFLAGS += -mbig-endian CHECKFLAGS += -D__AARCH64EB__ AS += -EB -LDFLAGS += -EB -maarch64elfb +LDFLAGS += -EB -maarch64linuxb UTS_MACHINE := aarch64_be else KBUILD_CPPFLAGS += -mlittle-endian CHECKFLAGS += -D__AARCH64EL__ AS += -EL -LDFLAGS += -EL -maarch64elf +LDFLAGS += -EL -maarch64linux UTS_MACHINE := aarch64 endif -- 2.17.1