Adding a new section to an ELF file aborts with Assertion `shdr != NULL'

2021-09-04 Thread Alexander Egorenkov via Elfutils-devel
Hi all, i'm facing an issue with libelf when i try to add a new section to an ELF file. How to reproduce the issue: 1. Create a simple ELF file with libelf containing only 2 sections, NULL and a string table 2. Close ELF file 3. Reopen the new ELF file in RW mode with libelf 4. Add new section

Re: Adding a new section to an ELF file aborts with Assertion `shdr != NULL'

2021-09-04 Thread Alexander Egorenkov via Elfutils-devel
Hi all, Alexander Egorenkov writes: > Hi all, > > i'm facing an issue with libelf when i try to add a new section to an > ELF file. > > How to reproduce the issue: > 1. Create a simple ELF file with libelf containing only 2 sections, NULL and > a string table > 2. Close ELF file > 3. Reopen the