--- 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-binutils mailing list

Reply via email to