Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2360551rwe; Sun, 28 Aug 2022 09:22:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR7z3UMtsBTuzZn5LFV39tCoZnDYkHUyc6jGG80pUNeltoXI90WC2aObtX+OJtqLG5n8zo9o X-Received: by 2002:a17:902:c401:b0:16f:b59:85a7 with SMTP id k1-20020a170902c40100b0016f0b5985a7mr12645853plk.115.1661703773856; Sun, 28 Aug 2022 09:22:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661703773; cv=none; d=google.com; s=arc-20160816; b=qLaXc9mDzHGqD+g6dD3A0+GhpTpjDM/OMljos1vXkh/X9Iz1A+Xa+Oj/WSC+Ciyu0u J698HruC+HVJ/tKHyNbbz7J+s0gluq48MwLGKG2uEk/arLV2+Undrri5XkSBTBcQNbZf 36cwNImoFl/1GtHtJd6taB/QnoPMa8YhFAsBW+ZG5+IqAqBtbajh/v8fkA2GGvMueGHK pgnYAB5z4Ygy6qRTAd5N0tUyLfXoshGWNdJXSTniDbsr/k/jbl3SDqh6roFTpxwZknk8 ZsFLRSYGkPh4N8QigELTzJ9LUJkIsEqwO7smeeLivMTdnk83+s2AyQC3ZV3lSnC9sX+l v2Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=XBvS7mHAbvxzpQVZvSYQjelW9soxEB9/waOZAJ7PRqU=; b=PUmUs3hvDUwVGrBgIbWIBeK3lElXRKp06R9BD0goFZ0oh5P1ZFKDZ2yduWZANzNs0M Me6EkN/DHHjNzgdXwdKVzCkIWnhK4JnmYs2xOBg8nn5IOdLil670S3jFFzxxTcLIJZCJ w5Ll/ExSppAAZm9G5T9A/OU/h6xePSpoLJAHde6+I9hb3fo2TwtrCyOHSZdd+V2lcrTa UdyopaxdyLqNKLMN+PSNB5wdlCIdqWiU5A4AtjLac5CNr0SNau6Bvjb8wWctI1nsqS+o z4ju6bakAIGn6qBshklwR/0KL9ngn2HlyF6M1+MKkvQWTR8yoiX+s25DUprnqnEgvwP+ v4eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=mLE9WzxS; 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=xry111.site Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n28-20020a635c5c000000b0042b1e7b8d52si6983586pgm.141.2022.08.28.09.22.42; Sun, 28 Aug 2022 09:22:53 -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=@xry111.site header.s=default header.b=mLE9WzxS; 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=xry111.site Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229782AbiH1QUt (ORCPT + 99 others); Sun, 28 Aug 2022 12:20:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbiH1QUr (ORCPT ); Sun, 28 Aug 2022 12:20:47 -0400 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD0EC6451 for ; Sun, 28 Aug 2022 09:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1661703646; bh=MM4kZt3DF3iUsC6WPEgD9Pjm4dL3TvvdfqjeUSZUeuM=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=mLE9WzxSyCHbCXy4QfBtNAgpy2Qeqm54dnpDUxN19nTigzsxWL3JKZNWpbqU+XMSE gf7ZNt3WV1TxAjb+/BRjFdcZZaHmqP4uM/zZWeJUpyQQXexm+G2LY2rGs9LYkBC3Bh Uqr7N6K6zE0NLBX9PuVh8BmMdBl/U+v3Uup3qamI= Received: from [IPv6:240e:358:111c:cf00:dc73:854d:832e:4] (unknown [IPv6:240e:358:111c:cf00:dc73:854d:832e:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384)) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id E13EC65AA9; Sun, 28 Aug 2022 12:20:41 -0400 (EDT) Message-ID: Subject: Re: [PATCH 1/8] LoongArch: Add CONFIG_CC_HAS_EXPLICIT_RELOCS From: Xi Ruoyao To: Huacai Chen Cc: loongarch@lists.linux.dev, LKML , WANG Xuerui , Youling Tang , Jinyang He Date: Mon, 29 Aug 2022 00:20:37 +0800 In-Reply-To: References: <20220827175436.156464-1-xry111@xry111.site> <20220827175436.156464-2-xry111@xry111.site> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.45.2 MIME-Version: 1.0 X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, PDS_OTHER_BAD_TLD,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Sun, 2022-08-28 at 22:15 +0800, Huacai Chen wrote: > > +config CC_HAS_EXPLICIT_RELOCS > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 def_bool $(cc-option,-mexplicit-r= elocs) && $(as- > > instr,x:pcalau12i \$t0$(comma)%pc_hi20(x)) > Is it possible that we only change the Makefile and not touch Kconfig? I guess we can, but if we'll introduce objtool we can select HAVE_OBJTOOL if CC_HAS_EXPLICIT_RELOCS then.=20 --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University