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
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
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
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.
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
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) *(
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.
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
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
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__
10 matches
Mail list logo