This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: [PATCH] Check multiple NT_GNU_PROPERTY_TYPE_0 notes [BZ #23509]


On Thu, Aug 16, 2018 at 5:29 AM, Florian Weimer <fweimer@redhat.com> wrote:
> On 08/16/2018 02:10 PM, H.J. Lu wrote:
>
>> Multiple segments are perfectly normal.
>
>
> I'm not convinced that they are desirable.  They really should be merged.

They aren't merged since they have different alignments.

>> But there is only one
>> .note.gnu.property
>> section, which may contain more then one NT_GNU_PROPERTY_TYPE_0 notes.
>
>
> My worry is that if the linker generates multiple note segments, it might as
> well produce multiple segments from the .note.gnu.property section.

Linker generates multiple segments because of different segment alignments.
But linker should always place all .note.gnu.property sections from inputs in
one output .note.gnu.property section.   You can try different older linkers.
They should all behave the same.

-- 
H.J.


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