[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.
- [Bug ld/27433] New: RISC-V linker might lose relax opportunities since "again" doesn't work as expected, nelsonc1225 at sourceware dot org, 2021/02/18
- [Bug ld/27433] RISC-V linker might lose relax opportunities since "again" doesn't work as expected, nelsonc1225 at sourceware dot org, 2021/02/18
- [Bug ld/27433] RISC-V linker might lose relax opportunities since "again" doesn't work as expected, nelsonc1225 at sourceware dot org, 2021/02/18
- [Bug ld/27433] RISC-V linker might lose relax opportunities since "again" doesn't work as expected, nelsonc1225 at sourceware dot org, 2021/02/18
- [Bug ld/27433] RISC-V linker might lose relax opportunities since "again" doesn't work as expected, nelsonc1225 at sourceware dot org, 2021/02/18
- [Bug ld/27433] RISC-V linker might lose relax opportunities since "again" doesn't work as expected,
nelsonc1225 at sourceware dot org <=
- [Bug ld/27433] RISC-V linker might lose relax opportunities since "again" doesn't work as expected, wilson at gcc dot gnu.org, 2021/02/22