On 10/08/2013 11:24 AM, Mark Wielaard wrote:
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.
It does not matter (the other members are set implicitly). With the
patch, it works.
Anyway, see the "#if 0" section in the attached file, even if I
uncomment it, it does not work. See also the patch I attached earlier
what it does...
--
js
suse labs