aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
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/elflink.h
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/elflink.h')
-rw-r--r--bfd/elflink.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index db536c9..fc07d7d 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -2800,7 +2800,7 @@ NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath,
if (soname_indx != (bfd_size_type) -1)
{
- def.vd_hash = bfd_elf_hash ((const unsigned char *) soname);
+ def.vd_hash = bfd_elf_hash (soname);
defaux.vda_name = soname_indx;
}
else
@@ -2809,7 +2809,7 @@ NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath,
bfd_size_type indx;
name = output_bfd->filename;
- def.vd_hash = bfd_elf_hash ((const unsigned char *) name);
+ def.vd_hash = bfd_elf_hash (name);
indx = _bfd_stringtab_add (elf_hash_table (info)->dynstr,
name, true, false);
if (indx == (bfd_size_type) -1)
@@ -2857,7 +2857,7 @@ NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath,
def.vd_flags |= VER_FLG_WEAK;
def.vd_ndx = t->vernum + 1;
def.vd_cnt = cdeps + 1;
- def.vd_hash = bfd_elf_hash ((const unsigned char *) t->name);
+ def.vd_hash = bfd_elf_hash (t->name);
def.vd_aux = sizeof (Elf_External_Verdef);
if (t->next != NULL)
def.vd_next = (sizeof (Elf_External_Verdef)
@@ -2993,8 +2993,7 @@ NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath,
for (a = t->vn_auxptr; a != NULL; a = a->vna_nextptr)
{
- a->vna_hash = bfd_elf_hash ((const unsigned char *)
- a->vna_nodename);
+ a->vna_hash = bfd_elf_hash (a->vna_nodename);
indx = _bfd_stringtab_add (elf_hash_table (info)->dynstr,
a->vna_nodename, true, false);
if (indx == (bfd_size_type) -1)