Message ID | 20241012034356.2957334-1-mengqinggang@loongson.cn |
---|---|
Headers |
Return-Path: <binutils-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id ECC49385AC27 for <patchwork@sourceware.org>; Sat, 12 Oct 2024 03:45:18 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id E2C023857032 for <binutils@sourceware.org>; Sat, 12 Oct 2024 03:44:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E2C023857032 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E2C023857032 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=114.242.206.163 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728704645; cv=none; b=aASaFdYqkhYbjZ1Xj1ODAmkDDzGEs7kwNHd0xwBAY405EFsIQ1H9CktXXF/O8AsAfWa4WR1DgqVpLaFJ4KHp2zszMgDQAs4+jbwTAMDv75FT/JyKT4pvfn2EAY7gOJjdgi1CPESFEACy0lxTY9EpFcn+BbWqGVlWfiTgVRwiMtA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1728704645; c=relaxed/simple; bh=VQiCZq4plZX/JNJdm/OZwpKmbCWmauTqk105zLMs5aY=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=n8B5htwfodLhSrheAhENapoSwMS4VEQ1wKSKXGLyf5RPCZRPEYytbdBEGii+ZsVzrZyVuPM3BqYlhkmq8RDrsZmENMB92vPpIN8ZD8mH//9ffUy1ZqVQJG3kXZMHVL9rrx86d/6SU219pfPx0ACR2tnHPF0BlWYEZEU6rG9Bsvs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from loongson.cn (unknown [10.2.6.5]) by gateway (Coremail) with SMTP id _____8Axjut+8AlnVnkUAA--.29782S3; Sat, 12 Oct 2024 11:43:59 +0800 (CST) Received: from 5.5.5 (unknown [10.2.6.5]) by front1 (Coremail) with SMTP id qMiowMDx_9d98AlnhqwkAA--.52119S2; Sat, 12 Oct 2024 11:43:57 +0800 (CST) From: mengqinggang <mengqinggang@loongson.cn> To: binutils@sourceware.org Cc: xuchenghua@loongson.cn, chenglulu@loongson.cn, cailulu@loongson.cn, xry111@xry111.site, i.swmail@xen0n.name, maskray@google.com, luweining@loongson.cn, hejinyang@loongson.cn, mengqinggang@loongson.cn Subject: [PATCH 0/2] LoongArch: relaxation optimization Date: Sat, 12 Oct 2024 11:43:54 +0800 Message-Id: <20241012034356.2957334-1-mengqinggang@loongson.cn> X-Mailer: git-send-email 2.39.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: qMiowMDx_9d98AlnhqwkAA--.52119S2 X-CM-SenderInfo: 5phqw15lqjwttqj6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBj9xXoW7XFy3Gr15XrWDJw18GF1fKrX_yoWxCwc_ZF yfAFW7AF47Aa4rAa40gFZ5W34jva1kXFZ093Z0yFZ3WasrWr45tFnrGrWUZr1jgrZ5Gry3 trn0y34rAwnrGosvyTuYvTs0mTUanT9S1TB71UUUUjUqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUb3xYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_JrI_Jryl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV WUJVW8JwA2z4x0Y4vEx4A2jsIE14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_ Gr1j6F4UJwAaw2AFwI0_Jrv_JF1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0c Ia020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JF0_ Jw1lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwI xGrwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwCFI7km07C267AKxVWU XVWUAwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67 kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY 6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0x vEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2Kfnx nUUI43ZEXa7IU8hmRUUUUUU== X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP 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: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org |
Series |
LoongArch: relaxation optimization
|
|
Message
mengqinggang
Oct. 12, 2024, 3:43 a.m. UTC
The symbol value is only calculated when the relocation can be relaxed. Add more relaxation support for call36 mengqinggang (2): LoongArch: Optimize the relaxation process LoongArch: Add more relaxation support for call36 bfd/elfnn-loongarch.c | 302 +++++++++--------- .../ld-loongarch-elf/relax-call36-exe.s | 32 ++ .../ld-loongarch-elf/relax-call36-so.s | 35 ++ ld/testsuite/ld-loongarch-elf/relax.exp | 105 ++++++ 4 files changed, 329 insertions(+), 145 deletions(-) create mode 100644 ld/testsuite/ld-loongarch-elf/relax-call36-exe.s create mode 100644 ld/testsuite/ld-loongarch-elf/relax-call36-so.s