libelf: There is just one ELF version.
authorMark Wielaard <mark@klomp.org>
Sun, 3 Feb 2019 18:05:13 +0000 (19:05 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 28 Feb 2019 21:41:14 +0000 (22:41 +0100)
commitb9d1678951e13e934759a643040da752573f765f
treeaeb7bf4b5aab4e415efdb37e20a5728ebfbbe438
parent92ded1f11c0622cd9e1943bb85e1bdbdc4fb4802
libelf: There is just one ELF version.

Remove (partially defined out) code and data structures dealing with
multiple ELF versions. There hasn't been a new ELF version in the
last 20 years. Simplify the code a bit by just assuming there will
only be one version (EV_CURRENT == 1).

Simplifies elf_version, gets rid of __libelf_version_initialized.
Removes one (or more) array (version) dimension from various tables
and accessor functions (__elf_xfctstom, shtype_map, __libelf_data_type,
__libelf_type_aligns and __libelf_type_sizes).

Signed-off-by: Mark Wielaard <mark@klomp.org>`
17 files changed:
libelf/ChangeLog
libelf/common.h
libelf/elf32_fsize.c
libelf/elf32_updatefile.c
libelf/elf32_updatenull.c
libelf/elf32_xlatetof.c
libelf/elf32_xlatetom.c
libelf/elf_begin.c
libelf/elf_compress.c
libelf/elf_getdata.c
libelf/elf_getdata_rawchunk.c
libelf/elf_newdata.c
libelf/elf_version.c
libelf/gelf_fsize.c
libelf/gelf_xlate.c
libelf/libelfP.h
libelf/nlist.c