summaryrefslogtreecommitdiffstats
path: root/libelf/elf_newdata.c
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2019-02-03 19:05:13 +0100
committerMark Wielaard <[email protected]>2019-02-28 22:41:14 +0100
commitb9d1678951e13e934759a643040da752573f765f (patch)
treeaeb7bf4b5aab4e415efdb37e20a5728ebfbbe438 /libelf/elf_newdata.c
parent92ded1f11c0622cd9e1943bb85e1bdbdc4fb4802 (diff)
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 <[email protected]>`
Diffstat (limited to 'libelf/elf_newdata.c')
-rw-r--r--libelf/elf_newdata.c2
1 files changed, 1 insertions, 1 deletions
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;