V2 [PATCH] Check multiple NT_GNU_PROPERTY_TYPE_0 notes [BZ #23509]
Florian Weimer
fweimer@redhat.com
Wed Nov 7 18:27:00 GMT 2018
* Florian Weimer:
>>> If yes, this should be mentioned in the commit message.
>>>
>>> This seems to be an unrelated change?
>>>
>>> + /* Property type must be in ascending order. */
>>> + if (type < last_type)
>>> + return;
>>>
>>
>> This is the part of property spec. If properties aren't properly
>> sorted, it is invalid.
>
> Okay, that part makes sense because it's internal to the notes AFAICS.
> And note merging without GNU property note awareness will likely violate
> this constraint. Maybe you could add a comment to this effect?
Hmm, isn't the point that this is the internal type in the note (not the
tag), and there isn't any *note* merging, only note *section* merging in
an old linker. The latter leaves the note boundaries intact, so the
internal layout will be unmodified.
Or am I confused about this?
Thanks,
Florian
More information about the Libc-alpha
mailing list