This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] gold: Properly align the NT_GNU_PROPERTY_TYPE_0 note
- From: Florian Weimer <fweimer at redhat dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>, binutils at sourceware dot org
- Cc: Cary Coutant <ccoutant at gmail dot com>
- Date: Thu, 16 Aug 2018 20:49:29 +0200
- Subject: Re: [PATCH] gold: Properly align the NT_GNU_PROPERTY_TYPE_0 note
- References: <20180816174605.GA17648@intel.com>
On 08/16/2018 07:46 PM, H.J. Lu wrote:
+ // The NT_GNU_PROPERTY_TYPE_0 note conforms to gABI.
+ const int align_size
+ = ((note_type == elfcpp::NT_GNU_PROPERTY_TYPE_0)
+ ? parameters->target().get_size()
+ : size);
Shouldn't the segment alignment be the same as the section alignment?
Thanks,
Florian