From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52C1DC433F5 for ; Fri, 29 Oct 2021 14:56:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3AA45610FD for ; Fri, 29 Oct 2021 14:56:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229900AbhJ2O6f (ORCPT ); Fri, 29 Oct 2021 10:58:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229626AbhJ2O6e (ORCPT ); Fri, 29 Oct 2021 10:58:34 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08211C061714 for ; Fri, 29 Oct 2021 07:56:06 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id m14so9455760pfc.9 for ; Fri, 29 Oct 2021 07:56:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=FjCjcYP+D3o8tv9NFpZxsW155sRvSDfbhIEl3Au16T8=; b=fbhsEQHwwevdlsxfPYH0ZOMBGl0MBuTNZ7ZM/mtkL50sTixcSo0LP59DlAS7YgLIeH bd5ffqgdd4NPwRRMPVUM41XFNfQEF4lyvY2qy9/Lhh5gdHAF/RlD3+DNaQeeAL7ckacF uLBqY/pAqpEJF8p+CdGM/OdDjeEMUXe4vrNhRHmNXMw+kQ6GHr1j51B22WZ2cII8JYkY Wtjvk1Ld27LsAm+eskBlsB4uzBEErJsNMfmyQH+nt1IU1CbDeSirNMVr0dGUw9inhgps WU7jJ+CB46GNSD+JDiuUTGANWIGnAeQbKrRIJiJ1ISf8+QJDe1v34NYWmrK1yf14lhQk 8hSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=FjCjcYP+D3o8tv9NFpZxsW155sRvSDfbhIEl3Au16T8=; b=y5KnGkYpAYy18uL8VPH44CEsLd/yv0EilZOhpXp5YA4xtEB5YI1ZdwHBJ6WhXZQcBQ tzBA2AFrFgmIGl+jI2C76AZm31F07VazIBbs5i2EY3izcrhFt2y7HEAspZz++w5j15AO sWPMfDOq0jzHkWST8ZwbEznUtWol6FdW3jpTrVFKTTW9im5MNMObfDA2YU2thXhVWq3a y3m4tAzR2zTT9lZVTJRhbD6kAjzkrvGxdJOLiH1lDc4QftBKbiSsHJaFcOeL/45pps3C x/pXNbc/Q+vb/G3xoDrtxDxRFWkJREEJe0ddCL3xF8rbphxhuzhlJY2fLH1QNNnNFfzP w2ww== X-Gm-Message-State: AOAM53025CQVmVVLjNKEBoLve/qC/sm+3VaJggAysZthDJkgkbtXNPQs fiVZalRlcRxqRvI7Q6sFjr5TLw== X-Google-Smtp-Source: ABdhPJw1r41vo9z6GWts/4z+DJNa7FX6eXkNXDzDgmec/E95Um8w49RuJ9Bh5EuGaGZRKpqNN8QPog== X-Received: by 2002:a63:9dc5:: with SMTP id i188mr8471251pgd.143.1635519365363; Fri, 29 Oct 2021 07:56:05 -0700 (PDT) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id f8sm6253333pjq.29.2021.10.29.07.56.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Oct 2021 07:56:04 -0700 (PDT) Date: Fri, 29 Oct 2021 14:56:00 +0000 From: Sean Christopherson To: Dave Hansen Cc: Reinette Chatre , jarkko@kernel.org, linux-sgx@vger.kernel.org, shuah@kernel.org, dave.hansen@linux.intel.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2 01/15] selftests/x86/sgx: Fix a benign linker warning Message-ID: References: <545aac243037bf5c2640929c4d8ff5c1edfe3ef8.1635447301.git.reinette.chatre@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-sgx@vger.kernel.org On Thu, Oct 28, 2021, Dave Hansen wrote: > On 10/28/21 1:37 PM, Reinette Chatre wrote: > > From: Sean Christopherson > > > > Pass a build id of "none" to the linker to suppress a warning about the > > build id being ignored: > > > > /usr/bin/ld: warning: .note.gnu.build-id section discarded, --build-id > > ignored. > > Do we have a good grasp on why this is producing a warning in the first > place? This seems like something that could get merged quickly with one > more sentence in the changelog. The SGX selftests use a custom linker script, tools/testing/selftests/sgx/test_encl.lds, to configure the resulting enclave binary so that it's loadable as an enclave more or less as-is. One of the things the script does is drop sections the selftests doesn't want, .note* sections being in that category. I don't recall exactly why the script drops sections; I assume it's to simply the loading process. Anyways, .note.gnu.build-id is collateral damage and the linker complains.