From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30442C43334 for ; Wed, 6 Jul 2022 00:09:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231219AbiGFAJ0 (ORCPT ); Tue, 5 Jul 2022 20:09:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbiGFAJY (ORCPT ); Tue, 5 Jul 2022 20:09:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61D9A18349 for ; Tue, 5 Jul 2022 17:09:24 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 01E366119B for ; Wed, 6 Jul 2022 00:09:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7884C341C7; Wed, 6 Jul 2022 00:09:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657066163; bh=nmM87fXlEUHDXHmTIV5KiaJWvg7wd0eeXa7YN6/Enho=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=RCifeka0nYKgQl8dl2nBrU++6Xatlkma1RYc+qHu9nfG8sE8w85duz9aAnsitto54 IfP88SZ/5Z5BQJ/ZD3i00Fk/DlBagjViR0dvElzw2g0vepr1ZirGkm/TsWOAuQt7+E pLm9w7TXDMPiJmDYNXoEPhmdtVc+5aSpahoE1KJwPfYKCsqAkLZinmeV9u9tU0tRst eszx/GQR2/dUiXAIAzgU2sTwfJuXcF5nhsHZBF05MFDRvKOIborijnvjwWLfHinW9L bw0Jd789ilulddyeKtl/fQ9UvSs2fJez/hi2vuVb9wAY633FQUQNLxuMuZ0KOJLq0H hM/gcgNmxWo/w== Message-ID: <6cf4bab7-8c38-a2ee-07b9-fc95f901d2cb@kernel.org> Date: Tue, 5 Jul 2022 17:09:21 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH] x86/Kconfig: Allow X86_X32_ABI with llvm-objcopy in some cases Content-Language: en-US To: "Alex Xu (Hello71)" , Nathan Chancellor , Peter Zijlstra , x86@kernel.org, llvm@lists.linux.dev Cc: "H. Peter Anvin" , Nick Desaulniers , Masahiro Yamada , linux-kernel@vger.kernel.org References: <20220701210437.579322-1-alex_y_xu.ref@yahoo.ca> <20220701210437.579322-1-alex_y_xu@yahoo.ca> From: Andy Lutomirski In-Reply-To: <20220701210437.579322-1-alex_y_xu@yahoo.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/1/22 14:04, Alex Xu (Hello71) wrote: > 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. This whole situation is gross. We code in the vDSO that needs to dereference a genuinely 64-bit pointer. The x32 toolchain doesn't understand this, so we have a massive hack using objcopy. I see a few solutions: 1. Keep the hack alive, with further hacks like this patch. 2. Drop the x32 vDSO. 3. Drop x32. 4. Get gcc and/or clang to add actual support for this. I admit I'm partial to solution #3. I wonder how practical #4 is. --Andy