[Bug binutils/25181] RISC-V: Linker relaxation may fail if there are R_RISCV_ALIGN type relocations

2019-11-12 Thread yitingwang16 at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25181 --- Comment #7 from Yiting Wang --- Hi Jim, I am very grateful to you for fixing the defect very quickly and giving me the instructions on how to contributing a patch to Binutils! My colleague has verified your patch works fine. :) I am a Wi

[Bug binutils/25181] RISC-V: Linker relaxation may fail if there are R_RISCV_ALIGN type relocations

2019-11-09 Thread yitingwang16 at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25181 --- Comment #3 from Yiting Wang --- I've not figured out how to send a proper patch to binutils mailing list. github is much easier. See https://github.com/riscv/riscv-binutils-gdb/pull/185 -- You are receiving this mail because: You are on

[Bug binutils/25181] RISC-V: Linker relaxation may fail if there are R_RISCV_ALIGN type relocations

2019-11-09 Thread yitingwang16 at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25181 --- Comment #2 from Yiting Wang --- I have a fix locally which changes the common ld/ldlang.c. I can post to binutils mailing list for review. I am not sure whether there is a possibility of a similar problem occurring *between* passes instea

[Bug binutils/25181] RISC-V: Linker relaxation may fail if there are R_RISCV_ALIGN type relocations

2019-11-09 Thread yitingwang16 at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25181 --- Comment #1 from Yiting Wang --- Created attachment 12070 --> https://sourceware.org/bugzilla/attachment.cgi?id=12070&action=edit test case -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/25181] New: RISC-V: Linker relaxation may fail if there are R_RISCV_ALIGN type relocations

2019-11-09 Thread yitingwang16 at outlook dot com
Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: yitingwang16 at outlook dot com Target Milestone: --- If there are two callers in two .text sections (for example sections A, B), followed by two sections

[Bug ld/24992] RISC-V: partial relaxing against global pointer with sdata section alignment

2019-09-16 Thread yitingwang16 at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24992 --- Comment #5 from Yiting Wang --- But if I remove the first line of test.c and change the default linker scripts to .sdata ALIGN(0x1000) : { __global_pointer$ = . + 0x800; *(.srodata.cst16) *(.srodata.cst8) *(.srodata.cst4) *(

[Bug ld/24992] RISC-V: partial relaxing against global pointer with sdata section alignment

2019-09-12 Thread yitingwang16 at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24992 --- Comment #3 from Yiting Wang --- Jim, thanks for checking. I checked bug 24983, you said: "When you link with the default libraries, other stuff gets put in sdata before a, and so the variable a is in range of gp because it is at -0x7f0.

[Bug binutils/24993] RISC-V: Address 0x00000000000xxxxx is out of bounds when "objdump -D"

2019-09-12 Thread yitingwang16 at outlook dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24993 --- Comment #2 from Yiting Wang --- While I agree that "objdump -D" might cause a problem when disassembling data section, I did not see similar issue occurs when disassembing objects of other architectures. Also if it throws an "out of bound

[Bug binutils/24993] New: RISC-V: Address 0x00000000000xxxxx is out of bounds when "objdump -D"

2019-09-11 Thread yitingwang16 at outlook dot com
Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: yitingwang16 at outlook dot com Target Milestone: --- $ cat test.c char __attribute__ ((aligned(2))) x = 'x'; char a = 1; char b = 2; char c = 3

[Bug ld/24992] New: RISC-V: partial relaxing against global pointer with sdata section alignment

2019-09-11 Thread yitingwang16 at outlook dot com
Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: yitingwang16 at outlook dot com Target Milestone: --- A simple test case below to trigger the weird behavior of GP linker relaxation: $ cat test.c char __attribute__