This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: data = elf_getdata(scn, data) returns garbage for shdr.sh_type == SHT_NOBITS
- From: Ulrich Drepper <drepper at gmail dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Mon, 11 Jul 2011 19:36:23 -0400
- Subject: Re: data = elf_getdata(scn, data) returns garbage for shdr.sh_type == SHT_NOBITS
On Mon, Jul 11, 2011 at 11:02, Anthony G. Basile
<basile@opensource.dyc.edu> wrote:
> but I was expecting data = elf_getdata(scn, data) to return NULL.
Your expectation is wrong. Fix your code.