[PATCH] libelf: Fix some 32bit offset/size issues that break updating 4G+ files.

2019-06-18 Thread Mark Wielaard
Hi, I saw some curious crashes and broken ELF files in the Fedora builder for really big packages (e.g. Qt5). It turned out that when libelf tries to update or write out a 4GB+ files it used some 32bit offsets/types where it should have been using 64bit offsets/types. While searching for the bad

[PATCH] strip don't mmap debug output file.

2019-06-18 Thread Mark Wielaard
Using ELF_C_WRITE_MMAP sometimes causes unexpected errors when disk space is low. When writing out the file, the output file is first extended so that it covers the whole file/mmap size. But it might be that the file system allowed the extension as a sparse file. In that case writing to the file th