Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3543310rwb; Tue, 20 Sep 2022 00:50:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6tf9Nso72ZZqrE/erFlIsVrIezFCIht1loIbYS1oS1AXU0xmWGfunzmReaRFtYQZHHRacM X-Received: by 2002:a17:907:1c96:b0:780:602c:677c with SMTP id nb22-20020a1709071c9600b00780602c677cmr15774528ejc.736.1663660244096; Tue, 20 Sep 2022 00:50:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663660244; cv=none; d=google.com; s=arc-20160816; b=hg7nclfEbISEsesegpflC8vqvaIH4DODZJsm6IoKqMHc5aMeh9H5PxRDBevdqkMYyR n3SZ1SKsR7Cy72OrWawntH9r325d+6Xslhs/h7zEbdW9zXDJiXeDkP5aemgD9aWwri6c hB79LN3/CLy3ETtK8eEvDWcVEMUjiWglNYnALEfrQHeIc2vyOxOYJFn6/ApACy5AKFzi Dm/gwI2lmYY5Qbk8NcidrRBHoPaevzuNrD3kdr3d++gt0VZAO5GGcqi+Oh70n85S5X4z 4acc6gPol/u8YakdU9AsfzoSsMp3FtAKhR1VFYyibllAxAaoBi+Bcyd8UwgOu2TbQWhR oyvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=fX3cfjTurQcJbjhxx1f5tFY0UuNK5LiKglG/Nw/7yD0=; b=e9IHwJE7Z/UEgAKPNu1cyoDgyhcdNjUU16hU9YVfkDKdnV/Jjal/PTNvo0zWEaIsW9 JeYjz08WoGNLkdZ8uoWX5YVZG47j+meEi51gCe8ScIgNKy0dGPMuFz/UbiqcZ23rcLbw 3SdhuSCcPxPnhdDGoj18YcNcnWoPhfl2h1lHmpaqc3jiLZiErL9/FWZnGhx1jbPt6cvo C+8xzxYHjcB9dzr4ch70ar/+8JXBqF3g5o5+j34buw4gxrPUeLxUdMCFUKLbX0usF+Gm 46ik2s+IsYJpEXo9nv8HFCN54KptkIHL4KTyUDdklbzo/caKqecosawA7Uq2AHWJtnlZ Qzhg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh38-20020a1709076ea600b00731417f551esi798839ejc.283.2022.09.20.00.50.19; Tue, 20 Sep 2022 00:50:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229772AbiITG4o convert rfc822-to-8bit (ORCPT + 99 others); Tue, 20 Sep 2022 02:56:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbiITG4k (ORCPT ); Tue, 20 Sep 2022 02:56:40 -0400 Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 296C75EDC2; Mon, 19 Sep 2022 23:56:39 -0700 (PDT) Received: by mail-qt1-f177.google.com with SMTP id a20so1080946qtw.10; Mon, 19 Sep 2022 23:56:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=jnB/DbrbGanbxVwCjd/Ml8VBjC8cTxJXPqA4S/aHfpE=; b=n3FlpmJHbWKDiWPnCuS9WndvYCjqD2D5AqnbX8XU/2CwawPRfS5/8hslhrwDcS3cUu NehdqU/7ee7V95hHdT7ghw14f33EVoH+SmdkJFrUJp0SRGj/OvLbUx76p4haTfAXZmpR TYKkpkzjclzhme3417BCXtOYX5XlOgs9W2YhowpauyqV3eFLz2BykuYH3Vt3fEcJ1wk1 sSIc9uyUM1BDR6nBXUWtH2eZqqjxRwn05AS4+P2ilbbqpAgM7Iw3WAtr7eH0+ibiy+N6 w5fFzxiiTdz4Cjmjf9H+T4FQtSVkYKanEyOR1Ym9t4bfQNl+vHKM5mLw6RI3G+DkIo8B 7i/g== X-Gm-Message-State: ACrzQf2muwLwbbJwhAwUjIlpYMmuzI70PVnR+56V/gFAZhTuBmQMdIqK ljpvwjQ4d3mPrymOwNf0hTdYtBUP6d+U4g== X-Received: by 2002:a05:622a:1189:b0:35b:b923:3667 with SMTP id m9-20020a05622a118900b0035bb9233667mr17971066qtk.165.1663656998011; Mon, 19 Sep 2022 23:56:38 -0700 (PDT) Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com. [209.85.219.169]) by smtp.gmail.com with ESMTPSA id fx9-20020a05622a4ac900b003434e47515csm426025qtb.7.2022.09.19.23.56.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Sep 2022 23:56:37 -0700 (PDT) Received: by mail-yb1-f169.google.com with SMTP id c9so2038880ybf.5; Mon, 19 Sep 2022 23:56:37 -0700 (PDT) X-Received: by 2002:a25:3746:0:b0:6b1:4a12:b2d5 with SMTP id e67-20020a253746000000b006b14a12b2d5mr15187723yba.89.1663656997347; Mon, 19 Sep 2022 23:56:37 -0700 (PDT) MIME-Version: 1.0 References: <20220906061313.1445810-1-masahiroy@kernel.org> <20220906061313.1445810-8-masahiroy@kernel.org> <20220919225053.GA769506@roeck-us.net> In-Reply-To: <20220919225053.GA769506@roeck-us.net> From: Geert Uytterhoeven Date: Tue, 20 Sep 2022 08:56:25 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 7/8] kbuild: use obj-y instead extra-y for objects placed at the head To: Guenter Roeck Cc: Masahiro Yamada , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS 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 Hi Günter, On Tue, Sep 20, 2022 at 12:59 AM Guenter Roeck wrote: > On Tue, Sep 06, 2022 at 03:13:12PM +0900, Masahiro Yamada wrote: > > The objects placed at the head of vmlinux need special treatments: > > > > - arch/$(SRCARCH)/Makefile adds them to head-y in order to place > > them before other archives in the linker command line. > > > > - arch/$(SRCARCH)/kernel/Makefile adds them to extra-y instead of > > obj-y to avoid them going into built-in.a. > > > > This commit gets rid of the latter. > > > > Create vmlinux.a to collect all the objects that are unconditionally > > linked to vmlinux. The objects listed in head-y are moved to the head > > of vmlinux.a by using 'ar m'. > > > > With this, arch/$(SRCARCH)/kernel/Makefile can consistently use obj-y > > for builtin objects. > > > > There is no *.o that is directly linked to vmlinux. Drop unneeded code > > in scripts/clang-tools/gen_compile_commands.py. > > > > Signed-off-by: Masahiro Yamada > > Reviewed-by: Geert Uytterhoeven Where does this R-b come from? It was not present in Yamada-san's posting. Added by b4? > The following build failure is seen when building m68k:defconfig in > next-20220919. [...] > # first bad commit: [6676e2cdd7c339dc40331faccbaac1112d2c1d78] kbuild: use obj-y instead extra-y for objects placed at the head I did provide my R-b on Yamada-san's fix for this issue, which was sent later in this thread. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds