From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============2230493841740560109==" MIME-Version: 1.0 From: Mark Wielaard To: elfutils-devel@lists.fedorahosted.org Subject: Re: [PATCH] libelf: elf_getdata should not adjust alignment for SHT_NOBITS sections. Date: Wed, 10 Feb 2016 11:31:51 +0100 Message-ID: <1455100311.7606.96.camel@redhat.com> In-Reply-To: 1454576474-2412-1-git-send-email-mjw@redhat.com --===============2230493841740560109== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Thu, 2016-02-04 at 10:01 +0100, Mark Wielaard wrote: > In commit c0748e "libelf: More checking of valid sh_addralign values." we > adjusted bogus alignment of data buffers if they were greater than the > offset of the data in the file. This works OK, except when there is no > data in the file. So make sure to not adjust any NOBITS sections. > = > Also adds a test that shows the issue and makes sure elflint is called > with --gnu in run-strip-test.sh. I pushed this to master. --===============2230493841740560109==--