https://sourceware.org/bugzilla/show_bug.cgi?id=32102
Bug ID: 32102 Summary: elf_compress doesn't handle multiple Elf_Data chunks created with elf_newdata correctly Product: elfutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: libelf Assignee: unassigned at sourceware dot org Reporter: mark at klomp dot org CC: elfutils-devel at sourceware dot org Target Milestone: --- When adding multiple Elf_Data to and Elf_Scn with elf_newdata then calling elf_compress on the section causes bad compressed data to be written to disk. Or when setting the layout explicitly and setting ELF_F_LAYOUT elf_update will trip over the (compressed) section size vs the combined Elf_Data size. This seems to be caused by elf_compress creating a new Elf_Data and setting it as new data for the Elf_Scn, but not updating the data_list(->next) field. -- You are receiving this mail because: You are on the CC list for the bug.