[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/24992] RISC-V: partial relaxing against global pointer with sdat
From: |
yitingwang16 at outlook dot com |
Subject: |
[Bug ld/24992] RISC-V: partial relaxing against global pointer with sdata section alignment |
Date: |
Thu, 12 Sep 2019 13:38:37 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=24992
--- Comment #3 from Yiting Wang <yitingwang16 at outlook dot com> ---
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. When you
link with -nostdlib, a is the only thing in sdata, and we run into an edge
condition where a is -0x800 from gp, which is at the extreme limit, but the
linker relaxation has to limit the range to deal with section alignment issues
that may changes addresses after relaxation, and so we have to assume that a is
out of range."
But this test case is not exactly like that one.
This case has an sdata variable with alignment requirement, and gp relaxation
seems to be affected by the alignment value.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/24992] New: RISC-V: partial relaxing against global pointer with sdata section alignment, yitingwang16 at outlook dot com, 2019/09/11
- [Bug ld/24992] RISC-V: partial relaxing against global pointer with sdata section alignment, wilson at gcc dot gnu.org, 2019/09/11
- [Bug ld/24992] RISC-V: partial relaxing against global pointer with sdata section alignment, wilson at gcc dot gnu.org, 2019/09/11
- [Bug ld/24992] RISC-V: partial relaxing against global pointer with sdata section alignment,
yitingwang16 at outlook dot com <=
- [Bug ld/24992] RISC-V: partial relaxing against global pointer with sdata section alignment, wilson at gcc dot gnu.org, 2019/09/12
- [Bug ld/24992] RISC-V: partial relaxing against global pointer with sdata section alignment, yitingwang16 at outlook dot com, 2019/09/16
- [Bug ld/24992] RISC-V: partial relaxing against global pointer with sdata section alignment, wilson at gcc dot gnu.org, 2019/09/17