From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id B818F3858C83 for ; Sun, 21 Aug 2022 07:26:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B818F3858C83 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from [10.20.4.187] (unknown [10.20.4.187]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxnmsF3gFj8rkGAA--.16270S3; Sun, 21 Aug 2022 15:25:58 +0800 (CST) Subject: Re: [PATCH 1/1] LoongArch: Add pointer mangling support. To: Xi Ruoyao , Joseph Myers Cc: xuchenghua@loongson.cn, i.swmail@xen0n.name, libc-alpha@sourceware.org References: <20220811040056.3164122-1-caiyinyu@loongson.cn> <3740676145dbfab3595458d7a730272acd6fb928.camel@xry111.site> From: caiyinyu Message-ID: <68c4a0bc-7eb3-8f67-4b49-4a53119ef4a1@loongson.cn> Date: Sun, 21 Aug 2022 15:25:57 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-CM-TRANSID: AQAAf8BxnmsF3gFj8rkGAA--.16270S3 X-Coremail-Antispam: 1UD129KBjvJXoWxJF15WFWrtr1UCryrJryrWFg_yoW8GrWkpF WfA3WFkFsFy3Wqkw17Xa1UWwn3Zw4ft343JryFqr1UAw15ZFyfKr43tan09ay7JwsIqr1j 9r45Wa4DuFs8A37anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUv0b7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWxJVW8Jr1l84ACjcxK6I 8E87Iv6xkF7I0E14v26r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xv F2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r 4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrwCYjI0SjxkI62AI1cAE67vIY487 MxkIecxEwVCm-wCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c 02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_ Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7 CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v2 6r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU5 PpnJUUUUU== X-CM-SenderInfo: 5fdl5xhq1xqz5rrqw2lrqou0/ X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Aug 2022 07:26:02 -0000 在 2022/8/19 下午9:46, Xi Ruoyao 写道: > On Wed, 2022-08-17 at 16:46 +0000, Joseph Myers wrote: >> On Wed, 17 Aug 2022, Xi Ruoyao via Libc-alpha wrote: >> >>> I share your feeling...  But the fix needed by ld.so (bc2a35c in >>> binutils-gdb.git) is after two commits massively changing the relocation >>> types.  Backporting the relocation type changes is completely >>> unacceptable (such an attempt will do nothing except annoying Nick >>> Clifton :). And bc2a35c alone cannot be backported trivially. >> If the branch isn't usable as-is on LoongArch (which apparently is the >> state at present), there should be no problem with any backport to >> architecture-specific code, regardless of how large it is - it can't >> exactly regress from "not usable". > Sorry, my memory was flawed when I wrote the last reply (due to my 2- > week vacation :( ). It's not completely usable, only IFUNC is broken. The ifunc supports are not available on binutils 2.39, so the ifunc tests are failed. The " LoongArch: Add pointer mangling support" patch was tested with ifunc disabled. The full tests were all passed by using binutils master branch. If there are no any other comments, I will include this patch. > >> I note that the only GCC target supported for LoongArch is >> loongarch*-*-linux*, so there isn't really a question of being usable for >> bare-metal either. >>