Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp231729imn; Fri, 29 Jul 2022 05:25:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR7joW62Zlqny0ByiqIMNZ9r3EdeVA1LGUvMeArJsEucAn1PdZlc+KDAAJ6B9qQzuFUlyOiS X-Received: by 2002:a17:90b:4a4a:b0:1f3:25d3:2e53 with SMTP id lb10-20020a17090b4a4a00b001f325d32e53mr4702892pjb.161.1659097531109; Fri, 29 Jul 2022 05:25:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659097531; cv=none; d=google.com; s=arc-20160816; b=NaWLDLRBESJ7U6FQSNW7pNybeLuzmdIYsyHHjj3B06Y5VoWQAM2cDUfv2G9N77EJbO dT3vqN3V/0EnJHz397iorfgF71bwcdOP8UKQFEwxdi1syghSweVIU35dujhhRfPqAj71 lFaSz0FrYPlgmgsSN2xRgDtFtYM/d2+603BC1XtuJ/uomoljByDrEH3DrqYqkBoz2KNj RPHeeuVYVMQYVijw7lgpSgsB2OCGma/mV1SXTzHghEQWtkJ4ydJPmmbLOQco3gkhty0X LstvV+ycKXjiPhngbgU1Uz4Jp9KCssXmirabZbxa+f47iiONCRAiEvRYlx9QhRbZauf4 6Fxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=Ufvdhg+J3h8wDzT+jJyjiGHjWf5TV/ZEwDlx4soJWNA=; b=oRW2W7RXjdvZUVrbYRh5tRBUH+s4UaQVau3L0Ag56FEOZfInUgZ5lJOhd0w5TSvpIk HifReHoFd5CuxC3l7U2tdoSknTPUlVzEkG2ui3kvioMVbu1r7K1lIlHCRUJ4z5kZeVUj V+8BmOAeffGTcKwO+bypSG6oKqdUn9V6F+CGErEf+NAjBVb6zS7t4abwdLA130HADk12 Ygomu4feFpsBVCSZ9kiOSGNWrNSw63xbIXpM3m5/s+HD4+94moEk8cRFgmpjZjNQBKx6 1PVahcLbN0xls0vDUb+kAdmZAYH0u0GgGY8UAH4OtjPuRtKIg+kBclOwQzQ7jquN3Bk0 wnyA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a17090a460400b001f20c50d659si3366839pjg.116.2022.07.29.05.25.15; Fri, 29 Jul 2022 05:25:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235725AbiG2MUC (ORCPT + 99 others); Fri, 29 Jul 2022 08:20:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229871AbiG2MUA (ORCPT ); Fri, 29 Jul 2022 08:20:00 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1AEB9743DB for ; Fri, 29 Jul 2022 05:19:58 -0700 (PDT) Received: from [10.130.0.193] (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9BxM9Bt0ONiWgJCAA--.28421S3; Fri, 29 Jul 2022 20:19:57 +0800 (CST) Subject: Re: [PATCH v4 0/4] LoongArch: Support new relocation types To: Xi Ruoyao , loongarch@lists.linux.dev References: <32a74a218c76611f897fd1df1ad0059068621133.camel@xry111.site> <0179679b736aea7258981dec2d83107cce74dfc1.camel@xry111.site> <6b5d2188f93ed72b67a4bbb7116113f833fe1ee5.camel@xry111.site> Cc: linux-kernel@vger.kernel.org, WANG Xuerui , Huacai Chen , Jinyang He , Lulu Cheng From: Youling Tang Message-ID: Date: Fri, 29 Jul 2022 20:19:56 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <6b5d2188f93ed72b67a4bbb7116113f833fe1ee5.camel@xry111.site> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf9BxM9Bt0ONiWgJCAA--.28421S3 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY-7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28Cjx kF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8I cVCY1x0267AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2js IEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE 5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r4j6F4UMcvjeV CFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1lc7I2 V7IY0VAS07AlzVAYIcxG8wCY02Avz4vE14v_Xr1l42xK82IYc2Ij64vIr41l4I8I3I0E4I kC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWU WwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr 0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWr Zr1j6s0DMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr 1UYxBIdaVFxhVjvjDU0xZFpf9x0JUID73UUUUU= X-CM-SenderInfo: 5wdqw5prxox03j6o00pqjv00gofq/ X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_PASS,SPF_PASS autolearn=ham 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 07/29/2022 07:45 PM, Xi Ruoyao wrote: > On Fri, 2022-07-29 at 18:36 +0800, Xi Ruoyao wrote: > >> The relocation against local percpu variable is broken up. 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 > variable "must be addressed via GOT", and add the attribute into > PER_CPU_ATTRIBUTES. Yes, we need a GCC attribute to specify the per-cpu variable. Thanks, Youling >