From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5380141480517067906==" MIME-Version: 1.0 From: Mark Wielaard To: elfutils-devel@lists.fedorahosted.org Subject: ELF compressed section support in libelf Date: Thu, 26 Nov 2015 16:19:14 +0100 Message-ID: <1448551160-19166-1-git-send-email-mjw@redhat.com> --===============5380141480517067906== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, Here is another update of the libelf compressed section support. We decided to bring back [g]elf[32|64]_getchdr and make it so that compressed Elf_Data has a new Elf_Type ELF_T_CHDR. This makes some things a little easier/natural. In particular the xlate functions will now do the right thing with the Chdr at the start of such section data. Also added is support for elf_strptr to index into compressed sections (indexes always should be against the uncompressed data). There are still two XXXs in the code. One for incorrectly marking the result of the Shdr update by elf_compress dirty. And one to make sure elf_newdata does the right thing. There is still some discussion on the final API. But it seems this is very close to the final version. elf_compress might get a flag argument and some arguments might turn into unsigned ints. Comments on the implementations more than welcome. Comments on the interface should be directed to the Generic System V Application Binary Interface mailinglist generic-abi(a)googlegroups.com https://groups.google.com/forum/#!forum/generic-abi Thanks, Mark --===============5380141480517067906==--