[Bug ld/22756] Linker relaxation miscalculates symbol addresses on riscv

2021-07-20 Thread nelsonc1225 at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=22756 Nelson Chu changed: What|Removed |Added Resolution|--- |FIXED CC|

[Bug ld/22756] Linker relaxation miscalculates symbol addresses on riscv

2018-06-03 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22756 --- Comment #9 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Jim Wilson : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=137b5cbd204241ec47873c353cf7e41b47182d53 commit 137b5cbd204241ec47873c353cf7e

[Bug ld/22756] Linker relaxation miscalculates symbol addresses on riscv

2018-06-01 Thread wilson at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22756 --- Comment #8 from Jim Wilson --- Linker relaxation that deletes code is O(m*n) where m is the number of relocations and n is the number of symbols. There have been complaints about this. This makes the RISC-V linker slower than other targe

[Bug ld/22756] Linker relaxation miscalculates symbol addresses on riscv

2018-06-01 Thread sch...@linux-m68k.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22756 --- Comment #7 from Andreas Schwab --- This simpler patch instead of #c3 fixes both the original problem and the preceding test case. diff --git c/bfd/elfnn-riscv.c w/bfd/elfnn-riscv.c index 5f66f4f2d9..9c2b48baf5 100644 --- c/bfd/elfnn-riscv

[Bug ld/22756] Linker relaxation miscalculates symbol addresses on riscv

2018-05-31 Thread sch...@linux-m68k.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22756 --- Comment #6 from Andreas Schwab --- Created attachment 11048 --> https://sourceware.org/bugzilla/attachment.cgi?id=11048&action=edit Testcase This is another test case that goes wrong, see the link file for the linker command. This is t

[Bug ld/22756] Linker relaxation miscalculates symbol addresses on riscv

2018-03-01 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22756 --- Comment #5 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Jim Wilson : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=788af978df01c3667be99a1607b774f5fa844113 commit 788af978df01c3667be99a1607b77

[Bug ld/22756] Linker relaxation miscalculates symbol addresses on riscv

2018-02-28 Thread wilson at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22756 --- Comment #4 from Jim Wilson --- I found another problem with linker relaxation and symbol sizes. gamma05:2463$ cat tmp.c extern void sub3 (void); void __attribute__ ((noinline)) sub2 (void) { sub3 (); } void __attribute__ ((noinline))

[Bug ld/22756] Linker relaxation miscalculates symbol addresses on riscv

2018-02-02 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22756 --- Comment #3 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Jim Wilson : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7f02625eb48105e100d2da58091d56978ed041ef commit 7f02625eb48105e100d2da58091d5

[Bug ld/22756] Linker relaxation miscalculates symbol addresses on riscv

2018-02-02 Thread wilson at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22756 Jim Wilson changed: What|Removed |Added Assignee|unassigned at sourceware dot org |wilson at gcc dot gnu.org --- Co

[Bug ld/22756] Linker relaxation miscalculates symbol addresses on riscv

2018-01-29 Thread wilson at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22756 Jim Wilson changed: What|Removed |Added CC||wilson at gcc dot gnu.org --- Comment #1