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: 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

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