Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2556351rwb; Thu, 29 Sep 2022 11:45:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM51ScH4xoKuWg1R2d3hVCdlWVdwmTxJnKLsxBl24vhNOAExqFt6n9SXqAA3UiWWlWoaMW7T X-Received: by 2002:a17:903:244a:b0:177:f32b:19ff with SMTP id l10-20020a170903244a00b00177f32b19ffmr4875709pls.103.1664477116867; Thu, 29 Sep 2022 11:45:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664477116; cv=none; d=google.com; s=arc-20160816; b=TNKRT28J+byAkO7bvZZ1v/qEenbRHrHHyb2D4lOQ8FDk6dHdDdcD3aiDGr4n3xCQTA n0VbLt6I+br2hWhhudobhk18gabTV045Q5rCIiHUvxFyOZ9hFj62d6f8pxjY/CNNoSKz cvpvck81KIQcz+IwI8a/EFMpaRuZ312P5FO5sQswfbgxWavF3J8lBNoCbgIVHGs65def MIJ4sZb/xy7tP/Gq1zAovSEAvnsKJ7WpFi1pylSXIfh5tDq4rKzTgPQlbkGJENqinRi2 lErL15fV07aD7Z6vP04KVBDq98Vckpwwjw7beo040vaOFILW5m3QBpiuSpQo29U76u5/ sjeQ== 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; bh=nLT1oM8QWicP3ioul090HC9HcqJUN2HR9/MOAI6jcjw=; b=hdtyzeHLht+NfmrC80mAcu/tYLflP6X4rKIbXcDHKJGefPLJRxwugAbkOxmDAWGQl+ XSbcCeWyowHkpZYDM6h/zhihbCDPs4EmJjXtlvWQrjRJsG4PKbcioL8eVxcipA4x8hif vyzrcH0tQ4cZGJVGLKFypfLdtkmax2+jHB/5Y2JI/bAvHvUh7AHFMxsPel32Ue907QBb OxMIGnlIT/M0pip2I0ZbXw3UKCknidO68GV2Eu1hbkLL9Rcr+wIlig+iLIoyBJpaWLDZ 2DQk81tJkag6efgg4NiwVeNn85c46vB6jFmtA2RiKJC/3GK+BFf/9QOxqSDnX1faetkq 7gdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=PyxKzwY3; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mw11-20020a17090b4d0b00b001f06a6fdb2fsi6912311pjb.27.2022.09.29.11.45.03; Thu, 29 Sep 2022 11:45:16 -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=@google.com header.s=20210112 header.b=PyxKzwY3; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235386AbiI2SR6 (ORCPT + 99 others); Thu, 29 Sep 2022 14:17:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235182AbiI2SRy (ORCPT ); Thu, 29 Sep 2022 14:17:54 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 714481F7B00 for ; Thu, 29 Sep 2022 11:17:53 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id 9so2136540pfz.12 for ; Thu, 29 Sep 2022 11:17:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=nLT1oM8QWicP3ioul090HC9HcqJUN2HR9/MOAI6jcjw=; b=PyxKzwY3Vk3cc+OoJNLY60fNm4G3oIvAzdZrg5zVSCSu9dJnpznTMv65rbq0o7bUs0 aftRtgYyKLbKbW1jsThHQvsCzscd4nmC6CpORmJ11/rWWk5Z0XXcjfbhiIRvlPBTYtTu gfqnSfNydnHSwkxQCQv2yAcY6+mgM0PBw2YvUcZuI/+FLtAh6yUoYphJrSoporHYMaBF 3DoYLd05iu9KcIWKevhJhxS8DIynAEjsb4U6HeL1SNOtYXEIgY3Qijlx0977uB3GAT7V EJ46jHXtSxVp5ByJoL+ioZ9j9X9NqrBWPyqMMVqXaztBO8N9fd4SXySfUo1erlfkBdAw B4BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=nLT1oM8QWicP3ioul090HC9HcqJUN2HR9/MOAI6jcjw=; b=vFBAHdAFycVgnHB6RuE4YLtF6/2r8rFv4tK+kPtTZ1ih3rXj3HZRY1uZ/S68BtqQ1B IZCzWm/wlqgBuBGLXQIGKB+r9zEigOToCpgJMwzRCNjtl/zDRUajaDw9trs+2DUQY3/y M5XEQGnM/G3IB1ytM+QuIAP9cVdeDGjlXTa3PaKZOIkE3HYqbfRA0j/SYd/7LsBFLIqA psgF9a6Y0BxdB3UNb5RFARmHT0Rv/+Dj0yMphyhRk5DCxiSRdJRQtZSu/NW8zoG4afak z/9z7sLHrO/LLH/sQMZ7kRqYh2J2M2CefNrcpMVUkP/2Xz/CkIfzZRnBpZVXx2WWexQV 7+6A== X-Gm-Message-State: ACrzQf3lQwb1TB5jw5G44ihl/vdmr+4PTBQCYBIR661TuZXfRjNeB/9w SsbKChwky2U/hZ10F2L4EMTifKIymP66R09iP3/bng== X-Received: by 2002:a63:e709:0:b0:438:98e8:d1c with SMTP id b9-20020a63e709000000b0043898e80d1cmr4077179pgi.403.1664475472752; Thu, 29 Sep 2022 11:17:52 -0700 (PDT) MIME-Version: 1.0 References: <20220929181223.2502994-1-masahiroy@kernel.org> In-Reply-To: <20220929181223.2502994-1-masahiroy@kernel.org> From: Nick Desaulniers Date: Thu, 29 Sep 2022 11:17:41 -0700 Message-ID: Subject: Re: [PATCH] Revert "kbuild: Check if linker supports the -X option" To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Michal Marek , Nathan Chancellor , Tom Rix , llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Thu, Sep 29, 2022 at 11:13 AM 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 Thanks for the patch! Reviewed-by: Nick Desaulniers > --- > > 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 > -- Thanks, ~Nick Desaulniers