Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp609724pxb; Fri, 8 Jan 2021 13:15:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxXATwmgDk3JOlnwJtMg6oVK7Yx8dosfRi8mWa6fTIszQPmUysLjNzGJV0HeDbOSqZX+Hym X-Received: by 2002:a17:906:65a:: with SMTP id t26mr3735457ejb.394.1610140515548; Fri, 08 Jan 2021 13:15:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610140515; cv=none; d=google.com; s=arc-20160816; b=MW8peyEcGSOoyNoHhB85XFWa/6jGOtVTT36vwggvQozqDQHjIBxj3aTQ4Rnsh/eXih ocaZGj48SAoYnF+J9LdPbeAQTl5CS6uE2Z9OM7aeEFr5gnKq+jzK68/8Cx8zIYVzx1hA 12FLHR3HboYKV+tosumQ5Wy3R2sNFiaxGlTo4/MWdTuF8k4QJv1Ae4CFK6tXdg6XGL3T B7sj9A2avAdxTSj76mTH8o89FeQh9QYgEn9b7H5hFvjgRW6BZT7O44UKPKBP0qUTUe0e 4qOB7ZdZEsxGLqoH46thHQalm8UCpuRRBVG7ryrV4Jzr4hks/j9jFK5IcooLTd+SMAeL as1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6xrx36MCllhkC/SSYNU9FX21dLUBr12VQ4uA3o+Xi4U=; b=lI+FzM9opkPBwSiCEA4sdPZRSpq/DhfUWHrG6AEBWlWSfmnm602uG4/euMZ0R+mR0F uwqy5K2S60AaVfSYpSjgoRo1bzKKi9lMBezzWqGLyrAQMnay3Gu0Zj5an5GXrzhoHuHF wjZEJJkk07ecrzyhCcQr6yuM76Rd/TjEu8aYCOzbJYXsMU1PDKml1GHBumqXpCp7tOKY B4Iy31Y1J/t17INcqo3t+7HPjZ8/m7ycaPlJI+I8TpPAK1Eqg6DQWuDuTNGOGnyTA5tB Rvst/pwGTOEUq0RhoeDMgQ7cTSFAGkQQsEsgj/s+7UJPYtZP1408BgTt13AlrH+bMnkv GKAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r9pjJ8n5; 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 lr15si3980451ejb.657.2021.01.08.13.14.52; Fri, 08 Jan 2021 13:15:15 -0800 (PST) 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=r9pjJ8n5; 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 S1729161AbhAHVMv (ORCPT + 99 others); Fri, 8 Jan 2021 16:12:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727003AbhAHVMu (ORCPT ); Fri, 8 Jan 2021 16:12:50 -0500 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CD05C061574; Fri, 8 Jan 2021 13:12:10 -0800 (PST) Received: by mail-qk1-x736.google.com with SMTP id p14so9770669qke.6; Fri, 08 Jan 2021 13:12:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=6xrx36MCllhkC/SSYNU9FX21dLUBr12VQ4uA3o+Xi4U=; b=r9pjJ8n5tYXlLPPxSEIzSJ25YWxhjrv8+ExIXNGrip1Z7+IVcukGmAmsHVmkAu4KnU R+9M83P52Our6sHgNPs4udSqvHr86FrFdyMO8wmL6CEHkCHMVKFkCHjYtDdM9naKvAA5 PR4ZIPbQdDRqpwxLO8hJSvQ5NtBEcvfgfc0+BI/jR9PWivraO9h4kck50gX9HstHqsJk W65l3tkGhIz1IrYpVUcMdi4Db1WUZcD/b/yj8pMvqSetBIXWMni7YwIUq//fZQFJu0YW MepQrx+Hy5FKCLkSU84GChl7P7R1BN5hq4QAuCzN0vs/cibcRcW8RUcd9XjWDyIFTGfX MYjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=6xrx36MCllhkC/SSYNU9FX21dLUBr12VQ4uA3o+Xi4U=; b=kst5l1bBhK/0i06qVMsBmRfQ7Mp2v22xbwYeq75VnWOYyZXQXU/iyHrNRBds5THSAx 7LcUQYkIcJ7bszyVv+Poaw9fvMN1ySWXlrg1PW6MhqWEDkxWWnrYbgtG5cPwVr228eG4 V7MTYeaG+XiyiKl+dLmxD6C32XOdGuorQ21999Vi4hGeNKUxNvrAbacHjyCPPBchjdkL MNwnoRUzOeuZH9VP/xXfhwqTDZ5H0mHtmyp1hwCYfxt107s5AQj5R7RXhg+SbDLaIeIy HxIFvjp1JsM/fScwi2BQAR6HonafbkXTe5kxBUD4lCIgCZDFXcuV+FSILDqhIvQhGWKp OcrA== X-Gm-Message-State: AOAM533QKv8eroGYhb9xHK4FoJlhc7BGlgCjRH+wplyycYFyfdKWxJJP 3TWj7HY8klccM+zNkaB0RGI= X-Received: by 2002:a37:418d:: with SMTP id o135mr5954034qka.426.1610140329673; Fri, 08 Jan 2021 13:12:09 -0800 (PST) Received: from ubuntu-m3-large-x86 ([2604:1380:45f1:1d00::1]) by smtp.gmail.com with ESMTPSA id 60sm4850070qth.14.2021.01.08.13.12.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 13:12:08 -0800 (PST) Date: Fri, 8 Jan 2021 14:12:07 -0700 From: Nathan Chancellor To: Alexander Lobakin Cc: Thomas Bogendoerfer , Arnd Bergmann , Kees Cook , Nick Desaulniers , Fangrui Song , Huacai Chen , Pei Huang , Jiaxun Yang , Sami Tolvanen , Ingo Molnar , Ralf Baechle , Corey Minyard , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, stable@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH v4 mips-next 2/7] MIPS: vmlinux.lds.S: add ".gnu.attributes" to DISCARDS Message-ID: <20210108211207.GB2547542@ubuntu-m3-large-x86> References: <20210107123331.354075-1-alobakin@pm.me> <20210107123428.354231-1-alobakin@pm.me> <20210107123428.354231-2-alobakin@pm.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210107123428.354231-2-alobakin@pm.me> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 07, 2021 at 12:34:53PM +0000, Alexander Lobakin wrote: > Discard GNU attributes (MIPS FP type, GNU Hash etc.) at link time > as kernel doesn't use it at all. > Solves a dozen of the following ld warnings (one per every file): > > mips-alpine-linux-musl-ld: warning: orphan section `.gnu.attributes' > from `arch/mips/kernel/head.o' being placed in section > `.gnu.attributes' > mips-alpine-linux-musl-ld: warning: orphan section `.gnu.attributes' > from `init/main.o' being placed in section `.gnu.attributes' > > Signed-off-by: Alexander Lobakin Reviewed-by: Nathan Chancellor > --- > arch/mips/kernel/vmlinux.lds.S | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/mips/kernel/vmlinux.lds.S b/arch/mips/kernel/vmlinux.lds.S > index 83e27a181206..16468957cba2 100644 > --- a/arch/mips/kernel/vmlinux.lds.S > +++ b/arch/mips/kernel/vmlinux.lds.S > @@ -221,6 +221,7 @@ SECTIONS > /* ABI crap starts here */ > *(.MIPS.abiflags) > *(.MIPS.options) > + *(.gnu.attributes) > *(.options) > *(.pdr) > *(.reginfo) > -- > 2.30.0 > >