From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70DCFC04A68 for ; Thu, 28 Jul 2022 14:05:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230191AbiG1OFv (ORCPT ); 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 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