Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2551821rwb; Thu, 29 Sep 2022 11:41:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM71mb/awkGl1VtsLIh39/xcBihf8kdN6YGJ5Fv+Hb80JWvQk8ONgDvKka9u+XCQHpehJ8bF X-Received: by 2002:a17:907:6088:b0:782:e1a:42d6 with SMTP id ht8-20020a170907608800b007820e1a42d6mr3752187ejc.586.1664476883243; Thu, 29 Sep 2022 11:41:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664476883; cv=none; d=google.com; s=arc-20160816; b=mL1/Not2YjSIqwnkvnFlDGdD/sTgeIWAYlaV9Tatr/1U//jYULq7i3dfzPNHoc4mqN VTznTZhFMfgAaRm4s+fQbTo/KtzkDAdbAizs9hdACZhgdDQ3HW7S5XzcJY/3b/cpNCSK eoMLNfwZANe0p7vQ5ExslXxwZ+R9iCzW33jEOUfGlNtYM9w1f9rOBT2Vl6/PkYWDvMDo G5km3yI0GUFH4frCxB6KAwfqSaxtzIy9i+7XXKKJjjGfIFf3MbCkHYP7lOknRyUgH2nj 9ni2Ne9bVQrkHWekomV/LDv8xZLXXzgZFM9RKD7zR64V9B2yOPLE9Z6mxsobD2jk2kZE 5q7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=/N85yOCsWCEX0gYKiIN6j0gQlvT6Zmx5QES3AFiJr2U=; b=xtp8SYVihCf/oYYs7d5bN/UF9Q130p5+HAJNR+3vv9mlZTvwJy1alhTc40iZvDSdnG RxXcbbYVfhonXKlnuLnMa6O/L3PeRQmYTx7Mu86jhFNB8gKm5I6eDBE6cDawoI/1Ufwg 689+sr15l37HbzMIaB7a5JZS5p4zRt0Gldsy0eVTa+ZeSaNypHdce4+tB1f2eMt/RAOf WqrAHv8R1n7s+H6UfcwNwcIzSB9o0ENCe5fyPZNXMWoKjPwpl3wBUCZmLPWAUBCO+jVQ 6QdDlKVsQ6dKM6d7btzVurzPhi6DqwS+yN0r7uLexoqWLpP6o5dqleGH+eyLZ0Ivujxz Vo5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=0Gj46DYG; 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 oz34-20020a1709077da200b00783c42d2da1si8837144ejc.425.2022.09.29.11.40.57; Thu, 29 Sep 2022 11:41:23 -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=@nifty.com header.s=dec2015msa header.b=0Gj46DYG; 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 S235128AbiI2SOM (ORCPT + 99 others); Thu, 29 Sep 2022 14:14:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234024AbiI2SOK (ORCPT ); Thu, 29 Sep 2022 14:14:10 -0400 Received: from conuserg-07.nifty.com (conuserg-07.nifty.com [210.131.2.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80EE31F4963; Thu, 29 Sep 2022 11:14:09 -0700 (PDT) Received: from zoe.. (133-32-182-133.west.xps.vectant.ne.jp [133.32.182.133]) (authenticated) by conuserg-07.nifty.com with ESMTP id 28TICSkv009916; Fri, 30 Sep 2022 03:12:29 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com 28TICSkv009916 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1664475149; bh=/N85yOCsWCEX0gYKiIN6j0gQlvT6Zmx5QES3AFiJr2U=; h=From:To:Cc:Subject:Date:From; b=0Gj46DYGz21vO+suWpGp4MkBwHqTb4FEzSuWHV/J21EgycYV34eZQGMAkjUgFMOf9 8eHKS8upXIiGxguZlNn7cX85bc5JxJImNuaL7lLxsE2lRvMip7isqyeGYcO7hXm5G2 7z5TBs2Wmm2cJOA2FahSUH4NC+qrpzYXEblZd3CykFLlXt2zyFogl4nwcC6VANIB+S oH1UQFtihI5XY/pPYYOr1yHqNTzqDPyrU2ip2Qc1SGkzSWEoornqarBhxyyYAZY58F 0C12deiH0Z0DanvEV6HtPKp23o9KG/gvLSyxxXRTtvJu87YSeNPoly3vx8oXTo3St9 tWmlssaW3CF9Q== X-Nifty-SrcIP: [133.32.182.133] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Michal Marek , Nathan Chancellor , Nick Desaulniers , Tom Rix , llvm@lists.linux.dev Subject: [PATCH] Revert "kbuild: Check if linker supports the -X option" Date: Fri, 30 Sep 2022 03:12:23 +0900 Message-Id: <20220929181223.2502994-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL 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 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 --- 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