This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Gold] Question about the incorrect variable alignment if the alignment is greater than the page size
- From: Cary Coutant <ccoutant at google dot com>
- To: Alexander Ivchenko <aivchenk at gmail dot com>
- Cc: binutils <binutils at sourceware dot org>
- Date: Wed, 5 Jun 2013 16:54:22 -0700
- Subject: Re: [Gold] Question about the incorrect variable alignment if the alignment is greater than the page size
- References: <CACysShirkNk_oLSTqSWZ9-YThCb_Gx=0jC-_KPh8ZwkWjxHJkQ at mail dot gmail dot com> <CAKOQZ8xzLRdszqZQHVDLbTHu-hE63_82WekbUrBORBXEVkrvjg at mail dot gmail dot com> <CACysShipP91d92W3AH7MaLRXrDBEQ1en07DGpCgHEb1dF1nizA at mail dot gmail dot com> <CAKOQZ8yyB946sJ-FCi9vajyXhKLVOscmdLkfJ2aP5W6Dp37VXw at mail dot gmail dot com> <CACysShgVW_g2KW1cX9g5c_02D5SBYbYRo-bTtPx2jfq=N7NMeA at mail dot gmail dot com> <CAHACq4p-=HUHDPTWLrH037VDN5qP4GHdKxr93CpkXSVvcS=B=g at mail dot gmail dot com> <CACysShjhG2yZQorbYc-BHV37ouj=NBUOzVDaqGMj0PsZBGQyig at mail dot gmail dot com>
2013-06-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
* layout.cc (Layout::set_segment_offsets): Taking care of the case when
the maximum segment alignment is larger than the page size.
* testsuite/Makefile.am (large_symbol_alignment): Test that Gold
correctly aligns the symbols with large alignemnt.
* testsuite/Makefile.in: Regenerate.
* testsuite/large_symbol_alignment.cc: New file.
I've committed this patch on your behalf. Thanks for working on it!
-cary