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


Hi Jiri,

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:
>   [29]                   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
nothing else.

Thanks,

Mark


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