This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Gold] Question about the incorrect variable alignment if the alignment is greater than the page size


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]