[Gold] Question about the incorrect variable alignment if the alignment is greater than the page size
Ian Lance Taylor
iant@google.com
Fri May 31 13:41:00 GMT 2013
On Fri, May 31, 2013 at 4:13 AM, Alexander Ivchenko <aivchenk@gmail.com> wrote:
>
> Was that behavior made intentionally or it's just a bug?
> I know that it's a pretty big alignment and that could be suspicious,
> but we can at least warn the user that his code won't be linked the
> way it was written.
It's a bug. The bug is in Layout::set_segment_offsets. It rounds the
address to abi_pagesize without considering that the segment alignment
might be larger than that.
Ian
More information about the Binutils
mailing list