This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils 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] elflint: Add gnuld check when a NOBITS section falls inside a segment.


On Wed, 2015-08-12 at 00:16 +0200, Mark Wielaard wrote:
> gnuld has a really bad bug where it can place a NOBITS section inside
> a PT_LOAD segment. Normally that would not work. But it also makes sure
> that the contents of the file is all zeros. So in practice it is actually
> a PROGBITS section with all zero data. Except that other tools will think
> there is an unused gap in the ELF file after the NOBITS section.
> 
> Recognize and check this pattern in elflint when --gnu is given.

Updated https://fedorahosted.org/elfutils/wiki/ElflintGNU and pushed to
master.

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