bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/27433] RISC-V linker might lose relax opportunities since "again


From: nelsonc1225 at sourceware dot org
Subject: [Bug ld/27433] RISC-V linker might lose relax opportunities since "again" doesn't work as expected
Date: Thu, 18 Feb 2021 09:45:59 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=27433

--- Comment #3 from Nelson Chu <nelsonc1225 at sourceware dot org> ---
Created attachment 13232
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13232&action=edit
proposed solution v2

Fixed the conflicts since the v1 patch is too old.

After applying this patch, the "call _start" can be relaxed to "jal" as
expected.

$ riscv64-unknown-elf-objdump -d relax | grep -A 3 "auipc"
$ riscv64-unknown-elf-objdump -d relax | grep -A 3 "jal"
  1100ac:       804000ef                jal     ra,100b0 <_start>
  1100b0:       00c58533                add     a0,a1,a2
        ...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]