Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp257655pxb; Fri, 15 Jan 2021 12:15:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyA+OUnkWH+exHiflO2ddn6c1xXEd2f1OjC8mCvA+SdDoWIiKaQT/rL+zo9FzxeFOAZMGVJ X-Received: by 2002:a17:906:94d8:: with SMTP id d24mr1550839ejy.271.1610741735956; Fri, 15 Jan 2021 12:15:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610741735; cv=none; d=google.com; s=arc-20160816; b=boIzAMO4cJ4nLaHL3tsPcSHatXIoCsW39fCvrhtUwL23LsLRQUcJB/EX/JKM7qpldI hNRRXr22IFQMu2JOmRXyKk7ic7H37Cf5Ep8v9U0I09ji5qfUAjsqe8TggmwP2sIDl3Dq lBzMy/tS8K0badwdhxuy30+byfmro8wdH+EE+YUknc2ZGdJW2ZWtCUdi/Elc/hLlWU9a lUBpp/jIL1QhOsukuebVwlXxrdZN/oqD8z0kTIDiRExFyBQ/G6BrdIa9V5Qh9hfT1WxC o1pagJKkRsSX+FB/CBxn4tLmrvJjgm2zZ9FUVxXDby/sgBLWqmFaQDaNFi1io1s0ggFI wWaA== 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=Gb2K8a9/AUSvvfvrbCs7WHO9VXw0fMuK9BslVxQRn/0=; b=kEAx0BXsqs26uVTLogZCAyA9oP9BjkiARmhzFtCh4g6yjCs2+D4/lfW7+OVjM9Pi4e 6RsZgEJonN1pAx8pFpkMNahu198ErP9LyiZzLEjIRRQSrHz2rzqdgERSl52FtKQYAx3n EWTy4V3bPRhsfA6HMA2MIyqfrNVOZKOLuwNJQpFvSq9DwvrqUJBDORBlLFIy12l7TsMH VTILWNtw7YIljuyHhDs6cXTRoWneWBBP7nIXQxM4W7LLiIu08admhUOjjmU2U15X/tJ2 poYcZWf9sGOeSHY8AUG+MyuJCFHrGdaxTv/9A/lDmDDygA5lLW2aGYcYNttw91W/QSf8 Et4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ox+MuupI; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p5si4154340edj.169.2021.01.15.12.15.12; Fri, 15 Jan 2021 12:15:35 -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=@google.com header.s=20161025 header.b=ox+MuupI; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733280AbhAOUOf (ORCPT + 99 others); Fri, 15 Jan 2021 15:14:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726467AbhAOUOc (ORCPT ); Fri, 15 Jan 2021 15:14:32 -0500 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 079F4C061757 for ; Fri, 15 Jan 2021 12:13:51 -0800 (PST) Received: by mail-pl1-x62c.google.com with SMTP id u11so976221plg.13 for ; Fri, 15 Jan 2021 12:13:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Gb2K8a9/AUSvvfvrbCs7WHO9VXw0fMuK9BslVxQRn/0=; b=ox+MuupIi1HIGJ4Lu7BzfYbNnXQ9689uRP0fxZbbYeRWoQWVIv5A6iDzOAv+Lf3ohz qKC1BGqtw2uyD1BjT+l8ymojNpEyo+b+Lw9oYg2TdqBxy1tr+1LUE7aOs/iNVbEOK9W8 kkDyCFVqt2JvOJys6pye6c1ZYVf5exnzyJpkR6bVglnp0ZwcBCOIPnQBexksjXQm9bdX JngSmQhIadBHDzWWhbCUMd85gfS/UpogWlts0JfTE0EsWNvOql5q/CE/XbXTaNY2nb0H mggiEJTc7lchKIPK50VZzARpi0MRYNno9SVy+mv0DPMtYZROkiB+ruHYPfIs1rWxcIN0 bwAA== 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=Gb2K8a9/AUSvvfvrbCs7WHO9VXw0fMuK9BslVxQRn/0=; b=CbBsBrD+jC5fWuFMB7EEtMe+BSqKL8eatiVhotCJXchAQwQGO7usrKD+VS+c+nW04D TkBgeRz5PmDW2JWXy2P7NV9w+iCSFVnZddS1kkRxggpysFHHmwnOYMHssMDVD2WDNLRa 6RnwIKdbE072mmyoQpBzHYk+tVnBoJOnuwb7zrgQ1Zdu4K4Gtl4A5cCazPYVsLoMs8aR XgIvFw7JukOlXqcnhl5K9MgwDUiHrKb2/PD9gl9Ps74b+FVXg6z+h7ad4lsEKWxCmhlf QRjW7tV11JWOx8kx4nfJgDp7hXsI9wr6xkqyJoyZHjtM20h+jxOYdaGZAA/SFXapEY2w 6gKQ== X-Gm-Message-State: AOAM530LquoTemA8BSYrMMcbWC/MZJJwThwuP+J8jzic5v7h014pQfCc qgu23HCmsBEP6/A45Ky1hIj91g== X-Received: by 2002:a17:90a:ac2:: with SMTP id r2mr10180034pje.145.1610741630370; Fri, 15 Jan 2021 12:13:50 -0800 (PST) Received: from google.com ([2620:15c:2ce:0:a6ae:11ff:fe11:4abb]) by smtp.gmail.com with ESMTPSA id z13sm9163495pjz.42.2021.01.15.12.13.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 12:13:45 -0800 (PST) Date: Fri, 15 Jan 2021 12:13:42 -0800 From: Fangrui Song To: Anders Roxell Cc: Nathan Chancellor , Thomas Bogendoerfer , Nick Desaulniers , linux-mips@vger.kernel.org, Linux Kernel Mailing List , clang-built-linux , stable@vger.kernel.org Subject: Re: [PATCH] mips: vdso: fix DWARF2 warning Message-ID: <20210115201342.76nssqtbs4kttgts@google.com> References: <20210115191330.2319352-1-anders.roxell@linaro.org> <20210115192803.GA3828660@ubuntu-m3-large-x86> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-01-15, Anders Roxell wrote: >On Fri, 15 Jan 2021 at 20:28, Nathan Chancellor > wrote: >> >> On Fri, Jan 15, 2021 at 08:13:30PM +0100, Anders Roxell wrote: >> > When building mips tinyconifg the following warning show up >> > >> > make --silent --keep-going --jobs=8 O=/home/anders/src/kernel/next/out/builddir ARCH=mips CROSS_COMPILE=mips-linux-gnu- HOSTCC=clang CC=clang >> > /srv/src/kernel/next/arch/mips/vdso/elf.S:14:1: warning: DWARF2 only supports one section per compilation unit >> > .pushsection .note.Linux, "a",@note ; .balign 4 ; .long 2f - 1f ; .long 4484f - 3f ; .long 0 ; 1:.asciz "Linux" ; 2:.balign 4 ; 3: >> > ^ >> > /srv/src/kernel/next/arch/mips/vdso/elf.S:34:2: warning: DWARF2 only supports one section per compilation unit >> > .section .mips_abiflags, "a" >> > ^ >> > >> > Rework so the mips vdso Makefile adds flag '-no-integrated-as' unless >> > LLVM_IAS is defined. >> > >> > Link: https://github.com/ClangBuiltLinux/linux/issues/1256 >> > Cc: stable@vger.kernel.org # v4.19+ >> > Suggested-by: Nick Desaulniers >> > Signed-off-by: Anders Roxell >> >> I believe this is the better solution: >> >> https://lore.kernel.org/r/20210115192622.3828545-1-natechancellor@gmail.com/ > >Yes, I agree. > >Cheers, >Anders http://lore.kernel.org/r/20201202010850.jibrjpyu6xgkff5p@google.com Personally I'd drop DWARF v2 as an option.