Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2358239ioo; Sat, 28 May 2022 11:10:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgVzaVWQz22gLmIksqM9S23Pd1hQvokG5dH0PdM5S2PkHJfZfHSVa1Y1NhYbi7bmZ2Gb4B X-Received: by 2002:a05:6a00:814:b0:518:a6f8:445d with SMTP id m20-20020a056a00081400b00518a6f8445dmr29533695pfk.68.1653761412308; Sat, 28 May 2022 11:10:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653761412; cv=none; d=google.com; s=arc-20160816; b=zd4NzAwqW2hULqgoxRFiyEgwLVGDLLIO3IrwG/y5XJ022FkXxrW2enlaY0Dt6nBbDV i9HaIDllDir2/suMaK4atN93lzJ9yEmZ5p3caD586j0cyK02rha16jtRCC2k4RCisZal 6whk4XBjheZ2sTGIvzl2YYlr1NhBeTvkDFH2BOHx1hx8mMZfLRoH/Llwm2mC1oa8bfPL 7WplN9ez7yQ7GmQJMU4VB+cN6UqrZ7MXzWorYeVfy+E2lbIC9alBuXdeHaezVsQdGUoR CNb41Eb9hC7juGGP8ELZesScubAUs+IYepoYsR7oHvWMVMf84bJ/Yh2X1BKR25mOZiLq vy5g== 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=uOIDWJ8nKzaQ9BGe8N8M3AtTjWOiIAuF9sunOv+fNxY=; b=x/XXjmB+Uw2VAx5LbJp8fNC4ERzKG3bzRLn0ujbJRnco96VQmaiglNXOUd1MTKDf1e PQCgIEqKhQanHsFD2BVPJ44hCYO8wqEXD1qf1eG9B+9K8LbGpx93rOh8JUGgZtM719pY qtrs39ujfMs2OAVdLodrhfJ04MbXHeKc3EwZA/y53CXGRw8ejadVleFWa1kvs0P9mOdW cezOibITDaeO2/R6u9iCKD2rfF9i/cBoa5BUhFlWSZlECTDThx1pO+fyuoeCjfTPkltD eiBqlk/5Z2CwX4eyQN8oYBrwdSN2xDVODJPQVLIKoy2cJ6AVxb3Xm0J3WosDFQQnWJZR Ecpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="Q/hghU83"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r4-20020a17090aa08400b001e25e39526fsi6116297pjp.29.2022.05.28.11.10.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 11:10:12 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="Q/hghU83"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 94C0413CFD; Sat, 28 May 2022 11:10:08 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239013AbiE0GGx (ORCPT + 99 others); Fri, 27 May 2022 02:06:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233378AbiE0GGu (ORCPT ); Fri, 27 May 2022 02:06:50 -0400 Received: from conssluserg-01.nifty.com (conssluserg-01.nifty.com [210.131.2.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E96BD13D2A; Thu, 26 May 2022 23:06:48 -0700 (PDT) Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) (authenticated) by conssluserg-01.nifty.com with ESMTP id 24R66Ki6015921; Fri, 27 May 2022 15:06:20 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 24R66Ki6015921 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1653631580; bh=uOIDWJ8nKzaQ9BGe8N8M3AtTjWOiIAuF9sunOv+fNxY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Q/hghU838DgUDVdTkg2Jck4N4OhCRplB5FYYBOPWKSYFF9sxNLbnBBgLvNrg5CtLo VX+78YcZyJNpBCd5r3QpBQsVDYLuQui6aryDrTagkb/Lw7CKBbWSb/NGQUx1afJw1W jwqypzo9drZ7n/1mY7FtHffNVqtGU0FkLrYmH4fl6wbG520+ooJK4PTCf+puGmuQ+l hwNuEqMlyvn1/jlzypyH597omXMz0me0FneCFJ4ge+WgnmvscndxBlFY9ne5ZDSiNg RwJAUNdPsXtzqGoTOgXxlgoTXg4GKoRJGtwDIv2vavGcWJmPE3BBO+JUPCXyP8CzaO Pw9XClt8tYOWg== X-Nifty-SrcIP: [209.85.215.175] Received: by mail-pg1-f175.google.com with SMTP id 137so3124178pgb.5; Thu, 26 May 2022 23:06:20 -0700 (PDT) X-Gm-Message-State: AOAM532DJMlndZFkmrXPZ3RfOiHDoXQLSlp7y3uGlCaEZEaKXXzyw+63 1TuvB2nTIIDV9X1CSQAT4pSH/vVa75brYbQX0pw= X-Received: by 2002:a05:6a00:234b:b0:519:c7c:e58b with SMTP id j11-20020a056a00234b00b005190c7ce58bmr8125105pfj.32.1653631579782; Thu, 26 May 2022 23:06:19 -0700 (PDT) MIME-Version: 1.0 References: <20220523142431.10ff2f77@canb.auug.org.au> <20220523154758.11668628@canb.auug.org.au> <20220523162307.45dycvqld7maaj7l@treble> <20220527044711.hrqxx5gz3jghydax@treble> In-Reply-To: <20220527044711.hrqxx5gz3jghydax@treble> From: Masahiro Yamada Date: Fri, 27 May 2022 15:04:57 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: linux-next: manual merge of the tip tree with the kbuild tree To: Josh Poimboeuf Cc: Stephen Rothwell , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Peter Zijlstra , Josh Poimboeuf , Linux Kernel Mailing List , Linux Next Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE, 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 Fri, May 27, 2022 at 1:47 PM Josh Poimboeuf wrote: > > On Fri, May 27, 2022 at 11:19:02AM +0900, Masahiro Yamada wrote: > > [1] original behavior in Josh's commit > > > > $ git checkout 753da4179d08b625d8df72e97724e22749969fd3 > > $ make defconfig > > $ make -j8 kernel/ > > $ head -n 1 kernel/.fork.o.cmd > > > > > > I do not see the "--linked" parameter in the objtool command. > > > > > > > > > > [2] behavior in linux-next > > > > > > $ git checkout next-20220523 > > $ make defconfig > > $ make -j8 kernel/ > > $ head -n 1 kernel/.fork.o.cmd > > > > I see the "--linked" parameter in the objtool command. > > > > kernel/fork.o is a direct output from GCC, > > not from linker. > > Yes, good catch. That flag should only be used for linked objects like > vmlinux.o or some_module.o. > > Objtool only runs on such objects when CONFIG_LTO_CLANG, > CONFIG_X86_KERNEL_IBT, or CONFIG_NOINSTR_VALIDATION (vmlinux.o-only) is > enabled. > > -- > Josh When CONFIG_LTO_CLANG=y or CONFIG_X86_KERNEL_IBT=y is "--linked" necessary for single-object modules? "single-object module" means a module that consists of only one object. See this figure: https://patchwork.kernel.org/project/linux-kbuild/patch/20220513113930.10488-6-masahiroy@kernel.org/ In your commit, --linked is passed to all *.prelink.o whether it consists of a single object or links multiple objects. -- Best Regards Masahiro Yamada