From patchwork Mon Jan 7 06:55:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 154867 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3178555ljp; Sun, 6 Jan 2019 22:55:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN5Jv4UL3itAhsB2XDfuDTdRbqbpfurQVrK1RCjnjEI6e3mxFDqY9saFT0a3YofWelgbp6Jn X-Received: by 2002:a17:902:a5ca:: with SMTP id t10mr59993258plq.139.1546844152795; Sun, 06 Jan 2019 22:55:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546844152; cv=none; d=google.com; s=arc-20160816; b=lV1jx07tXovPWvQBGcE6Flie+2Te02dKyFYKESx0wYpTa4GTAL7UwiIMCTx2sz2Hpy zu5F95h/GGSHLoxSwiI57f96xdrz1QyLFoyaIcztAHuz8PoCdDWoFOidgdDcp5LfeYCC p6w4W2ojcGBPB9D+tNo5zwNtAkI7ip1qtj4dbdKHeuVLMGnsz3D84GLwQL/9Qzxi+Abo ms0rXazuuI/TK6W2RCKM5WFAj9FhMwnlheAz8Hhu3/HoqQ8p3CYAmwUoUEishkTUPbkq /S8CtyOBG1qVqn0QNd95d3HPaArckOB9VenA8CG8ambbBZeNPEaiU4hlfudMkBgs5H7S Szcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=ymSzAsf4WGpruDRZBQmuGyhQBvhtplRWm2J0V6sAMGQ=; b=MQlUbQQ1NaFn1cONps1sV4qyUEGxDhLDqRtV7VLWPQnb1LQAHZcSl2QUUhxznYffc4 1KvhQXt6DEq/3ay9bBvRc4JRWVLfv4iPub6T0jBMpl3eqk+bBF9KBLGF3Zv2moDhsX2K 7QRx9xjyLRA3mOg0uUsvt3pIz3as9WQIMjgHZP+Elxsldi1ArS1go2Yq59tL433jztgu bVJpLuKJxYd3VDo42Y0Mp5ipxQmK10ZdRtMxeddzeyDveExp2g+qjLmc51ayP98G4na8 hV5ytwFIboLbPncW2T5ScPqR9i7KUQv3B3iS2g3ynBa0jGoLiY52tdsCQDrSQJ8cV0VG 4thQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DQMdxpJa; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id 37si3771209pgs.447.2019.01.06.22.55.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jan 2019 22:55:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DQMdxpJa; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 8DD8820837994; Sun, 6 Jan 2019 22:55:51 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::544; helo=mail-ed1-x544.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2EBB42119C8BA for ; Sun, 6 Jan 2019 22:55:49 -0800 (PST) Received: by mail-ed1-x544.google.com with SMTP id y20so36845772edw.9 for ; Sun, 06 Jan 2019 22:55:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jtd7FHjgAaqYfkkq9nuj+ArBqdpILVrrOiZqCrO25H8=; b=DQMdxpJaeIuXGp3tVnbZe2qbnOha40vuRs2ljHbE6Qmx+i6LjraUK7otTION0xz72x SbZUb+ey1sKq3wLF75kSpPnnmF5qTvR30J3bkj1p7FPr1aEzgboCR8sV1G6mEnyZAw/R hX27dkrHSrrcqBt2H5OuZLWBjCk63fLmls8ac= 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:mime-version :content-transfer-encoding; bh=jtd7FHjgAaqYfkkq9nuj+ArBqdpILVrrOiZqCrO25H8=; b=qEgCLL4pX1LETbO5JI8zMlZdoTv1kEnYRalpSv9807xqkJi/h6ffNvkbLISp6Om+o9 MOJ5oXcIDXXY4wwGcqiUTFkjHKX+qHVQ7LfnDIkjp0houMuJBoPHYDVlA8vNqPvsPROB 5z02Rbu6U868YQ3mJ7/J3NhpHwg40TTmMGRfNZXieGpPaS/+i9zR0+PPFm9TiUreuzLN kxA0vX9yu5ByUlzgrBGX/vq+n1Uej08Z4IsB94LqR0IRg10mPLu62I+GVB0FCtnqCT9x 8rvvI7ZgrFgZ2kfvLfIg5FehSyIJVBGy0P3F+94tJKSpVSE5uT4Z84etuwFxFBor/VnB G3Pg== X-Gm-Message-State: AA+aEWaf5pwU8tHl9M5nMhej3d1iVyfKU5RLMYXJteyvKAk5VxC9Yhce JqIVaY9aeaxVFOuN7zjWjTyd2sZj6Ug4GA== X-Received: by 2002:a17:906:2989:: with SMTP id x9-v6mr46656366eje.156.1546844147472; Sun, 06 Jan 2019 22:55:47 -0800 (PST) Received: from chuckie.home ([2a01:cb1d:112:6f00:58f2:776e:9e23:a7ca]) by smtp.gmail.com with ESMTPSA id f35sm63124867edd.80.2019.01.06.22.55.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jan 2019 22:55:46 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Mon, 7 Jan 2019 07:55:41 +0100 Message-Id: <20190107065541.1854-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [edk2] [PATCH] BaseTools/tools_def ARM GCC5: disable LTO for ASLC invocations X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: liming.gao@intel.com Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" GCC for 32-bit ARM chokes on .aslc files when running with LTO enabled. Since LTO has no benefit whatsoever here, just disable it. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- BaseTools/Conf/tools_def.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template index f7eb87af14c2..e68cfd9a4997 100755 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -5145,7 +5145,7 @@ RELEASE_GCC5_X64_DLINK_FLAGS = DEF(GCC5_X64_DLINK_FLAGS) -flto -Os *_GCC5_ARM_RC_PATH = ENV(GCC5_ARM_PREFIX)objcopy *_GCC5_ARM_ARCHCC_FLAGS = -mthumb -*_GCC5_ARM_ASLCC_FLAGS = DEF(GCC_ASLCC_FLAGS) +*_GCC5_ARM_ASLCC_FLAGS = DEF(GCC_ASLCC_FLAGS) -fno-lto *_GCC5_ARM_ASLDLINK_FLAGS = DEF(GCC5_ARM_ASLDLINK_FLAGS) *_GCC5_ARM_ASM_FLAGS = DEF(GCC5_ARM_ASM_FLAGS) *_GCC5_ARM_DLINK2_FLAGS = DEF(GCC5_ARM_DLINK2_FLAGS)