[Bug ld/28709] [RISC-V] a unused section can't be removed with -gc-sections

2021-12-21 Thread lifang_xia at linux dot alibaba.com
https://sourceware.org/bugzilla/show_bug.cgi?id=28709 --- Comment #3 from lifang_xia at linux dot alibaba.com --- The gas of riscv will split frag in md_assemble if the insn could be relaxed in linker.tc-riscv.c:1372 (append_insn) /* We need to start a new frag after any

[Bug ld/28709] [RISC-V] a unused section can't be removed with -gc-sections

2021-12-28 Thread lifang_xia at linux dot alibaba.com
https://sourceware.org/bugzilla/show_bug.cgi?id=28709 --- Comment #7 from lifang_xia at linux dot alibaba.com --- Thank you so much for explaining that. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug gas/28793] New: [RISC-V] DW_cfa_advance_offset is not correct

2022-01-19 Thread lifang_xia at linux dot alibaba.com
Component: gas Assignee: unassigned at sourceware dot org Reporter: lifang_xia at linux dot alibaba.com Target Milestone: --- Created attachment 13915 --> https://sourceware.org/bugzilla/attachment.cgi?id=13915&action=edit pic of eh_frame commit: HEAD build

[Bug gas/28793] [RISC-V] DW_cfa_advance_offset is not correct

2022-01-19 Thread lifang_xia at linux dot alibaba.com
https://sourceware.org/bugzilla/show_bug.cgi?id=28793 --- Comment #2 from lifang_xia at linux dot alibaba.com --- It is better choice that Handling this in riscv_frag_align_code. But "frag_wane (frag_now) + frag_new (0)" should be after we call the frag_more, NOT before. If add

[Bug ld/29803] New: Relax failed between different output section

2022-11-17 Thread lifang_xia at linux dot alibaba.com
Component: ld Assignee: unassigned at sourceware dot org Reporter: lifang_xia at linux dot alibaba.com Target Milestone: --- Hi all, I have met a problem in risc-v relaxation. But I think it would be generic bug, not only in risc-v. Here is a case for riscv: ``` section

[Bug ld/29803] Relax failed between different output section

2022-11-17 Thread lifang_xia at linux dot alibaba.com
https://sourceware.org/bugzilla/show_bug.cgi?id=29803 --- Comment #1 from lifang_xia at linux dot alibaba.com --- diff --git a/ld/ldlang.c b/ld/ldlang.c index 03daba6ef7f..a63e73850c3 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -6138,8 +6138,14 @@ lang_size_sections_1 if

[Bug ld/29803] Relax failed between different output section

2022-11-17 Thread lifang_xia at linux dot alibaba.com
https://sourceware.org/bugzilla/show_bug.cgi?id=29803 --- Comment #3 from lifang_xia at linux dot alibaba.com --- > Calling lang_size_sections_1 recursively seems more than a little dangerous. Yes, an other way to avoid this: Do not relax it if the caller and the dest function are not in s

[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