summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-12-30 06:10:22 +0000
committerMike Frysinger <vapier@gentoo.org>2005-12-30 06:10:22 +0000
commite564f1896716789c2121320f9e6992e35d469f09 (patch)
tree5b8b3e24d970286065d145926848996256d6d6c8
parent3321ce7506bb752862e8f23c3404495bc88ddfcc (diff)
need to make sure elf_find_dynamic(key) is big enough to handle 64bit hosts
-rw-r--r--utils/ldd.c2
-rw-r--r--utils/readelf.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/ldd.c b/utils/ldd.c
index c46223a03..ff1ec4a85 100644
--- a/utils/ldd.c
+++ b/utils/ldd.c
@@ -217,7 +217,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(int const key, ElfW(Dyn) *dynp,
+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);
diff --git a/utils/readelf.c b/utils/readelf.c
index f538fdec0..b8b23224b 100644
--- a/utils/readelf.c
+++ b/utils/readelf.c
@@ -89,7 +89,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(int const key, ElfW(Dyn) *dynp,
+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);