Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2555030rwb; Thu, 29 Sep 2022 11:44:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5VGSS2yn/ooB1AzWup04NSsW76uN9pDV0sDJTDABad73ex3Q5sjF+Y6NDteoBkksGOi/gZ X-Received: by 2002:a63:5762:0:b0:43c:c1b5:3e75 with SMTP id h34-20020a635762000000b0043cc1b53e75mr3981439pgm.380.1664477050369; Thu, 29 Sep 2022 11:44:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664477050; cv=none; d=google.com; s=arc-20160816; b=hNwi7jPl//3ZiKE+1IaFs60WEdVQe34Xxm1K5jAToAQw4EH+2bTzySO1+57ELh5IFy HyPP7ky6vMV6MIjGEDjgOsE5beb1LAmz03+rBBilEm9/t7Z8nxg0K+la/f2sK0Fbkc6R ZNT/iGhVJGWQt6bSQF/0bTZqq8idKf+71yxhqdxUZFZPJxlRcNjnejwSpx14nX44LWC9 BCz0/MgAKliWOJtIwhJq7AUfUYoVM2XMZU4votERlVaoEPWxWRPy3Pos5QKZV74APIYI JaIceZsDjs5z6VGntrLc3CwoUCbxKq2OiDzBOAYiNhLSKKjEVVDeUl5eud+Ey3kbqiHD 5j4w== 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=EBgLGn76P7wKwGE1hH+E1WvT1qSuIPHAm2YM/SoHo2g=; b=yi4igZhvDsMxE7vd+3jaXuwrFrJfy6Kvy+I5QJsEIcaTk7f7I4AlilY3rxZ6kfRCdL tTrie61juJrOT9sKDhaiqOs+xyhvX8xDSRSzvwbe4JK3RnrTiZmnSSEcs3hfIsnlE6FD JQ67+B92td8ArkLzCxZnI2NztXwXdEqFnqld9IXHTyyslpTnd1IJYD0CqLKZVjmnmXeK l8LmpEeCrQlvypwYek+TZxlvNOs7zwcD28tA6RkV1QpchA56yDNEsEsohe7rLXoI6bCE s1gINJXxBaHFolhnmWXNP29M5+6SlXKnPlDPDkP6SYr1gGaOgw/B5nQkFe8yR0+NYxRI xEPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZGuq76aY; 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 d4-20020a170902cec400b00176be2315dcsi514792plg.260.2022.09.29.11.43.59; Thu, 29 Sep 2022 11:44:10 -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=@kernel.org header.s=k20201202 header.b=ZGuq76aY; 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 S235708AbiI2SSI (ORCPT + 99 others); Thu, 29 Sep 2022 14:18:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235670AbiI2SSC (ORCPT ); Thu, 29 Sep 2022 14:18:02 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3894A1F7B2D; Thu, 29 Sep 2022 11:18:02 -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 ams.source.kernel.org (Postfix) with ESMTPS id A9B88B8257B; Thu, 29 Sep 2022 18:18:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05D8EC433D6; Thu, 29 Sep 2022 18:17:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664475479; bh=nDnHLzf58bxqnErR+eXLb4bIm338J8AUuIB1gu/k4CI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZGuq76aYxzPqms4X0Ukp+5q0L03XuDDezfS1SEF7JWCWjm8dxWNfnV5SZyUfSDDvZ PWuh2dZQfLK5fRKYkxm5CwhFbxNt5BFPWoR2JVwuFECX3Yn6V0iAQfL5RMZNesIxlN 64wKlKn4JOBC22HKLToKjDCN7Z1HTJUM90hbvP8wg+xS+3ymD1Cxl5L2RWfgorNDU6 Sq2r09C/xl3lDiBfEUP57QivbAewPkpoAncNpqR+t6G4bfWkKEX6KVLZlsM0jc2pwT fofSAxtEsmXCXnsG7IiB1JGLtUvyULedxDRkor814YApaTPciHS0BgHGSWiopImHL5 Ib/auPNvSVkig== Date: Thu, 29 Sep 2022 11:17:57 -0700 From: Nathan Chancellor To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Michal Marek , Nick Desaulniers , Tom Rix , llvm@lists.linux.dev Subject: Re: [PATCH] Revert "kbuild: Check if linker supports the -X option" Message-ID: References: <20220929181223.2502994-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220929181223.2502994-1-masahiroy@kernel.org> X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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, Sep 30, 2022 at 03:12:23AM +0900, Masahiro Yamada wrote: > This reverts commit d79a27195a33f4b5e591de5536799ad874ea6cf5. > > According to the commit description, this ld-option test was added for > the gold linker at that time. > > Commit 75959d44f9dc ("kbuild: Fail if gold linker is detected") gave > up the gold linker support after all. > > I tested the BFD linker from binutils 2.23 and LLD from LLVM 11.0.0. > Both of them support the -X option. > > Signed-off-by: Masahiro Yamada Reviewed-by: Nathan Chancellor > --- > > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index 49dcae886c48..d7c85ec79000 100644 > --- a/Makefile > +++ b/Makefile > @@ -1037,7 +1037,7 @@ KBUILD_LDFLAGS += $(call ld-option,--no-warn-rwx-segments) > endif > > ifeq ($(CONFIG_STRIP_ASM_SYMS),y) > -LDFLAGS_vmlinux += $(call ld-option, -X,) > +LDFLAGS_vmlinux += -X > endif > > ifeq ($(CONFIG_RELR),y) > -- > 2.34.1 >