From patchwork Tue Jun 4 11:39:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 165760 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp5726677ili; Tue, 4 Jun 2019 04:39:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvnLff4/47nxmp7DCou2sYHLbh/ZK+5b9JNrjPhQQnwS8UIvEnud7xAxzDW+PWOOk0kaMz X-Received: by 2002:ac8:2537:: with SMTP id 52mr27943468qtm.5.1559648391097; Tue, 04 Jun 2019 04:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559648391; cv=none; d=google.com; s=arc-20160816; b=qphWYJbSXiKVxnZMDmeM89xUlyef4wiQXPCExMz7lXKvMh1MSSHeACtXS5o+a4TkJP G8hTDrLPc8FDCCrN3nHK/mtn7hOzprW9GQrbaKd455SEHSiXcFmKB8bTsBCHHqFE6Fzq EvLN0fROHMukxik/FEZUtv9y00D0p+RZpwaOgPV1uOhcYJP1cdgpd27iOYKEKyHdUgDG CQF/x5MaE2Fd+S3F/YRgDcPh6mtPPPJ8VpirLGyRZoZvuS0+LF96zw1ETFifUwt0XDW5 ivBGbsvUzbY4yityn6hmJIkZ+283Fte5oXFDRH2UOeJu0ZG+AtEmvp3xuM1UKvEIgX4+ 1F+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:dkim-signature; bh=QMY70Z81nYZ3c9PfBc1FieqzL/6d6XXQdhYm5MhFSNw=; b=jsgF4c2JFDv8FHPEOQDzAVlPNqoHHVbvlVBYY4AvOtVT5Wr0HQwLJjRIpWYraoSbHi mmwXhgMhiakYiwN18aqduBPVOvw77Vi5kTFh5cp9Cn16N/kvEEOBAS55Za+254nJN8ar usdKwGXnjJTbuxscWOrWdJhyvksf8ZtWWFjoEpVVePq4v/Q/IvgW5oexv966EJzYm+s1 OX+kWaCbl7MO3CJYPkFR/1pPFVVhi593iU/LY2n7l/Yl/FNe27VCdT8CH5ojEWN9NgG/ vQEyEGROcM41bGogIs18XjXmgv4HkfREm55wWyalF5z3mpsElAnm6+VdomsR2AHDo48n 4UFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BDd6x4Rg; spf=pass (google.com: domain of grub-devel-bounces+patch=linaro.org@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="grub-devel-bounces+patch=linaro.org@gnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id m10si934777qvs.208.2019.06.04.04.39.50 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 04 Jun 2019 04:39:51 -0700 (PDT) Received-SPF: pass (google.com: domain of grub-devel-bounces+patch=linaro.org@gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BDd6x4Rg; spf=pass (google.com: domain of grub-devel-bounces+patch=linaro.org@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="grub-devel-bounces+patch=linaro.org@gnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:50679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hY7nB-0004Zg-9f for patch@linaro.org; Tue, 04 Jun 2019 07:39:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hY7n3-0004ZZ-4Z for grub-devel@gnu.org; Tue, 04 Jun 2019 07:39:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hY7mz-00012I-AB for grub-devel@gnu.org; Tue, 04 Jun 2019 07:39:41 -0400 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:37661) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hY7my-0000j1-BC for grub-devel@gnu.org; Tue, 04 Jun 2019 07:39:37 -0400 Received: by mail-wm1-x342.google.com with SMTP id 22so6126911wmg.2 for ; Tue, 04 Jun 2019 04:39:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=AEU+1T+UDeEPJs5EY7S1fSEw8l638PqwyhmwLBygDas=; b=BDd6x4RgtmJqWLMbLA6pfGCo0w8VL6rZkGEH0Nu7C4kgAtfv/AZ7l6mt8GY73LlahO U5kPw00hLkX5bKD6ZDj9nkT/eSIVMOnONTTJ4xWXWMgEJ6OdRkgF+fjTTBl/3wbq+qz4 lDyFK3OjBpD8qGtMCfk8YT4B3JS0KdXyj2ys6QjCtZWyrFUB839haT7sOHviwwaPLY0g qyxqxp5YHObbwCzioGG77RBbuIKdPCeyYh4ALakepgl5IaWsRG84CP1iRRZJxA3yIxh6 AZojqqJt+3y9bijONVdm7myEiu0BL6HXlepzKvg3aMomRoHCGImzzI/8Eorar2lXNsYE iLlQ== 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=AEU+1T+UDeEPJs5EY7S1fSEw8l638PqwyhmwLBygDas=; b=WVim6J9Dujr1QrgunMMtLqmrMCWhXmspgdVTVGj9fP0cazu0Z8AZafbwiV5ybvCBqi OYgq5AKqVqlLiP/Mbh1ePLWn7o4MBN8UVkjrX3vuoCd+QUpfOAv5m4xyoIS4z/PXZaXj iPTu5oRZUF08A0V72Ye6mPAAjelhTyICdm/pD13Yd369QXy5MT2cQ9aCXy3cKp3oELnL PPZJZilB/E7ucpPwEurOAUHFyW750ePbsxnsmsGHGavHrD9BfFSBjzqeHbk7LD9SNx5f h4HBsK9oUyIUG4lhD5yjrFWgk/9muZIeImQ7IQiJ51u383OiFny1uIadl36a+eKpwEbf bfOg== X-Gm-Message-State: APjAAAU0umQzmmkWOyNltYSh2W+Xqjt6UAHVw3TGmfGCeHd2I7OO7t6v /9OHxN/eBmi4pBj9oP+SnMbNhB8M/sP4cg== X-Received: by 2002:a7b:cb48:: with SMTP id v8mr17346112wmj.108.1559648358792; Tue, 04 Jun 2019 04:39:18 -0700 (PDT) Received: from vanye.hemma.eciton.net (cpc92302-cmbg19-2-0-cust304.5-4.cable.virginm.net. [82.1.209.49]) by smtp.gmail.com with ESMTPSA id f8sm9620911wrx.11.2019.06.04.04.39.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jun 2019 04:39:17 -0700 (PDT) From: Leif Lindholm To: grub-devel@gnu.org Subject: [PATCH] configure: disable arm movw/movt relocations for GCC Date: Tue, 4 Jun 2019 12:39:16 +0100 Message-Id: <20190604113916.31758-1-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.11.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::342 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: The development of GNU GRUB Cc: Alexander Graf , Daniel Kiper MIME-Version: 1.0 Errors-To: grub-devel-bounces+patch=linaro.org@gnu.org Sender: "Grub-devel" When building for arm, we already disable movw/movt relocations for clang, since they are incompatible with PE. When building with bare metal GCC toolchains (like the one used in the travis ci scripts), we end up with these relocations again. So add an additional test for the '-mword-relocations' flag used by GCC. Reported-by: Alexander Graf Signed-off-by: Leif Lindholm --- Note: unless this is added before the travis-ci set, the arm ci build will fail when enabled. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.11.0 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel Reviewed-by: Alexander Graf Reviewed-by: Daniel Kiper Reported-by: Alexander Graf <agraf@csgraf.de>
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
diff --git a/configure.ac b/configure.ac index 08b518fcc..e7725a546 100644 --- a/configure.ac +++ b/configure.ac @@ -1198,7 +1198,8 @@ if test "x$target_cpu" = xarm; then AC_CACHE_CHECK([for options to disable movt and movw], grub_cv_target_cc_mno_movt, [ grub_cv_target_cc_mno_movt=no for cand in "-mno-movt" \ - "-mllvm -arm-use-movt=0"; do + "-mllvm -arm-use-movt=0" \ + "-mword-relocations"; do if test x"$grub_cv_target_cc_mno_movt" != xno ; then break fi