From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id CC4A13894C05 for ; Mon, 5 Dec 2022 08:25:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CC4A13894C05 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1670228712; bh=sECHnuMGh5omV1wfJH3cbOGErbIqhHKUJ4rVs3ktdEA=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Ont91JP+GDAw4PnaG/6JRGX7d7cM7CJA4JFuKVVGUcrgFZdsVGcZAyJRZHObYWNCb SM5ac+asP6hVvN7ffrbGPtR3dgRK8DoG4nCoRcYdt6OImTCOt1VF1AsLmk1z+p9l89 +L+GNXn9Q7r3Pnc4FU6OeBFhn/UTiZNaUTeSu28E= Received: from [IPv6:240e:358:110c:2400:dc73:854d:832e:3] (unknown [IPv6:240e:358:110c:2400:dc73:854d:832e:3]) (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 7A35566755; Mon, 5 Dec 2022 03:25:07 -0500 (EST) Message-ID: <8f5639f99caaa74a2eeee65bb4932b5c626405c1.camel@xry111.site> Subject: Re: [PATCH v1 1/6] LoongArch: include: Add support for linker relaxation. From: Xi Ruoyao To: mengqinggang , binutils@sourceware.org Cc: xuchenghua@loongson.cn, liuzhensong@loongson.cn, chenglulu@loongson.cn, i.swmail@xen0n.name, maskray@google.com Date: Mon, 05 Dec 2022 16:24:57 +0800 In-Reply-To: <20221205080453.1352069-2-mengqinggang@loongson.cn> References: <20221205080453.1352069-1-mengqinggang@loongson.cn> <20221205080453.1352069-2-mengqinggang@loongson.cn> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD,GIT_PATCH_0,LIKELY_SPAM_FROM,SPF_HELO_PASS,SPF_PASS,TXREP,T_PDS_OTHER_BAD_TLD autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Mon, 2022-12-05 at 16:04 +0800, mengqinggang wrote: > Add relocs and gas LARCH_opts.relax option. >=20 > include/ChangeLog: >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0* elf/loongarch.h: Add re= locs. > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0* opcode/loongarch.h: Add= LARCH_opts.relax and macro > LARCH_NOP. > --- > =C2=A0include/elf/loongarch.h=C2=A0=C2=A0=C2=A0 | 20 ++++++++++++++++++++ > =C2=A0include/opcode/loongarch.h |=C2=A0 3 +++ > =C2=A02 files changed, 23 insertions(+) >=20 > diff --git a/include/elf/loongarch.h b/include/elf/loongarch.h > index a6341b46791..0ecddd17b37 100644 > --- a/include/elf/loongarch.h > +++ b/include/elf/loongarch.h > @@ -229,6 +229,26 @@ RELOC_NUMBER (R_LARCH_32_PCREL, 99) > =C2=A0/* RELAX.=C2=A0 */ > =C2=A0RELOC_NUMBER (R_LARCH_RELAX, 100) > =C2=A0 Please add the description of the following new relocation types into the psELF ABI doc first. > +/* relax delete.=C2=A0 */ > +RELOC_NUMBER (R_LARCH_DELETE, 101) > + > +/* relax align.=C2=A0 */ > +RELOC_NUMBER (R_LARCH_ALIGN, 102) > + > +/* pcaddi.=C2=A0 */ > +RELOC_NUMBER (R_LARCH_PCREL20_S2, 103) > + > +/* cfa.=C2=A0 */ > +RELOC_NUMBER (R_LARCH_CFA, 104) > + > +/* DW_CFA_advance_loc.=C2=A0 */ > +RELOC_NUMBER (R_LARCH_ADD6, 105) > +RELOC_NUMBER (R_LARCH_SUB6, 106) > + > +/* unsinged leb128.=C2=A0 */ Typo: "unsigned". I often mistype this too. > +RELOC_NUMBER (R_LARCH_ADD_ULEB128, 107) > +RELOC_NUMBER (R_LARCH_SUB_ULEB128, 108) > + --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University