ELF: Don't include zero size sections at start of PT_NOTE segment
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 21 Sep 2018 11:07:50 +0000 (04:07 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 21 Sep 2018 11:08:01 +0000 (04:08 -0700)
commit95475e5d6b7529309ca804fdc2c2e04d654c3978
treee8de48c86472e4d793474007d5506c3dffd4232f
parentbe9a9af90654c29c2e90375a64b4d18ef75c56a0
ELF: Don't include zero size sections at start of PT_NOTE segment

We shouldn't include zero size sections at start of PT_NOTE segment,
similar to PT_DYNAMIC segment.

PR binutils/23694
* include/elf/internal.h (ELF_SECTION_IN_SEGMENT_1): Don't
include zero size sections at start of PT_NOTE segment.
include/ChangeLog
include/elf/internal.h