Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2372803ioo; Sat, 28 May 2022 11:36:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwX1+M0e7kBoORicC8SZ/zVYN1WxADseQ8AIpmrEM6l5Q9UC1qerPNzyhowt6I8gA4rXVHV X-Received: by 2002:a17:902:d507:b0:161:e0a6:d3d3 with SMTP id b7-20020a170902d50700b00161e0a6d3d3mr46030796plg.131.1653763017246; Sat, 28 May 2022 11:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653763017; cv=none; d=google.com; s=arc-20160816; b=RdAmX/wdel7dC9ExLVPLnDrxV8rySWCqSQ61pIWaBofwykkfDfcUjgYshyRGuwaEJW UUrvz/9/r6SgMZNWcaLMMJWyDOC4rJcD5vgC/TAuQJEeemOV3UGYvKMKFJjiL1MFduvt kOXduGy1Og8a5yDAlWVvaAIQqiAvT9oJ6qSxyA4URt+mHJuCSQFPtG2lmU5AwQ8bBSKK 4YgVXRYgsM/fhZ40sAkoNY8szUPrpSeeV2vveeX6hAgHmPwF6JDXLlnPWGS47An5S97f EURwPjtCnVrOp89QFFNI9YM3hTGA+Xw0OdBAmv/PpGdSOUdwCdioVX8WmeXRHrtJRmyV wVTQ== 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=/bh1BMczqGKpUsfEt9fMuejkTSQ/uvvzyV6FHrSw+ic=; b=Og5XW+IaJ79/YnDVTCDjdkktxk/m4pJ5ArobVOEV87gpDPj49OUS6gW2gmZ7gVYI50 9pdKfphMEoNLxNXGVxPWNzGSUZT1zkUydU0a9hSYUC5M1rCMTgjOP6gH6WMCHL1/OMp2 N6DpdBCxG1VGx1jQSWG7FUCKTxHRC7L124Sko+zQsdrL8D+XY3pgkIDaK9hs6o30ZyA0 zGJmGfgYjS3sjzTa/b45S7UkmuXlINpPpR6euiZXDKGywsjYD9QtHpkNoGTrZU0U0754 Sn/qP7ObQk+j1hR41zyqwM4vpfHlGID+bBrCFA1XgpuG6FslrRA7Fb/5HflNGcdne0Kw qXgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RB8t3Q7n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id ot17-20020a17090b3b5100b001e02ee8885csi7776613pjb.1.2022.05.28.11.36.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 11:36:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RB8t3Q7n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 2E1A218E0E; Sat, 28 May 2022 11:31:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353478AbiE0O7Y (ORCPT + 99 others); Fri, 27 May 2022 10:59:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229811AbiE0O7S (ORCPT ); Fri, 27 May 2022 10:59:18 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 725072656D; Fri, 27 May 2022 07:59:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 711AFCE256E; Fri, 27 May 2022 14:59:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C535C34113; Fri, 27 May 2022 14:59:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653663553; bh=5ZBNSbfmjq92LowajidklGD+Z02KoWvQUl31Q4yU7uI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RB8t3Q7nazMIVRBTyfQUPn68EkiuLAT8CGFZYfb/zXniLNDEE1HY3/VcK+cRkLnvs jJDJK+Nwe0yhCH/xk2DzopLFyzkEm0sTWsK/dgJJex8TDFX+mDL+DnHFwd2Kp+OiM5 5sQY6Er6cbQ69yyKbxhwBbnv1GDIn1rua4jv5+u8yoLWJqqvN8hC+wWypteDdDezpo PkflE4+Bi/+8Xe5/XV92rjQS0+meFviGLCcEO1gfmFKEtjaQoOX3cciqEPbgaSNj+b e6gllBRoXwZJa+6P3iiSRQtt2Xr+YEybqvbSJ2L6CgGrQZb9scBvzDJCzSIjtOAa+z XxKIloafgwV3Q== Date: Fri, 27 May 2022 07:59:11 -0700 From: Josh Poimboeuf To: Masahiro Yamada Cc: Stephen Rothwell , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Peter Zijlstra , Josh Poimboeuf , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: manual merge of the tip tree with the kbuild tree Message-ID: <20220527145911.fsr4wwlgymgtxcrr@treble> References: <20220523142431.10ff2f77@canb.auug.org.au> <20220523154758.11668628@canb.auug.org.au> <20220523162307.45dycvqld7maaj7l@treble> <20220527044711.hrqxx5gz3jghydax@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 03:04:57PM +0900, Masahiro Yamada wrote: > 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? Yes. > "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/ Nice patch description! > In your commit, --linked is passed to all *.prelink.o > whether it consists of a single object or links > multiple objects. Yes, we want to keep that behavior. Thanks! -- Josh