]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
libelf: Remove unused internal __elf[32|64]_msize functions.
authorMark Wielaard <mark@klomp.org>
Thu, 21 Feb 2019 23:28:01 +0000 (00:28 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 28 Feb 2019 22:17:43 +0000 (23:17 +0100)
Those functions were intended for ELF versions where the memory and
file sizes of data structures are different. They were never used
because libelf depends on the file and memory sizes being equal
(otherwise using mmap wouldn't work).

Signed-off-by: Mark Wielaard <mark@klomp.org>
libelf/ChangeLog
libelf/elf32_fsize.c
libelf/libelfP.h

index ff00d1de5b0094a8933874696b206997440f2daf..28cab9c40a97161549db93ac0656210c2e14a4e7 100644 (file)
@@ -1,3 +1,10 @@
+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.
+       (__elf64_msize): Likewise.
+
 2019-02-21  Mark Wielaard  <mark@klomp.org>
 
        * common.h (determine_kind): Only accept EV_CURRENT.
index 0f468de52c382135a099d97d3842f224ee16e8b1..139f4a91ce78406210378bd9ef3657610b64ea4d 100644 (file)
@@ -58,5 +58,3 @@ elfw2(LIBELFBITS, fsize) (Elf_Type type, size_t count, unsigned int version)
 
   return (count * __libelf_type_sizes[ELFW(ELFCLASS,LIBELFBITS) - 1][type]);
 }
-#define local_strong_alias(n1, n2) strong_alias (n1, n2)
-local_strong_alias (elfw2(LIBELFBITS, fsize), __elfw2(LIBELFBITS, msize))
index bc9a404d56778720b9f923f76a040afcc1e89eca..3a96a3b01075df46945a61a68d8b6ce3340fbb4c 100644 (file)
@@ -444,16 +444,6 @@ extern const uint_fast8_t __libelf_type_aligns[ELFCLASSNUM - 1][ELF_T_NUM]
 extern Elf_Type __libelf_data_type (Elf *elf, int sh_type, GElf_Xword align)
   internal_function;
 
-/* The libelf API does not have such a function but it is still useful.
-   Get the memory size for the given type.
-
-   These functions cannot be marked internal since they are aliases
-   of the export elfXX_fsize functions.*/
-extern size_t __elf32_msize (Elf_Type __type, size_t __count,
-                            unsigned int __version) __const_attribute__;
-extern size_t __elf64_msize (Elf_Type __type, size_t __count,
-                            unsigned int __version) __const_attribute__;
-
 
 /* Create Elf descriptor from memory image.  */
 extern Elf *__libelf_read_mmaped_file (int fildes, void *map_address,