public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mark@klomp.org>
To: elfutils-devel@sourceware.org
Cc: Mark Wielaard <mark@klomp.org>
Subject: [PATCH] libelf: Remove unused __elf_xfctstof.
Date: Sun, 24 Feb 2019 17:18:00 -0000	[thread overview]
Message-ID: <20190224171811.25892-1-mark@klomp.org> (raw)

__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    | 5 +++++
 libelf/gelf_xlate.c | 4 ----
 libelf/libelfP.h    | 2 --
 3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/libelf/ChangeLog b/libelf/ChangeLog
index 28cab9c40..a2e4ee900 100644
--- a/libelf/ChangeLog
+++ b/libelf/ChangeLog
@@ -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.
diff --git a/libelf/gelf_xlate.c b/libelf/gelf_xlate.c
index f6f496d47..b9e7fd655 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 3a96a3b01..513441422 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
-- 
2.20.1

             reply	other threads:[~2019-02-24 17:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-24 17:18 Mark Wielaard [this message]
2019-02-28 22:47 ` Mark Wielaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190224171811.25892-1-mark@klomp.org \
    --to=mark@klomp.org \
    --cc=elfutils-devel@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).