Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp209947imn; Fri, 29 Jul 2022 04:53:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uDgUEU2kyk70DqhHEvUIJYolY1hSZTtPmS3+V2XfCjCHu4YAt/M1Yz1dQIlpx0fglZhXDB X-Received: by 2002:a17:907:3e29:b0:72f:84c2:fafc with SMTP id hp41-20020a1709073e2900b0072f84c2fafcmr2536228ejc.93.1659095630986; Fri, 29 Jul 2022 04:53:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659095630; cv=none; d=google.com; s=arc-20160816; b=FWkWXHRU9HntXO1+h96xyMNTD40NFyaBvphvFGB7CKs9gZleaDD5cdxXkpKmlF+mc4 XWgHUtGGS+JO/TXztCiThJQBZrsf7MqZ6sWGsLzEIltWqhYxiaD7sT9RTJFz0C8ZcMO3 ryPYxYMJEeDqCwvK/lgxOwnaS9C/H3EigYCDjNppnppLuBC2IZwZFVcKa82cuhxbBiWn jgCEWoTLKImgrQqcYdsMGj1eqiJS+turDPt6PXaS0pMdRz38NHB1H0l5uXHQpN1VbSbM 1YLr0Kq7z2eaP5GgjQucjwac2BVXGQcx08s8sWm5fyvr6bgA1uI/Z3l4fWcDdGwo2JHr vYbA== 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=KTpfPtoSZuKGdMNmi/SNi8RV/aLuHQcDW0tXYtEzH0M=; b=0dvtffyBvr7Ly6JgDX+//pMptZyZM/VwN1toGOw/7+TQKX/hgCIniSaLFKJbPPUoyt LDZNYdmLc023AsUFTCWH+LMshQpqaxXx0Y4PxRVII4xVG1MIXvoThfYJgp+AhPLoV8Wg 14WjvaOmLZ03+5Vw2Qsb7u4xSSJgHpzgMDqSziQiIgJAV7OC6zDPMj94EKoa1bUn9Pb2 MzGLGZJd1doiRNuQensNbR7r+qA14z5jkJCFf2uCgOWKJeKlraiKfzGWjBciYB/sTOtc znIPMD54wj8U+n1a3i94/bKsjicYjGd4JhoUhDhIpNXeAgNf7KOooy7hOT1iprs/uwm/ Eb9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b="iB/7gdkV"; 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 y27-20020a1709063a9b00b00702d7a823casi3078875ejd.317.2022.07.29.04.53.25; Fri, 29 Jul 2022 04:53:50 -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="iB/7gdkV"; 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 S236062AbiG2LpU (ORCPT + 99 others); Fri, 29 Jul 2022 07:45:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235759AbiG2LpS (ORCPT ); Fri, 29 Jul 2022 07:45:18 -0400 Received: from xry111.site (xry111.site [IPv6:2001:470:683e::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E22131CB21 for ; Fri, 29 Jul 2022 04:45:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1659095111; bh=H8GNgBXKqA2DTQwH2JxXCeNpjsYFe/n4yg8c9Eu2la4=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=iB/7gdkVmEHsdQBBdvRH8dt+fLQzhg9QcCqMt2e0FShZcL+mnxkdbKS2+BXc0HiGV pdzZLYvgwDZWhYdNoldSRAXv6Ws4ANRCc9ZHHBlUXy9Sd2tyjBlHSrq/QPVw+I7cqp Gz73AwCyu2Lm7EL07IxivrZbwrnVjQgE4Q9TAi1o= 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 3F632667DC; Fri, 29 Jul 2022 07:45:09 -0400 (EDT) Message-ID: <6b5d2188f93ed72b67a4bbb7116113f833fe1ee5.camel@xry111.site> Subject: Re: [PATCH v4 0/4] LoongArch: Support new relocation types From: Xi Ruoyao To: Youling Tang , loongarch@lists.linux.dev Cc: linux-kernel@vger.kernel.org, WANG Xuerui , Huacai Chen , Jinyang He , Lulu Cheng Date: Fri, 29 Jul 2022 19:45:07 +0800 In-Reply-To: References: <32a74a218c76611f897fd1df1ad0059068621133.camel@xry111.site> <0179679b736aea7258981dec2d83107cce74dfc1.camel@xry111.site> 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.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 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 Fri, 2022-07-29 at 18:36 +0800, Xi Ruoyao wrote: > The relocation against local percpu variable is broken up.=C2=A0 I'll try > to fix it. Hmm... The problem is the "addresses" of per-cpu symbols are faked: they are actually offsets from $r21. So we can't just load such an offset with PCALA addressing. It looks like we'll need to introduce an attribute for GCC to make an=20 variable "must be addressed via GOT", and add the attribute into PER_CPU_ATTRIBUTES. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University