Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1910545imn; Mon, 1 Aug 2022 04:50:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uyFBKoStzBcC/ZhQaqZQnfO3b22pxZNrIBaDvz3T9GzMMwU7E51mO7z7a1qTbPnFWGDhd7 X-Received: by 2002:a17:907:6d8f:b0:72b:6b87:81f1 with SMTP id sb15-20020a1709076d8f00b0072b6b8781f1mr12705913ejc.674.1659354658142; Mon, 01 Aug 2022 04:50:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659354658; cv=none; d=google.com; s=arc-20160816; b=mkXTFbucGLNIKHz2FFWkTAVKol6Sd+n6uNqhQmZgyUGhtme7RTtOfalOhTJi1Fiphg 73GN255qa5H9ntKtgXMRljVP/CACTzeLBFCsAD85R0GFwoInxfd2ffghK8PipxkTJ2gz ZwMCrHPrvPzOIvWubGoyrHv8SmocKIWrN4TDbkVFWmtnXzDa7Ag/jE5LLx833oaC/G6y vBPno639c/9a1iy0JQ96dHT7i2jnhNqmST3NF33uPddp+EZS9assAQmHE6QxPtf4chwE Wjph6RBqllwTmcKCQY3UTKxYBIaHjkqHCEz6RQOVAKWogvo3xZMU3WJU8HN6CWd4ZCNy 9Sbg== 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=K5NaldYC20qBAiSQEVvbJWW0KNap4Ks5frUi0zdDaZ0=; b=Q2F6ZeOnbYVV1iHGU6E2FcsciAhA/OpFWXhDqLVxguaut8gPD5oNwSdsjoC9G0NReL L1W5HDNPkxtpUNKQsMY9RUP4d39xgAZex5cKcwKKEs9hNANQxFYya3+5rK0y9leiFh7l Qi+TD9GU1bfUp8coJHcrAk9Hdu8Ri6IVZyNYQFXtxG+SWO50u2xWl0Lj9sX25Tdc9mV1 Y7c/G97A/k8xm2NzAiEF8HYpKTcTlVJXpUh1PNLc1/SugWVvS2A+fCn0eqMaa7mr9CDG 1Acr/wqh1ofzPCcZ7qlruwTpMLXl6m8uwS6UPTZFFwxaoEeASfUyTAv4Fp06s5DgnrMq swlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=AFxh0lL8; 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 hd32-20020a17090796a000b00722e51021b3si12438959ejc.74.2022.08.01.04.50.33; Mon, 01 Aug 2022 04:50:58 -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=AFxh0lL8; 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 S230326AbiHALkA (ORCPT + 99 others); Mon, 1 Aug 2022 07:40:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229903AbiHALj7 (ORCPT ); Mon, 1 Aug 2022 07:39:59 -0400 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B55C31928 for ; Mon, 1 Aug 2022 04:39:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1659353997; bh=ukpOVj7fywYhR//4Lwx/zQHnRpAGRXXiUEyJ/bF1jLk=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=AFxh0lL88VO4a68vgwlsX9uTwCwmVGzGmWbsuGkK4AgZoTVOGg1ljULjvS9OrDK3M KEl33Ee60LYiiRoAZVzEgP7ocwp3WBEn89MtLhAgsI2yAxXtb2EGE4GB4XX3gqafJs eH6K/Z73Tiy2uQD2e6ACbinDYXnnp/BdJ1fuXcrE= Received: from localhost.localdomain (xry111.site [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 2837466945; Mon, 1 Aug 2022 07:39:55 -0400 (EDT) Message-ID: Subject: Re: [PATCH v4 0/4] LoongArch: Support new relocation types From: Xi Ruoyao To: Youling Tang , Jinyang He Cc: Huacai Chen , loongarch@lists.linux.dev, LKML , WANG Xuerui , Lulu Cheng Date: Mon, 01 Aug 2022 19:39:54 +0800 In-Reply-To: References: <32a74a218c76611f897fd1df1ad0059068621133.camel@xry111.site> <0179679b736aea7258981dec2d83107cce74dfc1.camel@xry111.site> <6b5d2188f93ed72b67a4bbb7116113f833fe1ee5.camel@xry111.site> <7cad6e78014168a8906e130e1cf3809077d2bda7.camel@xry111.site> <1d0783b87bda3e454a111862fcc5b5faffcb16b0.camel@xry111.site> <00eede4b1380888a500f74b1e818bb25a550632b.camel@xry111.site> <7512ae16-b171-d072-674f-a6b9a5e764d6@loongson.cn> <10751c9af5d45fea741e0bbed6c818ddb9db3ac3.camel@xry111.site> <7b1f9813-85fc-acfd-8e24-7e01469ded3a@loongson.cn> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.3 MIME-Version: 1.0 X-Spam-Status: No, score=0.4 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 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 Mon, 2022-08-01 at 19:28 +0800, Youling Tang wrote: > > Actually, I really hope kernel image is in the XKVRANGE, rather > > than being in XKPRANGE. So that we can limit kernel and modules > > be in 4GB range. I think it will make all work normally. :-( > >=20 >=20 > Assuming that the kernel and modules are limited to 4G, the external > symbols will be accessed through pcrel32, which means that there is no > need to pass the GOT table entry and there is no need for got support We'll still need to modify GCC to use PC-rel for accessing an object in another TU (by default, or an option to control), instead of GOT. Or just add support to GOT relocations here. But anyway it will be much easier as we won't need to handle per-CPU variables specially. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University