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 X-Spam-Level: X-Spam-Status: No, score=-23.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC378C433DB for ; Fri, 15 Jan 2021 20:14:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BAE4023A9D for ; Fri, 15 Jan 2021 20:14:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732623AbhAOUOf (ORCPT ); Fri, 15 Jan 2021 15:14:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731808AbhAOUOc (ORCPT ); Fri, 15 Jan 2021 15:14:32 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21C37C0613C1 for ; Fri, 15 Jan 2021 12:13:51 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id g15so1545363pjd.2 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=PS7wyTfL6I+6Ni66Ol3C7gLr+3P3+3cVHNhk9qat6QYJa78dXdX1pdfLP3+8g7gG4/ UnQXHmzo76V8fuwQe1pcy3ZH0vrKNPByG1QGgEFboDrGoqe3xkvxHhICa+bQvnMKyD0L 4STA+Prc79Q4YLmkjxa6M6opBj33upnJhZIBh5sqS9L9NXEn01OexCByRYLSdzjRbZSj 6CKrnqZWHLicfxRi2Tt11dBTYpg8fkOjihbmJ/yco6qqUEoukjcYe2YciZRPqq1iRpoZ ZynUf9fE6V+BEZI3qpt2vP0uvIC+cqTzrYDB4P2OSCC4vhmN+4R2tnOxr0A7t4JKS+w5 Bzcw== X-Gm-Message-State: AOAM530C2zh4Hw5BIh+Ax6v0Fkp5uOeOSZxCYsoEXhGa4yqatVO2X8WL nT1ANrbqX07s2Q5O3zi6O0BsHQ== X-Google-Smtp-Source: ABdhPJwEy4qrdpiIwQ69TYq3HbseCL07DGtLTG+q46XfBrmFaDHSGzoORVM5MwqyY0NAdmKJqV1W1A== 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-mips@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.