Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp525877imn; Thu, 28 Jul 2022 07:57:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tHzz9e1EXCtcFbFLj+0wKhLKD4hra1AwSgWfhboaXPDK63vDrA29NaV2oqdQ2DliLN+Jfo X-Received: by 2002:a63:6b06:0:b0:41b:79cd:f364 with SMTP id g6-20020a636b06000000b0041b79cdf364mr1278620pgc.119.1659020267112; Thu, 28 Jul 2022 07:57:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659020267; cv=none; d=google.com; s=arc-20160816; b=xBsVYvEnLacWJtB7t8YJArKMj8hI4wODngxna6JfYr4t9wK6+RAkXWCr02etLQToh4 8Bd9jTYRuWxwRTNQK2mlo50GL6HGsLpH1b84FgQbd9sdHxPa0yOp2+RArq1CLnTi2X5S TRbkMpzX2BAYX+D/+AjuwsI/yTkMUhKcS3O6BYX5yCbkqpwhhW18Aj1G0YLZZDcm+PXV tJVipXIroZxtCnCFKf4AZPlDieqFI+leBmE4QpWT3GjfoEEhlzQX+o+G8TdAt1KG63Ax SAFZCzm6zmTYFtBW4Hb02YVYOyc7vzKVWFUfBgF8PWvZ9bdC8uEhuazCX3c6Kza8lRK4 e7ag== 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=02CBz4RzUdIf2+7B1mGNbN9W8ERvrv1QMl8zvYsEVsA=; b=HFFICkHY/Ubtf3aWA+35X8VG+lFRqt3MLSpFfw0fsBD2EqBeZt75Nsk8YQw1eAQ6AY zFuPyI69M7CqXoltKLPzmi5kVV71Fqmdqc6wTWWK2MaZudZyVgR+n+dTxx14WRMj9hKJ Z6+AqVNaXQYtieOjiofRNusEpmcTSyLbieJULHXby9mmAY9gfA6y3IkHjpmf6QAdsGUQ Ck8AgRbgwVd8TCAXAYUU8gQSEwohs9arREgwtHoPl3H7Ssn74rXLsfMm3bVfQvUMfgN2 VUNMTjHkpIAPqoDXl6J1K8WuQO2Pqct2UzD8J1ye68KUK2HoO7WicedL2NsUSXn1vTt3 Z+wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=Wo8Dcpkv; 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 c24-20020a17090a8d1800b001f13ceaa2e8si4822604pjo.65.2022.07.28.07.57.30; Thu, 28 Jul 2022 07:57:47 -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=Wo8Dcpkv; 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 S230173AbiG1OFv (ORCPT + 99 others); Thu, 28 Jul 2022 10:05:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230180AbiG1OFp (ORCPT ); Thu, 28 Jul 2022 10:05:45 -0400 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A61FBC9D for ; Thu, 28 Jul 2022 07:05:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1659017139; bh=4mq3ALzqcoXjKHKDEAV4qG3tfzKP1hOZ+41Ord4qn4c=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Wo8DcpkvA9bSo7m1eCkx3dGZUVMS8i8D6dAVevbhJbGkMkibIf+JUAVtz3Eaf4ALh eVHkWe8465KvSyf8gPhf/kib4bDgAqD2TV7J/RrHvPfYLLOP1VgFbjXAhGYQE3vpzR xo9WTpwkrAq4LK8CeNTSGgICcaYMn0bQf2X48tCI= 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 D8CA866818; Thu, 28 Jul 2022 10:05:36 -0400 (EDT) Message-ID: Subject: Re: [PATCH v2 0/4] LoongArch: Support new relocation types From: Xi Ruoyao To: Huacai Chen , Arnd Bergmann Cc: loongarch@lists.linux.dev, LKML , WANG Xuerui , Youling Tang , Jinyang He Date: Thu, 28 Jul 2022 22:05:34 +0800 In-Reply-To: References: 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 Thu, 2022-07-28 at 20:33 +0800, Huacai Chen wrote: > Hi, Arnd, /* snip */ > Could you update the cross-compilers here [1] to make this series be > possible upstream in the 5.20 cycle? Or we can only do that until new > binutils/gcc be released? Hi Huacai and Arnd, The old toolchain will use R_LARCH_PUSH_PCREL _GLOBAL_OFFSET_TABLE_ R_LARCH_PUSH_GPREL symbol R_LARCH_ADD to perform a PC-relative addressing for a GOT entry, and the new toolchain will use R_LARCH_GOT_PC_{HI20,LO12}. Both way are supported by this series. I've tested the V3 patch (V2 + suggestions from Youling, I'll sent it later after rewording the third patch) with both my system toolchain (no new reloc support) and a toolchain built from binutils & gcc master.=20 Both of the build works fine. So a toolchain update seems not immediately required. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University