summaryrefslogtreecommitdiff
path: root/utils/ldd.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/ldd.c')
-rw-r--r--utils/ldd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/ldd.c b/utils/ldd.c
index e11760a1a..a00bc3ba4 100644
--- a/utils/ldd.c
+++ b/utils/ldd.c
@@ -155,10 +155,10 @@ struct library *lib_list = NULL;
char not_found[] = "not found";
char *interp_name = NULL;
char *interp_dir = NULL;
-int byteswap;
+static int byteswap;
static int interpreter_already_found = 0;
-inline uint32_t byteswap32_to_host(uint32_t value)
+static inline uint32_t byteswap32_to_host(uint32_t value)
{
if (byteswap == 1) {
return (bswap_32(value));
@@ -166,7 +166,7 @@ inline uint32_t byteswap32_to_host(uint32_t value)
return (value);
}
}
-inline uint64_t byteswap64_to_host(uint64_t value)
+static inline uint64_t byteswap64_to_host(uint64_t value)
{
if (byteswap == 1) {
return (bswap_64(value));
@@ -181,7 +181,7 @@ inline uint64_t byteswap64_to_host(uint64_t value)
# define byteswap_to_host(x) byteswap64_to_host(x)
#endif
-ElfW(Shdr) *elf_find_section_type(uint32_t key, ElfW(Ehdr) *ehdr)
+static ElfW(Shdr) *elf_find_section_type(uint32_t key, ElfW(Ehdr) *ehdr)
{
int j;
ElfW(Shdr) *shdr;
@@ -194,7 +194,7 @@ ElfW(Shdr) *elf_find_section_type(uint32_t key, ElfW(Ehdr) *ehdr)
return NULL;
}
-ElfW(Phdr) *elf_find_phdr_type(uint32_t type, ElfW(Ehdr) *ehdr)
+static ElfW(Phdr) *elf_find_phdr_type(uint32_t type, ElfW(Ehdr) *ehdr)
{
int j;
ElfW(Phdr) *phdr = (ElfW(Phdr) *) (ehdr->e_phoff + (char *)ehdr);
@@ -207,7 +207,7 @@ ElfW(Phdr) *elf_find_phdr_type(uint32_t type, ElfW(Ehdr) *ehdr)
}
/* Returns value if return_val==1, ptr otherwise */
-void *elf_find_dynamic(int64_t const key, ElfW(Dyn) *dynp,
+static void *elf_find_dynamic(int64_t const key, ElfW(Dyn) *dynp,
ElfW(Ehdr) *ehdr, int return_val)
{
ElfW(Phdr) *pt_text = elf_find_phdr_type(PT_LOAD, ehdr);