This is the mail archive of the
mailing list for the elfutils project.
Re: libelf RDWR and elf_newscn do not work
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Tue, 08 Oct 2013 11:24:39 +0200
- Subject: Re: libelf RDWR and elf_newscn do not work
On Tue, 2013-10-08 at 09:33 +0200, Jiri Slaby wrote:
> if I add a section using the code below, I obtain a section like this:
>  NULL 0000000000000000
> fff1000400000001 000000 00 0 0 281487861612544
> The attached patch fixed it for me. Any ideas?
Not immediately. Would you mind posting the full code?
In particular where does the Elf_Scn that you are adding come from?
The code you posted seems incomplete since it only sets sh_type but