[PATCH 1/3] ELF: Group PT_NOTE segments by section alignments
Nick Clifton
nickc@redhat.com
Wed Oct 3 14:30:00 GMT 2018
Hi H.J.
>> I did not think that note sections were required to have a ".note"
>> prefix to their name. So wouldn't it be better to check for a SHF_NOTE
>> flag instead ? (Assuming that the section is in an ELF format bfd, of
>> course).
> get_program_header_size and _bfd_elf_map_sections_to_segments are only
> used on ELF files.
I suspected as much, but I was being paranoid. And also too lazy to check
the code for myself...
> This updated patch checks SHT_NOTE section type instead.
> OK for master?
Approved -please apply.
Cheers
Nick
More information about the Binutils
mailing list