[PATCH] gold: Properly align the NT_GNU_PROPERTY_TYPE_0 note

H.J. Lu hjl.tools@gmail.com
Fri Aug 17 15:37:00 GMT 2018


On Fri, Aug 17, 2018 at 8:25 AM, Florian Weimer <fweimer@redhat.com> wrote:
> On 08/17/2018 05:08 PM, H.J. Lu wrote:
>>
>> The NT_GNU_PROPERTY_TYPE_0 note should be aligned to 8 bytes for 64-bit
>> ELF as specified by gABI.  A note section can be only placed in a PT_NOTE
>> segment with the same alignment
>
>
> This is not a review of the patch, but I like it much better if the goal is
> to align gold behavior with BFD ld for PT_NOTE construction.

We can't place note sections in PT_NOTE segments with different
alignments.  Gold is simply wrong and ld does it correctly.


-- 
H.J.



More information about the Binutils mailing list