Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1588355ioo; Sun, 22 May 2022 20:15:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz854oxH+nrsc9mW4qdoTMV6MbA6E7BN9B+WxwcN6P/ygCghlepWXAEXjsrDVAe6krPNbMu X-Received: by 2002:a65:42cc:0:b0:3a9:f71f:33f9 with SMTP id l12-20020a6542cc000000b003a9f71f33f9mr18642195pgp.391.1653275729404; Sun, 22 May 2022 20:15:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653275729; cv=none; d=google.com; s=arc-20160816; b=HM9sGbYz91LwAljM9U1NzcjDNKW0NQn0oy3dIW1hZR2mXX48huFY5LD0yhkyjkK/j6 bwlXoKQxzxWiAh2wgEoMjJBf/mnWnMU1PZXp+5IGe3IzeJ2f/maAVT6tcvsZPiLXij5A yqSw/xXGCG0Ye+sVgx2ztgfmYttH4FOaaPk+zb2aLOsEgVimyYAf3DZAAXIhLfv6cvPZ FDOoZY6NagP403Q1hRB1JIsbPFMbehP9FRouhi8eCVK1KOjA/ipVXYVcuKffJ6/ZmyQD Nark4xxPFAunZ8Xn90tpuofJuTpoHTqZAbHBmn+dZkWXtXrh3Y35b72UWi2qGYvNhTOj lhTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=5TwfumVCNM+fvix8eWg6i86pc65IzESlNEbAwwhHqrU=; b=nEsAXKRP8AU+z/ImTc73wtqHXnygX/b8fLrJum42Q7x1PV8syWb6uKpKXkUEAiBN4s OWPb0d7ijTXZq38K8Z3TB7DHpiXdcUyY7GRew8nVzBCaSQdSuSEpFCRajALU1+YReRCO 6SqNDreggQ0zI+38ATnaLKGIyvyQNhgt7f/hM45dYEia2zONMwmGBA79xX7wZMYPXsw+ VMZoFtT0s5CPz9mDVNpaqai8wG9FyzU2hD0VeLW0JeB8czRJVLQXmaOy1lZPR7E/Bcog MHZALothgaFsF/0xiBH1WMtuSrvnpeOF3Irtr2RioF4h0lK7PHaXWus3KCzZNPmi+8q6 nrrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ojV6XLeO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c17-20020a170902d49100b00161874c8db0si10542674plg.34.2022.05.22.20.15.18; Sun, 22 May 2022 20:15:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ojV6XLeO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244950AbiEVGul (ORCPT + 99 others); Sun, 22 May 2022 02:50:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244601AbiEVGuj (ORCPT ); Sun, 22 May 2022 02:50:39 -0400 Received: from conssluserg-03.nifty.com (conssluserg-03.nifty.com [210.131.2.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 145CA366A8; Sat, 21 May 2022 23:50:36 -0700 (PDT) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 24M6oAek017213; Sun, 22 May 2022 15:50:11 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 24M6oAek017213 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1653202211; bh=5TwfumVCNM+fvix8eWg6i86pc65IzESlNEbAwwhHqrU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ojV6XLeO60FMwlo+YWIjhWtRGEEawpk4CVTb4L9aglvOsxoK5f7z7QbZSOZfJ/tak alBhcAPXcIxYqPD77l9IRzaTuM1+hmJzoN/AY0CLlXq3RF133ODYyShafJ1NmxJjCa q0lpyWHvIylOEdH/w5NWWS57WrNaaAJ1LH6EpwkqOq/sHCzQtTbTby/WMAjGehyBu4 kVp9a8pzx79AFXB+F86AeNMng169Yna619lykZelRBT/YmqMzU/NmFg613kiYe1zhM gliHIyRLAvkJUkXtL+XM5BQLs9Sn5t2kQlyC6svng8bF7Ur/kDDSJ0tasHLmdhpwVA 4ZAHOIk6oYabQ== X-Nifty-SrcIP: [209.85.210.176] Received: by mail-pf1-f176.google.com with SMTP id j6so11048580pfe.13; Sat, 21 May 2022 23:50:11 -0700 (PDT) X-Gm-Message-State: AOAM532fMMBst104p0OK6IfasNpJJ+yYm0/NoVVgVsywwWk3D97q1g1L YfOKYFhFVqsZOA/3WLXxgrlEa/opzqqV8kKt0/c= X-Received: by 2002:a63:9043:0:b0:3f9:6c36:3de3 with SMTP id a64-20020a639043000000b003f96c363de3mr8127619pge.616.1653202210391; Sat, 21 May 2022 23:50:10 -0700 (PDT) MIME-Version: 1.0 References: <20220513113930.10488-1-masahiroy@kernel.org> In-Reply-To: From: Masahiro Yamada Date: Sun, 22 May 2022 15:49:33 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 00/10] kbuild: yet another series of cleanups (modpost, LTO, MODULE_REL_CRCS, export.h) To: Sedat Dilek Cc: Linux Kbuild mailing list , Linux Kernel Mailing List , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Peter Zijlstra , linux-modules , clang-built-linux , Ard Biesheuvel , Sami Tolvanen Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 22, 2022 at 10:45 AM Sedat Dilek wrote: > > On Fri, May 13, 2022 at 4:31 PM Masahiro Yamada wrote: > > > > On Fri, May 13, 2022 at 8:42 PM Masahiro Yamada wrote: > > > > > > > > > This is the third batch of cleanups in this development cycle. > > > > > > > > > This series is available at > > git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git > > lto-cleanup-v6 > > > > Hi Masahiro, > > I cloned the repository on top of latest Linus Git. > > Not able to boot in Quemu - Not able to boot on bare metal. > > $ grep module_layout log_quemu-5.18.0-rc7-2-amd64-clang14-lto.txt > 366:[ 2.173265] floppy: disagrees about version of symbol module_layout > 367:[ 2.198746] scsi_common: disagrees about version of symbol module_layout > 368:[ 2.205573] i2c_piix4: disagrees about version of symbol module_layout > 369:[ 2.210610] psmouse: disagrees about version of symbol module_layout > 370:[ 2.225138] scsi_common: disagrees about version of symbol module_layout > 371:[ 2.235536] scsi_common: disagrees about version of symbol module_layout > 375:Begin: Running /scripts/local-premount ... [ 2.298555] > crc32c_intel: disagrees about version of symbol module_layout > 376:[ 2.303335] crc32c_generic: disagrees about version of symbol > module_layout > 377:[ 2.306667] libcrc32c: disagrees about version of symbol module_layout > > Infos: LLVM-14 + CONFIG_LTO_CLANG_THIN=y > > My linux-config and qemu-log are attached. > Thanks for your testing. I was also able to reproduce this issue. The problematic parts are: [ 2.298555] crc32c_intel: disagrees about version of symbol module_layout [ 2.303335] crc32c_generic: disagrees about version of symbol module_layout [ 2.306667] libcrc32c: disagrees about version of symbol module_layout When CONFIG_LTO_CLANG_THIN=y, I cannot see any __crc_* symbols in "nm vmlinux". Perhaps, LTO might have discarded all the __crc_* symbols from vmlinux, but I am still checking the details... -- Best Regards Masahiro Yamada