aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-07-11 17:13:36 +0000
committerIan Lance Taylor <ian@airs.com>1999-07-11 17:13:36 +0000
commit3a99b017b3c7962685444ab1626f6c758b909a24 (patch)
treebad9242dd8b9ebc2ef0095af4b8710aa76feaa1f /bfd/elf.c
parent2848824236c23a16170dc4fa32779219e686c2b2 (diff)
downloadgdb-3a99b017b3c7962685444ab1626f6c758b909a24.zip
gdb-3a99b017b3c7962685444ab1626f6c758b909a24.tar.gz
gdb-3a99b017b3c7962685444ab1626f6c758b909a24.tar.bz2
* elf.c (bfd_elf_hash): Change parameter from unsigned char * to
char *. * elf-bfd.h (bfd_elf_hash): Update declaration. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove casts when calling bfd_elf_hash.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 4db37c4..65bba61 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -200,10 +200,12 @@ _bfd_elf_swap_versym_out (abfd, src, dst)
/* Standard ELF hash function. Do not change this function; you will
cause invalid hash tables to be generated. */
+
unsigned long
-bfd_elf_hash (name)
- CONST unsigned char *name;
+bfd_elf_hash (namearg)
+ const char *namearg;
{
+ const unsigned char *name = (const unsigned char *) namearg;
unsigned long h = 0;
unsigned long g;
int ch;