Received: by 2002:ac0:cd04:0:0:0:0:0 with SMTP id w4csp281952imn; Fri, 1 Jul 2022 15:09:46 -0700 (PDT) X-Google-Smtp-Source: AGRyM1siHFlvgvKm+I1l/ZTBjGAGEWmuvq3U+/vOtUxnIJlwKkh/HwkcLXkQLRShKeFw77yen2kb X-Received: by 2002:a17:90b:248b:b0:1ec:9869:59a0 with SMTP id nt11-20020a17090b248b00b001ec986959a0mr18711420pjb.37.1656713385797; Fri, 01 Jul 2022 15:09:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656713385; cv=none; d=google.com; s=arc-20160816; b=FRf0kbx89FihSxOT3A1+IMjEp2ZFLemG+LuGmflkIlUuaot+nODRreM8fwOcOAbX9t ECN9/6YH16xyy3R3lV2UYwEw7xmoz1kil/EpM+5KEEw01Djhg8vGtBQvtWvvX/pQHZUs 4nWXgPY9Qn7SS2Hk/F/JaOwaPD2yGMbjm61t/BrbIOQKOn1NjPPq5GulbZbJSKETZWSO E+zQE6lIoKgqP6FIxjezu8Cuouh713WN1qFVrXMu9DkX6lI6WUznj7nZk/wLGvxXplTw ejydqUhH03IaUukbngKbPYosRNSg+TK1ReBKDxVKDOhUh5J5OpKCpwYDhruCBJub+x4D mpMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=9Ab6xgNj5PtuiyxXfeQMXpkH7HijIo0PSP2H54i4vy8=; b=ysaZxEUOQKyQCyxi1PFmr/JME1xgxr0YIFa/KRC1XAB2Dw4f1tHbSqlXxx+N1HU1ec OtvgQ9tKfZ9LcF5POQoAoeUDPA5x2uCsgTTjoZpJkw137ye16H043SrFdgNbY0uSMFMr MuCqhyFKG7ThF7ggBS+ur/iKdw7G6vLWl2mDNxOZ9RKL6jj1j0v7Aw0aOWwexYyPy2Sg EjbWpLFTqjxSI8VQ+FfxhvSiAwo5cS5s8wOr+ewQ4S9TXHa1R8pZqV8Zx1XlyfSuhEBb 8X9n0qk6bwoKE0AeZcb+OtO+muKhdShh4QQrLDjMRmAicD1Aaf4yWr9zIJV8PuOrjTn5 ThIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=D1iQUQS3; 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=yahoo.ca Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1-20020a170902ea0100b0016362d70cf1si37473353plg.50.2022.07.01.15.09.34; Fri, 01 Jul 2022 15:09:45 -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=@yahoo.ca header.s=s2048 header.b=D1iQUQS3; 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=yahoo.ca Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231557AbiGAVEx (ORCPT + 99 others); Fri, 1 Jul 2022 17:04:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229911AbiGAVEu (ORCPT ); Fri, 1 Jul 2022 17:04:50 -0400 Received: from sonic315-55.consmr.mail.gq1.yahoo.com (sonic315-55.consmr.mail.gq1.yahoo.com [98.137.65.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A70F55A465 for ; Fri, 1 Jul 2022 14:04:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s2048; t=1656709488; bh=9Ab6xgNj5PtuiyxXfeQMXpkH7HijIo0PSP2H54i4vy8=; h=From:To:Cc:Subject:Date:References:From:Subject:Reply-To; b=D1iQUQS38g4BOfgnfBme8TyDU2Zj+FumGOlqnnGZ12YK4ts2pUNwa3t3x8JfBKC/8jZFCqCLytNBCAqw3ARvjqp827WYacf96sPciiyPcqY4IkTmq3GZYMS61kv3WRH9eehUIJFTsil598u5kWhs7c1ddZm5Oj5IAohjxb5QSP/XRB9JIoJVKj3OuYZgIG5CkVvgHlPp9ZZBxrtcFczVFiD3w/pRLFJGw3TGhigOprX10/qVVRQP8NzqwbulMVcByq9OjWMZe48QgI52XBROE9uZ7xPAa4eCSNREYhqVMV9mt6VsAhFV+1k18BDQUQzQymcd8jHqhajwaZ1bNz5FvQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1656709488; bh=EOi6gM3terRj944+hkG3raif54ag1ZICwMZFSQy2joB=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=MYUfNqjwxzARrZDH3z1tgOwK+XtXMQ2/tLEcKuNjh3tv8/LIqL1rYZm8P5X/B0RpVy9U/HWPzEp2vLbbzrRB8rrPV8RGU+JbrK7uCV99dNFH3/+l2vteooO2Ezra2Owh2o5yNNVo+cfkypk3C+wEjMksWVTTpq74VWK3chqkDmLwFZepieMoUZh8AKjtY0NVl/WhYsSe7f2KFHodGJBKJDAHrXUyoTn/XoJHcavsX2J7WL9tjzrQ91HcN7spvxDWyUCa7lZv4/5GVfsQ0lC3QAdg3/4DX+nyNwEqcQ9L/oMy87E04/euzvzTGnrUAEFmgYMCXnpGMjrWafIGMfAGNw== X-YMail-OSG: W2EEy_wVM1nOr1HLCtu51Bey116UsM9pMw2Ap35HBst3DlnMiHPJ7pvtM41k71o .i9VO3p6V0crEjD5QxkXn7ku_l9J4rKAYZ400J0b72HN0E6rwhoXa4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iiLavgTo5cYy00aNgTojuKIeZEqhinq4CtXk1VJJJy3bZRHWKb_ReYJEoOZc- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Fri, 1 Jul 2022 21:04:48 +0000 Received: by hermes--production-bf1-58957fb66f-dd4hs (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID fa1946aa1fae24efe50afcfc6dcc1acb; Fri, 01 Jul 2022 21:04:42 +0000 (UTC) From: "Alex Xu (Hello71)" To: Nathan Chancellor , Peter Zijlstra , x86@kernel.org, llvm@lists.linux.dev Cc: Andy Lutomirski , "H. Peter Anvin" , Nick Desaulniers , Masahiro Yamada , linux-kernel@vger.kernel.org, "Alex Xu (Hello71)" Subject: [PATCH] x86/Kconfig: Allow X86_X32_ABI with llvm-objcopy in some cases Date: Fri, 1 Jul 2022 17:04:37 -0400 Message-Id: <20220701210437.579322-1-alex_y_xu@yahoo.ca> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit References: <20220701210437.579322-1-alex_y_xu.ref@yahoo.ca> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 According to the comment and commit message, there are issues compiling with IBT and/or compressed debug sections. Therefore, the condition should be restricted to when those are enabled. Signed-off-by: Alex Xu (Hello71) --- arch/x86/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index be0b95e51df6..e5af1088420e 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2847,7 +2847,7 @@ config X86_X32_ABI # compressed debug sections to x86_x32 properly: # https://github.com/ClangBuiltLinux/linux/issues/514 # https://github.com/ClangBuiltLinux/linux/issues/1141 - depends on $(success,$(OBJCOPY) --version | head -n1 | grep -qv llvm) + depends on !X86_KERNEL_IBT || !DEBUG_INFO_COMPRESSED || $(success,$(OBJCOPY) --version | head -n1 | grep -qv llvm) help Include code to run binaries for the x32 native 32-bit ABI for 64-bit processors. An x32 process gets access to the -- 2.36.1