Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp210803lqr; Wed, 5 Jun 2024 03:58:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV8Z3DJdqYjytWOvNB9o4mzK0dFYNVV0G+w1xVDqvBhu1/GO+JSbk4TNUgdo3nkGSFtG60Hw8Jm+QW0n0/XIrEsHAD6u7/TpcoPiCRvDg== X-Google-Smtp-Source: AGHT+IF3fRjvTqTRcjEzY50gBJ3+YxLQEATPtRyY6pvnqcQ+VUUsvUxYn47220tWglRVpDuP0bVA X-Received: by 2002:a05:6a21:27a1:b0:1b2:a899:e577 with SMTP id adf61e73a8af0-1b2b717bc32mr2037799637.57.1717585120865; Wed, 05 Jun 2024 03:58:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717585120; cv=pass; d=google.com; s=arc-20160816; b=MAW4GiaLjVL/FYrKsE4GSA0JWEJ1RYpUAXyr3+L0oawymNkTJEbms4jUoYWi0MuWXb aQ0/GNAIX5tfutBPWW15Id88qyOnSRUmVLAK5L4BS2ad3kRRhuakkocKgVGkvDUvp0cf X0lpRb642c/CJqb537L4XF6u6uubnihUk+ED/TrKcG46ESiOFszdujOQcWmuMWfhI56c arF17hnu9rB2raF+Fu93AUbKNXxUYxrMTeCaJruILeAYcTljabAD4te0XHMoIe26ATMJ ODrmv8QbNm3ZTFuE3HtAdA6vcnjrpYtojRyw69m5TlSAzlhRYnDSSF1LhD1ODEK+QveC ZzhQ== 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=b5sutBxSqcEdWR0RM+2Y39bVytD+VSUacSO4W2WV7bk=; fh=G4L83EuLZHDhfA05ukFmawwJAnPIZTZ94j8a2tWUyps=; b=Ux8GRTDIcgdR764T1fqYEPtc/2s/yayP0X64gGeUo27tzcHyKjpuRKSSyDwr3DkVwN PHOrffX7DDb/S+2A0lX0ue6RjmUZe6CzIoSn5kJWTOPwDcZ9TAGIFPS/DBKqe1MHXX1o kAfKN1tZZxdsG0BP+3P0WBn89NAIXJLMv91GSL3PRB5IIY8pGZFXdLJJLIK1yza+EfI4 BfgRybo2FqvlSbDWFThrfTIXb/gHf2JyRtUDKrvOWglj61fhiy5KX3I+CstR2GVDPpAK svehtn6Ma90AR8kD0hW9SIIxAH4XIRbLKu7qQfk/OCt2DhzB8uSHziMrX3UrSYOi+/8C AUnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=Pt+EczlE; 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-202227-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202227-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 d2e1a72fcca58-703f08b61a2si555879b3a.267.2024.06.05.03.58.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 03:58:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202227-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=Pt+EczlE; 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-202227-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202227-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 41E0C282596 for ; Wed, 5 Jun 2024 10:58:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A324B192B6E; Wed, 5 Jun 2024 10:58:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b="Pt+EczlE" 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 4D4A11922F2 for ; Wed, 5 Jun 2024 10:57:59 +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=1717585080; cv=none; b=nWTwXRsMYwqtd1ZKhiESGvpnHAgCQRfrH0vnnIBJWyzbp+ECo7qYvnh9FV7a4w/z3KXSSGnxaw/ZNvwhrkFK4AHSmFF2yR5BGUYQrxRQWO+pTuGLglEEm6rf7SyEtcV4XLFiMZU1qpeSUdF0y3Wb3WsBzN0wtC1mdxaflQVmBRE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717585080; c=relaxed/simple; bh=hPb5APVEuShjZ0fECZcArGF+7UZ+UhYfRq1FN7lXc7Q=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=tIchFeBnMdRcM0Kp3epR0SM6tA2IFjvGiw5o/DbfwqritobzEcslIF2q8eAnkOevbPhDfXgDCYd7ZKo2y6vq/Je5+nM8dWWvo1xDuLHEj1fv/G8XHIvZcFr0gCIOrtNGgauvhb4moVTaAYBhb1WfNpLb2jW5FsV2ZCkUgT/kiBM= 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=Pt+EczlE; 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=1717585075; bh=hPb5APVEuShjZ0fECZcArGF+7UZ+UhYfRq1FN7lXc7Q=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Pt+EczlE1/j2ufTJEPBVRoyXoeQYFwpeOmvCd4T+/sNXIgZjaSE+nzxWDUMBry4Zh A0emczzNASoAe9HQ/KsJajS8DVxNbduZFLelbwHzUdKsItbdtaEqPlG34OPGtrHX7D sYiLux6WzJiTp+Rx0aWJAf6FN5mgwdQnArghGQh8= Received: from [127.0.0.1] (unknown [IPv6:2001:470:683e::1]) (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 EAC5766AF3; Wed, 5 Jun 2024 06:57:51 -0400 (EDT) Message-ID: 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: Nathan Chancellor Cc: Huacai Chen , WANG Xuerui , Tiezhu Yang , Nick Desaulniers , Bill Wendling , Justin Stitt , Youling Tang , Jinyang He , 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: Wed, 05 Jun 2024 18:57:50 +0800 In-Reply-To: <20240605062548.GF279426@thelio-3990X> References: <20240604150741.30252-1-xry111@xry111.site> <20240605054328.GA279426@thelio-3990X> <20240605062548.GF279426@thelio-3990X> 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 Tue, 2024-06-04 at 23:25 -0700, Nathan Chancellor wrote: > On Wed, Jun 05, 2024 at 01:54:24PM +0800, Xi Ruoyao wrote: > > On Tue, 2024-06-04 at 22:43 -0700, Nathan Chancellor wrote: > > > For what it's worth, I have noticed some warnings with clang that I > > > don't see with GCC but I only filed an issue on our GitHub and never > > > followed up on the mailing list, so sorry about that. > > >=20 > > > https://github.com/ClangBuiltLinux/linux/issues/2024 > > >=20 > > > Might be tangential to this patch though but I felt it was worth > > > mentioning. > >=20 > > The warnings in GCC build is definitely the issue handled by this patch= . > > But the warnings in Clang build should be a different issue.=C2=A0 Can = you > > attach the kernel/events/core.o file from the Clang build for analysis? > > I guess we need to disable more optimization... >=20 > Sure thing. Let me know if there are any issues with the attachment. Thanks! I've simplified it and now even... .global test .type test,@function test: addi.d $sp,$sp,-448 st.d $ra,$sp,440 st.d $fp,$sp,432 addi.d $fp,$sp,448 # do something addi.d $sp,$fp,-448 ld.d $fp,$sp,432 ld.d $ra,$sp,440 addi.d $sp,$sp,448 ret .size test,.-test is enough to trigger a objtool warning: /home/xry111/t1.o: warning: objtool: test+0x20: return with modified stack = frame And to me this warning is bogus? --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University