diff options
author | Mark Wielaard <mark@klomp.org> | 2019-02-23 20:44:24 +0100 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2019-02-28 23:38:56 +0100 |
commit | e56a09694af1b82e2cae7ecb5d57d76e5d6f973d (patch) | |
tree | c3e347458f6097d53c85af6238d3b4f77257073d /libelf | |
parent | be8080bdd746ac2b07fb0bcad23a9677844bb200 (diff) | |
download | elfutils-e56a09694af1b82e2cae7ecb5d57d76e5d6f973d.tar.gz |
libelf: Remove unused __elf_xfctstof.
__elf_xfctstof is only used in case the memory size and file size of ELF
data structures are different. This is never the case.
Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'libelf')
-rw-r--r-- | libelf/ChangeLog | 5 | ||||
-rw-r--r-- | libelf/gelf_xlate.c | 4 | ||||
-rw-r--r-- | libelf/libelfP.h | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/libelf/ChangeLog b/libelf/ChangeLog index 28cab9c4..a2e4ee90 100644 --- a/libelf/ChangeLog +++ b/libelf/ChangeLog @@ -1,5 +1,10 @@ 2019-02-24 Mark Wielaard <mark@klomp.org> + * gelf_xlate.c (__elf_xfctstof): Remove alias. + * libelfP.h (__elf_xfctstof): Remove definition. + +2019-02-24 Mark Wielaard <mark@klomp.org> + * elf32_fsize.c (local_strong_alias): Remove definition. (msize): Remove alias. * libelfP.h (__elf32_msize): Remove definition. diff --git a/libelf/gelf_xlate.c b/libelf/gelf_xlate.c index f6f496d4..b9e7fd65 100644 --- a/libelf/gelf_xlate.c +++ b/libelf/gelf_xlate.c @@ -208,7 +208,3 @@ const xfct_t __elf_xfctstom[ELFCLASSNUM - 1][ELF_T_NUM] = [ELF_T_GNUHASH] = elf_cvt_gnuhash } }; -/* For now we only handle the case where the memory representation is the - same as the file representation. Should this change we have to define - separate functions. For now reuse them. */ -strong_alias (__elf_xfctstom, __elf_xfctstof) diff --git a/libelf/libelfP.h b/libelf/libelfP.h index 3a96a3b0..51344142 100644 --- a/libelf/libelfP.h +++ b/libelf/libelfP.h @@ -413,8 +413,6 @@ typedef void (*xfct_t) (void *, const void *, size_t, int); /* The table with the function pointers. */ extern const xfct_t __elf_xfctstom[ELFCLASSNUM - 1][ELF_T_NUM] attribute_hidden; -extern const xfct_t __elf_xfctstof[ELFCLASSNUM - 1][ELF_T_NUM] - attribute_hidden; /* Array with sizes of the external types indexed by ELF version, binary |