This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: libelf RDWR and elf_newscn do not work
- From: Jiri Slaby <jslaby at suse dot cz>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Thu, 10 Oct 2013 17:34:16 +0200
- Subject: Re: libelf RDWR and elf_newscn do not work
On 10/10/2013 03:16 PM, Mark Wielaard wrote:
> Hi Jiri,
Hi,
> @@ -764,7 +765,8 @@ __elfw2(LIBELFBITS,updatefile) (Elf *elf, int change_bo, size_t shnum)
> (*shdr_fctp) (&shdr_data[scn->index],
> scn->shdr.ELFW(e,LIBELFBITS),
> sizeof (ElfW2(LIBELFBITS,Shdr)), 1);
> - else if (elf->state.ELFW(elf,LIBELFBITS).shdr == NULL)
> + else if (elf->state.ELFW(elf,LIBELFBITS).shdr == NULL
> + || (elf->flags & ELF_F_DIRTY))
I seem to miss where is elf->flags |= ELF_F_DIRTY in the newscn path...
Should it be added too?
--
js
suse labs