Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1303504lqs; Sat, 15 Jun 2024 03:22:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUqRsqckHuyWymGdvCNLFUgO+Tx3p+ofQ5BUHAHoEN/tPVfpyGXo4f9XxZJGTv28U0qWTeqk0ogIqbCleVPL8IJLqnI7DBcsZDfsJf/hQ== X-Google-Smtp-Source: AGHT+IEcbsgplaMfBAYgu2y7tndcHhLz40f1O2fxpiAP+6f0z7j0rsAJobjV5bhA7rmhklytSAED X-Received: by 2002:a17:90a:a606:b0:2c4:c2ca:f3fc with SMTP id 98e67ed59e1d1-2c4db12c4c8mr4925978a91.6.1718446952210; Sat, 15 Jun 2024 03:22:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718446952; cv=pass; d=google.com; s=arc-20160816; b=x+H3ntwsz/EUuy+gF7PrFT8a6QMP3J6+5b7IwlCOKTh+abIKdVBMjRXHGmftJ+DoKE T+Ml2Sq/lmrvOmG51xJnNtmJMVx3JGgVR9C7aF1zAU/tneRMqhkgMERPP9G06Or0Rn+j oAiBdjGHjIEVLpZZPIzGaWplKDeUXyxIlfVJbrfMZ5+m9KOK9JBf3tUL3FCnrTpBhUEq y3Hyxc3gTcenxZAZYV1dOOYT203PjzZ5WzjA0/G6pfCi1UAcnO82894Pon7Imp0Vb3o2 uA0FfY7Hmfc36hFG7JuBwwr5ahHCKrVdKDUmebRzubv4wjmawlUxhZJ2DeuiAsbPXx48 I88Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=z/4ct20fL6n/MSP4ly2WP3P4LEcvbuop2G7G6jjJf/E=; fh=/PKwUTvbGWG7u9N/B70BkEU9miDF6HaySCyRZtBVnrA=; b=QEewjAkTEeAW0uCT+sUcm5JckJ2hFBjVFzVc+XbpMGCz2yVhmcP1072y9fAk7+hROp HaF7ZCcmZsurhXq+nErP3Z7RC6oVsI+8hibL/b8cbI40/K74ZmeWYMHgE4WGNzuFgPHx wOXKgSJLz6XKwtNLazZL5BgBDBmQpvDLbYbMnjQHI40g2qGEbBhuWUbdCluhvwCimNK9 xXtt1/ZTBWZSGkK0dY4FmtIYkXYPR12OnIqhb3RmPYIi9OTZAdgIUtqrdq42CUHfjq/D LAcsmxy9o69PX44cfxtM2GMvt0ABotu+1yJJb4GvIbUfy9Xz6SdGBZum/Z5K+HmJA2IT K2PQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=hHYIDjMl; arc=pass (i=1 spf=pass spfdomain=xry111.site dkim=pass dkdomain=xry111.site dmarc=pass fromdomain=xry111.site); spf=pass (google.com: domain of linux-kernel+bounces-215827-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215827-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4a772cc1esi7583498a91.182.2024.06.15.03.22.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 03:22:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215827-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=hHYIDjMl; arc=pass (i=1 spf=pass spfdomain=xry111.site dkim=pass dkdomain=xry111.site dmarc=pass fromdomain=xry111.site); spf=pass (google.com: domain of linux-kernel+bounces-215827-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215827-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C9942282FF4 for ; Sat, 15 Jun 2024 10:22:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3826B328A0; Sat, 15 Jun 2024 10:22:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b="hHYIDjMl" Received: from xry111.site (xry111.site [89.208.246.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F41622067 for ; Sat, 15 Jun 2024 10:22:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.208.246.23 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718446946; cv=none; b=X014Hyfogw1AzRxA8MRgnPRvIjKukS9MztlC5NEWPHqWDI3ydLw+vEt3kuH46KkGM4GCPBdvbCbgnnd7pnXWTfmR5RlXYASvlh5fDtwZzwEWoBAHkka9Sr02AilFxh3h4RCvNt5fUnKmzWTmEzD0TwF3omwWVGNnvRhv86JZtnI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718446946; c=relaxed/simple; bh=z/4ct20fL6n/MSP4ly2WP3P4LEcvbuop2G7G6jjJf/E=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=GEfXydqLMbto/0QSIa5fXHjWc81rsYjSSSRvUlN+bf45KDdXL+onRAMVL4DeyC4PgsP1JQCBTfXgkshn7ZdJuP9fNdBD1pAizl6GbtUxyV+/VxN1pRfE3MVOfbViY/HZSKqRe3ze1O8r/lw86nifuGbCRldHeEqn5IDwcNjTpBI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site; spf=pass smtp.mailfrom=xry111.site; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b=hHYIDjMl; arc=none smtp.client-ip=89.208.246.23 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1718446942; bh=z/4ct20fL6n/MSP4ly2WP3P4LEcvbuop2G7G6jjJf/E=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=hHYIDjMltjAPz59GM8Br3E5JBrYEqOI381cFuAZphq7970tpxmbBOtvp24Q7QpIyw EXXdF+8ruhJSipS1grNu6H/umgMMStm09ldVXbfbnJQWJ8zp56p14HU3s3tH+WJh6E CSRz0B7EasGA8gA1Iyi6UxMiYsjJWX57Pciw5/Aw= Received: from [192.168.124.13] (unknown [113.200.174.91]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id B9C1B674F4; Sat, 15 Jun 2024 06:22:17 -0400 (EDT) Message-ID: <12099e6fb7ba377f3dcf6686e0b37200b9818708.camel@xry111.site> Subject: Re: [PATCH] loongarch: Only select HAVE_OBJTOOL and allow ORC unwinder if the inline assembler supports R_LARCH_{32,64}_PCREL From: Xi Ruoyao To: Huacai Chen Cc: Jinyang He , Nathan Chancellor , Peter Zijlstra , WANG Xuerui , Tiezhu Yang , Nick Desaulniers , Bill Wendling , Justin Stitt , Youling Tang , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, mengqinggang@loongson.cn, cailulu@loongson.cn, wanglei@loongson.cn, luweining@loongson.cn, Yujie Liu , Heng Qi , Tejun Heo Date: Sat, 15 Jun 2024 18:22:14 +0800 In-Reply-To: References: <20240604150741.30252-1-xry111@xry111.site> <20240605054328.GA279426@thelio-3990X> <20240605062548.GF279426@thelio-3990X> <444ec2031ef6ca016cbfa8dfedc51bddc8529ba7.camel@xry111.site> <82b7e6ea-c2cb-6364-ebe9-bff928028408@loongson.cn> <1c132209a612e2e8953f0b458fc01853120db9a9.camel@xry111.site> <2bf11cd2-8449-acda-f5ad-659c38cb018e@loongson.cn> <96a2e8a80c06772b64fcbdba42e1dae2d68a53a7.camel@xry111.site> <2bd6ae20-ec56-c1a2-c5dd-e8c978a376d3@loongson.cn> <329dac82e09dfc75e77ae93ebbeacdec1dc9ff7f.camel@xry111.site> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Sat, 2024-06-15 at 17:33 +0800, Huacai Chen wrote: > > To me for now we should just make OBJTOOL and ORC depend on BROKEN and > > backport to stable... > But this patch allows clang to build objtool, which seems broken, too. Yes, so I mean make objtool depend on CONFIG_BROKEN because it is indeed broken as at now. Or we'll end up at least: select HAVE_OBJTOOL if AS_HAS_EXPLICIT_RELOCS && AS_HAS_THIN_ADD_SUB && !CC= _IS_CLANG && !RUST this is already nasty and I still don't know if it covers all broken cases (I've no idea if GCC will generate frame pointer in some cases as well...) > > Even if we can fix both the -mno-thin-add-sub problem and the frame > > pointer problem in these weeks, they'll be some nontrivial large change > > and improper to backport.=C2=A0 Thus we have to admit objtool doesn't r= eally > > work for old releases and mark it broken. > I don't like to disable objtool, unless there is no better solution. > And it seems there has already been some "large fix" in objtool's > history. Then we can still backport the large fix to the stable branches when we finish it up. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University