aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-07-11 19:24:46 +0000
committerIan Lance Taylor <ian@airs.com>1995-07-11 19:24:46 +0000
commitcf9fb9f2432620774e5d9b311ea54897f607e035 (patch)
treeafaa1a25b56710160e72ed8cd4f3de8cbade6607 /bfd/elflink.h
parent6804bd6c4c2e426a095b6df75b158ebf53c26e0c (diff)
downloadgdb-cf9fb9f2432620774e5d9b311ea54897f607e035.zip
gdb-cf9fb9f2432620774e5d9b311ea54897f607e035.tar.gz
gdb-cf9fb9f2432620774e5d9b311ea54897f607e035.tar.bz2
* libelf.h (struct elf_size_info): Change type of last argument to
swap_symbol_out from char * to PTR. (bfd_elf32_swap_symbol_out): Update declaration. (bfd_elf64_swap_symbol_out): Likewise. * elfcode.h (elf_swap_symbol_out): Change type of cdst from char * to PTR. * elf.c (swap_out_syms): Cast to PTR, not char *, when calling swap_symbol_out routine. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Likewise. (elf_link_output_sym): Likewise. (elf_link_output_extsym): Likewise. * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Likewise.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index b9cb000..3e7ef78 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -1364,7 +1364,7 @@ NAME(bfd_elf,size_dynamic_sections) (output_bfd, soname, rpath,
isym.st_other = 0;
isym.st_shndx = 0;
elf_swap_symbol_out (output_bfd, &isym,
- (char *) (Elf_External_Sym *) s->contents);
+ (PTR) (Elf_External_Sym *) s->contents);
for (i = 0; elf_buckets[i] != 0; i++)
{
@@ -2289,7 +2289,7 @@ elf_link_output_sym (finfo, name, elfsym, input_sec)
}
elf_swap_symbol_out (finfo->output_bfd, elfsym,
- (char *) (finfo->symbuf + finfo->symbuf_count));
+ (PTR) (finfo->symbuf + finfo->symbuf_count));
++finfo->symbuf_count;
++finfo->output_bfd->symcount;
@@ -2479,8 +2479,9 @@ elf_link_output_extsym (h, data)
}
elf_swap_symbol_out (finfo->output_bfd, &sym,
- (char *) ((Elf_External_Sym *) finfo->dynsym_sec->contents
- + h->dynindx));
+ (PTR) (((Elf_External_Sym *)
+ finfo->dynsym_sec->contents)
+ + h->dynindx));
bucketcount = elf_hash_table (finfo->info)->bucketcount;
bucket = (bfd_elf_hash ((const unsigned char *) h->root.root.string)