Re: [Elftoolchain-developers] Error adding section to existing ELF binary

2014-07-28 Thread Joseph Koshy
f.t> If the custom section is of type SHT_LOUSER, the current implementation f.t> of elf_update() fails. Thanks for the bug report; fixed in [r3080]. Regards, Joseph Koshy -- Infragistics Professional Build stunning WinF

Re: [Elftoolchain-developers] Error adding section to existing ELF binary

2014-07-25 Thread Frank Thater
Dear all, I tried version 0.6.1 of the elftoolchain (directly compiled from the sourceforge repo) and the bug seems to be fixed. But now I am facing another issue. If the custom section is of type SHT_LOUSER, the current implementation of elf_update() fails. I tracked down the issue to the func

Re: [Elftoolchain-developers] Error adding section to existing ELF binary

2014-07-24 Thread Frank Thater
Hi Joseph, So the provided code snippet seems to be okay? I am not sure which code base is used by the Ubuntu maintainers. Would it be a possible solution to try the version from the SourceForge repo? Regards, Frank Thater On 24. Juli 2014 19:26:30 MESZ, Joseph Koshy wrote: >f.t> OS is Ku

Re: [Elftoolchain-developers] Error adding section to existing ELF binary

2014-07-24 Thread Joseph Koshy
f.t> OS is Kubuntu 12.04 with package 'libelf1" installed (Version indicated f.t> is 0.152-1ubuntu). Would this be the elfutils version of libelf from RedHat?That is a different code base entirely. Regards, Joseph Koshy

[Elftoolchain-developers] Error adding section to existing ELF binary

2014-07-24 Thread Frank Thater
Dear all, I am trying to add a new section with an application specific content to an existing ELF file. Unfortunately the resulting ELF file is erroneous as the size/offset of the new section and the section type are not correctly set (see code snippet below). "Readelf" indicates the following i