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