Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp361811ybg; Wed, 10 Jun 2020 02:48:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPyb8jbcinhUCSYz1deeg0u/WnXdwJGgshLWupfjx6jfSJK/amZZ1kMPSIzrL4DB15gpgE X-Received: by 2002:a05:6402:1217:: with SMTP id c23mr1694601edw.270.1591782504078; Wed, 10 Jun 2020 02:48:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591782504; cv=none; d=google.com; s=arc-20160816; b=0d02eS66Roiz56bbThQ6CTR+Ym0E7M2k0AKHOE7xePm3glO/fZBRi6AYKonhHI2XoN XpKkPZ4r/GW9PtuZVAGSQK9jsYHPKl+2hLiyxMrb0XTYBok5GIhyGiRp9z3RvLc4I6Lz O/NbHmv4FkWi2hnRVitt2hf0UTPF7q9j5m3j5bnsf8WPD9I96/AJYKdB/gfVJIid2m3M wQtX8dGgPz0WUDZmFzoscJUYwsws1j5/xy2d5cPyvMczBM2mwpK/+Rz9vsrCta/5/HuW gMOZnAgln/8swRBdY+8l6LBUmtfuerFeZxdjgdrq9nrR5zBEADBSVmp1+5jzDIINWzWN Ty8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=knFTNygHBlvK7O+pDlbdvkQzVtQ3TgCejJaIUpEQ4jE=; b=kcmwVu9SDk6quKhIsvJNFcnycRvRq+afvwBSMYDQ8/HUgofPE3spDvYHIp+7S15J1W YvAKK/XWl3huLvLu0t3pxKqsaohMH3x/tG6GlTJwUpUOX0mLc7ceGiAYNJ0PV1ZVatO/ 8i1Gk+dqIR37cR4dKt7Jac/+on7qUBdLH9D9W87lUanEBC0Q6d2F+uvtj/ATTAbUrXlp TmZLLhIqqiLOVqGCgQsJYYl/6kH7GUmdLjY2Ge3C5Gchko7FwHH6IMSdumbftsLmwIn8 PoCr2vF14XUUZn7beMaFaol4ljg1bZq0T6Dv+SPH0RsVSgzgEXakibOk2ZxxcpSkTwGH bb3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FPoPyctx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z10si12160511ejb.517.2020.06.10.02.48.01; Wed, 10 Jun 2020 02:48:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FPoPyctx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727946AbgFJJpH (ORCPT + 99 others); Wed, 10 Jun 2020 05:45:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727909AbgFJJpG (ORCPT ); Wed, 10 Jun 2020 05:45:06 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E9B3C03E96B; Wed, 10 Jun 2020 02:45:06 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id h188so1063077lfd.7; Wed, 10 Jun 2020 02:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=knFTNygHBlvK7O+pDlbdvkQzVtQ3TgCejJaIUpEQ4jE=; b=FPoPyctxOdVDSsWBW0DlRNRiIuR67mqyGK8YC9Ys9GBn2jdZt6nSY+imLjKGWfZEmy TKFIRPmh0pIedVCCcigIb62Ci1dFBR8JP/pisoToHWPgSFb8TW9t0nwj40a38Ci/vY+n cz552AjSVLs6oN/qPoU3US6Aaixm2HEv4HnPCGLPMiSZUVdt70G0rk8wNwq82Ssmr3k3 8MuTnvRqc1BzZmJPJzxO2uuYvNsVmeVdXs9mVUSI+rQpArHUPCMp+JV+uzskDaAoY6vX O/QCJNNB4L1xcgJ7QBk5uolvmPxfPbuI24RABliKkdeXVhkZFEjnaArMbKHgTJoUEYNv oXXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=knFTNygHBlvK7O+pDlbdvkQzVtQ3TgCejJaIUpEQ4jE=; b=pk0/sCO2vmCjgOO81KwuKty7r49SKbQb//XOnZSCbiQ93TfNl64R/QcsBIrVuFyYxL vmMZ+ycpQi4kMP1doP0WBRmkjgZgGmPoS4FO78LYV5Bb5X8QSMI7QLWC8UuVwz55DQPp W0vb2cLrEwLcjBR0Urn4kDKcIcO1eZcIfIORsrS6OGm4p9CtUAUtDu2hzb8IBdEFARI4 M1fWogOFV+YPVBwKeSoH09C1JR+IrN/6YsYoDLUQcIELgQ54eIYcwT7/ONt3lc2qmUxb xJnQV3OUynLRd698yBwKyU3GXiWmTEzO1sb2e5w5vIAtQmQrCy85d/xyiY6OuTdJiWtn CQCQ== X-Gm-Message-State: AOAM5306xdndgNGsUhaxct0gb4fEM/ePWGkn1M027bKYgLvR+jot7Ocx 7go3M+oEBsWj6xukwRhX44fSGoioyuNxu/be2fw= X-Received: by 2002:a19:5d44:: with SMTP id p4mr1244127lfj.56.1591782304769; Wed, 10 Jun 2020 02:45:04 -0700 (PDT) MIME-Version: 1.0 References: <20200610071446.3737-1-zhenzhong.duan@gmail.com> <20200610085932.GA461993@ubuntu-n2-xlarge-x86> In-Reply-To: From: Zhenzhong Duan Date: Wed, 10 Jun 2020 17:44:53 +0800 Message-ID: Subject: Re: [PATCH] efi/libstub: Fix build error with libstub To: Ard Biesheuvel Cc: Nathan Chancellor , Linux Kernel Mailing List , linux-efi , Arvind Sankar , Kees Cook , Ingo Molnar , clang-built-linux Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 10, 2020 at 5:10 PM Ard Biesheuvel wrote: > > On Wed, 10 Jun 2020 at 10:59, Nathan Chancellor > wrote: > > > > On Wed, Jun 10, 2020 at 03:14:46PM +0800, Zhenzhong Duan wrote: > > > Got below error during build: ... > > > diff --git a/drivers/firmware/efi/libstub/Makefile b/drivers/firmware/efi/libstub/Makefile > > > index cce4a74..25e5d02 100644 > > > --- a/drivers/firmware/efi/libstub/Makefile > > > +++ b/drivers/firmware/efi/libstub/Makefile > > > @@ -6,7 +6,7 @@ > > > # enabled, even if doing so doesn't break the build. > > > # > > > cflags-$(CONFIG_X86_32) := -march=i386 > > > -cflags-$(CONFIG_X86_64) := -mcmodel=small > > > +cflags-$(CONFIG_X86_64) := -mcmodel=small -maccumulate-outgoing-args > > > > This will need a cc-option call if this patch is necessary because clang > > does not support this flag. > > > > clang-11: error: unknown argument: '-maccumulate-outgoing-args' > > > > A fix was already sent for this > > https://lore.kernel.org/bpf/20200605150638.1011637-1-nivedita@alum.mit.edu/ > > which does the right thing here. Ah, so I'm late again. Not clear if there is easy way to check queued patches for upstream.. Regards Zhenzhong