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] libelf: elf_getdata should not adjust alignment for SHT_NOBITS sections.


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.

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