freebsd-dev/contrib/elftoolchain/libelf
Ed Maste 573456a931 libelf: add compression header support
GNU and Oracle libelf implementations added support for section
compression, intended to reduce the size of DWARF debug info (which
might be an order of magnitude larger than the code).

There are two compressed ELF section formats:

1. Old GNU - sections are renmaed to start with 'z'.  Section contains
   a magic number, uncompressed size, and compressed data.

2. Oracle and New GNU - compressed sections use the SHF_COMPRESSED flag.
   The compression header contains the compression type, uncompressed
   size, and uncompressed alignment.

The second style is preferred and this change implements only that one.

Submitted by:	Tiger Gao <tig@FreeBSDFoundation.org>
Reviewed by:	markj
MFC after:	2 weeks
Relnotes:	Yes
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D24566
2020-10-23 16:35:23 +00:00
..
_libelf_ar.h Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
_libelf_config.h [PowerPC64LE] PPC64LE support for libelf. 2020-09-09 00:06:35 +00:00
_libelf.h libelf: add compression header support 2020-10-23 16:35:23 +00:00
elf_begin.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_begin.c
elf_cntl.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_cntl.c
elf_data.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
elf_end.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_end.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
elf_errmsg.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_errmsg.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
elf_errno.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
elf_fill.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_fill.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
elf_flag.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
elf_flagdata.3 Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
elf_getarhdr.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_getarhdr.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
elf_getarsym.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_getarsym.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
elf_getbase.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_getbase.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
elf_getdata.3 Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
elf_getident.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_getident.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
elf_getphdrnum.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_getphnum.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_getscn.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_getshdrnum.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_getshdrstrndx.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_getshnum.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_getshstrndx.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_hash.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_hash.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
elf_kind.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_kind.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
elf_memory.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_memory.c Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
elf_next.3 Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
elf_next.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
elf_open.3 Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
elf_open.c Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
elf_phnum.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
elf_rand.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_rand.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
elf_rawfile.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_rawfile.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
elf_scn.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
elf_shnum.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
elf_shstrndx.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
elf_strptr.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_strptr.c Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
elf_types.m4
elf_update.3 Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
elf_update.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
elf_version.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
elf_version.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
elf.3 Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
elf.c
gelf_cap.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
gelf_chdr.c libelf: add compression header support 2020-10-23 16:35:23 +00:00
gelf_checksum.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
gelf_checksum.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
gelf_dyn.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
gelf_ehdr.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
gelf_fsize.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
gelf_fsize.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
gelf_getcap.3 Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
gelf_getchdr.3 libelf: add compression header support 2020-10-23 16:35:23 +00:00
gelf_getclass.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
gelf_getclass.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
gelf_getdyn.3 Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
gelf_getehdr.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
gelf_getmove.3 Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
gelf_getphdr.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
gelf_getrel.3 Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
gelf_getrela.3 Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
gelf_getshdr.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
gelf_getsym.3 Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
gelf_getsyminfo.3 Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
gelf_getsymshndx.3 Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
gelf_mips64el.c Drop "All rights reserved" from my copyright statements. 2019-03-06 22:11:45 +00:00
gelf_move.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
gelf_newehdr.3 Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
gelf_newphdr.3 Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
gelf_phdr.c Update ELF Tool Chain to r3614 2018-04-27 13:59:24 +00:00
gelf_rel.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
gelf_rela.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
gelf_shdr.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
gelf_sym.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
gelf_syminfo.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
gelf_symshndx.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
gelf_update_ehdr.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
gelf_xlate.c Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
gelf_xlatetof.3 Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
gelf.3 libelf: add compression header support 2020-10-23 16:35:23 +00:00
gelf.h libelf: add compression header support 2020-10-23 16:35:23 +00:00
libelf_align.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
libelf_allocate.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
libelf_ar_util.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
libelf_ar.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
libelf_chdr.c libelf: add compression header support 2020-10-23 16:35:23 +00:00
libelf_checksum.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
libelf_convert.m4 libelf: rationalize error handling in ELF note conversion 2020-03-05 20:53:43 +00:00
libelf_data.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
libelf_ehdr.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
libelf_elfmachine.c Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
libelf_extended.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
libelf_fsize.m4
libelf_memory.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
libelf_msize.m4 Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
libelf_open.c Update elftoolchain to upstream rev 3130 2014-12-24 03:13:16 +00:00
libelf_phdr.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
libelf_shdr.c Update elftoolchain to upstream revision 3179 2015-04-01 01:08:01 +00:00
libelf_xlate.c Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
libelf.h libelf: add compression header support 2020-10-23 16:35:23 +00:00
Makefile Update to ELF Tool Chain r3668 2019-01-10 14:35:23 +00:00
os.FreeBSD.mk
os.Linux.mk Update ELF Tool Chain to upstream r3769 2019-12-05 13:20:15 +00:00
os.NetBSD.mk
Version.map libelf: add compression header support 2020-10-23 16:35:23 +00:00