[Bug ld/27566] [RISC-V] relocation truncated to fit: R_RISCV_GPREL_I against aymbol

2024-11-01 Thread gaofei at eswincomputing dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27566 Fei Gao changed: What|Removed |Added CC||gaofei at eswincomputing dot com -- You a

[Bug ld/27566] [RISC-V] relocation truncated to fit: R_RISCV_GPREL_I against aymbol

2024-10-25 Thread nelsonc1225 at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=27566 --- Comment #14 from Nelson Chu --- > Yes. the relaxation like “.set ARCHOR0, . + 4598” being relaxed at 2nd pass > or 3rd pass would be fine I don't understand why the 2nd pass or 3rd pass should be fine? Even 2nd or 3rd passes still have

[Bug ld/27566] [RISC-V] relocation truncated to fit: R_RISCV_GPREL_I against aymbol

2024-10-25 Thread nelsonc1225 at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=27566 --- Comment #13 from Nelson Chu --- There are at least two reviewed patches should resolve this, https://sourceware.org/pipermail/binutils/2023-May/127413.html https://sourceware.org/pipermail/binutils/2024-May/134442.html Looks no one really

[Bug ld/27566] [RISC-V] relocation truncated to fit: R_RISCV_GPREL_I against aymbol

2024-10-25 Thread lifang_xia at linux dot alibaba.com
https://sourceware.org/bugzilla/show_bug.cgi?id=27566 --- Comment #12 from lifang_xia at linux dot alibaba.com --- > 2024年10月25日 14:43,i at maskray dot me 写道: > > https://sourceware.org/bugzilla/show_bug.cgi?id=27566 > > Fangrui Song changed: > > What|Removed

[Bug ld/27566] [RISC-V] relocation truncated to fit: R_RISCV_GPREL_I against aymbol

2024-10-24 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=27566 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #11 fr

[Bug ld/27566] [RISC-V] relocation truncated to fit: R_RISCV_GPREL_I against aymbol

2024-05-20 Thread pinskia at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27566 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug ld/27566] [RISC-V] relocation truncated to fit: R_RISCV_GPREL_I against aymbol

2023-05-09 Thread nelsonc1225 at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=27566 Nelson Chu changed: What|Removed |Added Last reconfirmed||2023-05-10 Status|RESOLVED

[Bug ld/27566] [RISC-V] relocation truncated to fit: R_RISCV_GPREL_I against aymbol

2023-05-06 Thread lifang_xia at linux dot alibaba.com
https://sourceware.org/bugzilla/show_bug.cgi?id=27566 --- Comment #9 from lifang_xia at linux dot alibaba.com --- Hi we get this error a again. - .text hello: .rept 6000 lla a0, ARCHOR0 .endr .section .rodata .set ARCHOR0, . + 4598 .fill 1

[Bug ld/27566] [RISC-V] relocation truncated to fit: R_RISCV_GPREL_I against aymbol

2021-06-21 Thread nelsonc1225 at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=27566 Nelson Chu changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug ld/27566] [RISC-V] relocation truncated to fit: R_RISCV_GPREL_I against aymbol

2021-05-30 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27566 --- Comment #7 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Nelson Chu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ef9d25656226c46406293a70a81e564640973662 commit ef9d25656226c46406293a70a81e5

[Bug ld/27566] [RISC-V] relocation truncated to fit: R_RISCV_GPREL_I against aymbol

2021-04-19 Thread nelsonc1225 at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=27566 Nelson Chu changed: What|Removed |Added Target||riscv*-*-* -- You are receiving this ma

[Bug ld/27566] [RISC-V] relocation truncated to fit: R_RISCV_GPREL_I against aymbol

2021-03-26 Thread nelsonc1225 at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=27566 --- Comment #6 from Nelson Chu --- Jim's assumption is right, the gp won't overlap the rodata. But it could overlap the symbol defined in the rodata, and it's value plus a constant. .align 3 .globl hello_rodata .set hello_rodata

[Bug ld/27566] [RISC-V] relocation truncated to fit: R_RISCV_GPREL_I against aymbol

2021-03-17 Thread wilson at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=27566 Jim Wilson changed: What|Removed |Added CC||wilson at gcc dot gnu.org --- Comment #5

[Bug ld/27566] [RISC-V] relocation truncated to fit: R_RISCV_GPREL_I against aymbol

2021-03-15 Thread lifang_...@c-sky.com
https://sourceware.org/bugzilla/show_bug.cgi?id=27566 --- Comment #4 from lifang_...@c-sky.com --- Can we add a symbol in the default link file: .jcr: { KEEP (*(.jcr)) } .data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.loc

[Bug ld/27566] [RISC-V] relocation truncated to fit: R_RISCV_GPREL_I against aymbol

2021-03-15 Thread lifang_...@c-sky.com
https://sourceware.org/bugzilla/show_bug.cgi?id=27566 --- Comment #3 from lifang_...@c-sky.com --- Hi Nelson, I agree with you, the previous patch is not a best choice. I have do some debug today. I add a print here: === diff --git a/bfd/elfnn-riscv.c b/b

[Bug ld/27566] [RISC-V] relocation truncated to fit: R_RISCV_GPREL_I against aymbol

2021-03-12 Thread nelsonc1225 at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=27566 Nelson Chu changed: What|Removed |Added CC||nelsonc1225 at sourceware dot org --- C

[Bug ld/27566] [RISC-V] relocation truncated to fit: R_RISCV_GPREL_I against aymbol

2021-03-12 Thread nelsonc1225 at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=27566 --- Comment #2 from Nelson Chu --- Therefore, when we are doing the LUI and PCREL relaxations (GP to symbol or c.lui to symbol, must cross the DATA_SEGMENT), * If "-z relro" isn't set, then we need to reserve at most "MAXPAGESIZE" for the pad