This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] elflint: Add gnuld check when a NOBITS section falls inside a segment.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Mon, 17 Aug 2015 15:36:24 +0200
- Subject: 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.