Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3403773pxu; Tue, 15 Dec 2020 06:21:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjP3mULy1YMg6gkaEjQXmOt+V2/ghh5pDOLJIyulo+vF9WHNKmcBoVH7fAXOiSvLrKVR9c X-Received: by 2002:a50:d484:: with SMTP id s4mr29946475edi.13.1608042117361; Tue, 15 Dec 2020 06:21:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608042115; cv=none; d=google.com; s=arc-20160816; b=XRtD8ZQWxLYhncgMvtm/nI3DNnFD7KRDDscF9UTldNbalZSzp1URMKP5FM/i9M53lo NDFWB76P8CqgyMgZGIQfbxWzICVYyiVb48UESsreT5A+iXpscrI+SEr/uQ/Qur3zZEEr cmJ8pMezmkxsiNY3pqLOr2a+pBnwuNy/SWpVNCCkQfL6J9sugNX+CsNdfBvWjNBbIg3F D2ETyNMBFozYX66F5fziFNKjExhoG0q126Q2NwaMCXqiq5agaZpb/NSc+AuW1aNGFjy+ XoG64oeXJE0Ek/dTYev187xH5rRtYl1VYGKSYbb93kTYRYr9VGqMOTJiRnTQ8DY176yd ZzGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=1bnx5EdEGfUPPVFlJA5TuMEKPnAvsBZ6+mWZyLE9KPs=; b=SIOqv4b/TslH7S7EF7hIav/2BZ0Wic6FUKUxdVjsPCTICTudhzKGlV28fD7kUdcmV3 xHdgpi628+T8vC5keYbc6LdBwje+68EHrXdwyVbWjTKcoFmjzatzKYUrz9cb/x/FiqbS p243Q6R8vf2XleNyM97GKmaA8H6L/R2mQLTC3rGfKQ9JCRNYuccK2VuHlVSY9q3jAwo6 OimM/yTbz9ozu0kO0Hyap9rVCZCKkZLPzj3xiKhM3s6itLrs6qSZ8rOnu0k59qZvdSdr KzSgdwL4kKpM2HnZUZaU5V66W+lIUCYdGNat7TxWlkel6oBjoVtkQ+8ClJNBd6DYaRpc 4rWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l5si873846ejn.545.2020.12.15.06.21.29; Tue, 15 Dec 2020 06:21:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729034AbgLOOT2 (ORCPT + 99 others); Tue, 15 Dec 2020 09:19:28 -0500 Received: from elvis.franken.de ([193.175.24.41]:42342 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727879AbgLOOT1 (ORCPT ); Tue, 15 Dec 2020 09:19:27 -0500 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1kpBA4-0002PO-00; Tue, 15 Dec 2020 15:18:44 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 6A4DEC03B1; Tue, 15 Dec 2020 14:48:36 +0100 (CET) Date: Tue, 15 Dec 2020 14:48:36 +0100 From: Thomas Bogendoerfer To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Dominique Martinet , Benjamin Herrenschmidt , Catalin Marinas , Huacai Chen , Jiaxun Yang , Michael Ellerman , Paul Mackerras , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 2/3] kbuild: LD_VERSION redenomination Message-ID: <20201215134836.GA9946@alpha.franken.de> References: <20201212165431.150750-1-masahiroy@kernel.org> <20201212165431.150750-2-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201212165431.150750-2-masahiroy@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 13, 2020 at 01:54:30AM +0900, Masahiro Yamada wrote: > Commit ccbef1674a15 ("Kbuild, lto: add ld-version and ld-ifversion > macros") introduced scripts/ld-version.sh for GCC LTO. > > At that time, this script handled 5 version fields because GCC LTO > needed the downstream binutils. (https://lkml.org/lkml/2014/4/8/272) > > The code snippet from the submitted patch was as follows: > > # We need HJ Lu's Linux binutils because mainline binutils does not > # support mixing assembler and LTO code in the same ld -r object. > # XXX check if the gcc plugin ld is the expected one too > # XXX some Fedora binutils should also support it. How to check for that? > ifeq ($(call ld-ifversion,-ge,22710001,y),y) > ... > > However, GCC LTO was not merged into the mainline after all. > (https://lkml.org/lkml/2014/4/8/272) > > So, the 4th and 5th fields were never used, and finally removed by > commit 0d61ed17dd30 ("ld-version: Drop the 4th and 5th version > components"). > > Since then, the last 4-digits returned by this script is always zeros. > > Remove the meaningless last 4-digits. This makes the version format > consistent with GCC_VERSION, CLANG_VERSION, LLD_VERSION. > > Signed-off-by: Masahiro Yamada > --- > > arch/mips/loongson64/Platform | 2 +- > arch/mips/vdso/Kconfig | 2 +- Acked-by: Thomas Bogendoerfer Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]