From b9d1678951e13e934759a643040da752573f765f Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Sun, 3 Feb 2019 19:05:13 +0100 Subject: 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 ` --- libelf/elf_newdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libelf/elf_newdata.c') diff --git a/libelf/elf_newdata.c b/libelf/elf_newdata.c index f6609a80..896f22cd 100644 --- a/libelf/elf_newdata.c +++ b/libelf/elf_newdata.c @@ -117,7 +117,7 @@ elf_newdata (Elf_Scn *scn) } /* Set the predefined values. */ - result->data.d.d_version = __libelf_version; + result->data.d.d_version = EV_CURRENT; result->data.s = scn; -- cgit v1.2.3