]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
libelf: Remove unused __elf_xfctstof.
authorMark Wielaard <mark@klomp.org>
Sat, 23 Feb 2019 19:44:24 +0000 (20:44 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 28 Feb 2019 22:38:56 +0000 (23:38 +0100)
__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>
libelf/ChangeLog
libelf/gelf_xlate.c
libelf/libelfP.h

index 28cab9c40a97161549db93ac0656210c2e14a4e7..a2e4ee90030121cda7eb1ca0abed3c969848ba9d 100644 (file)
@@ -1,3 +1,8 @@
+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.
index f6f496d478caa528519b01259b543049c9713de5..b9e7fd65559073b059ea10b935565794c41df6ea 100644 (file)
@@ -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)
index 3a96a3b01075df46945a61a68d8b6ce3340fbb4c..5134414228e89482cbcdf4ce3739a60c517be805 100644 (file)
@@ -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