* 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.
This commit is contained in:
Ian Lance Taylor
1995-07-11 19:24:46 +00:00
parent 6804bd6c4c
commit cf9fb9f243
4 changed files with 25 additions and 9 deletions

View File

@@ -2323,7 +2323,7 @@ swap_out_syms (abfd, sttp)
sym.st_info = 0;
sym.st_other = 0;
sym.st_shndx = SHN_UNDEF;
bed->s->swap_symbol_out (abfd, &sym, outbound_syms);
bed->s->swap_symbol_out (abfd, &sym, (PTR) outbound_syms);
outbound_syms += bed->s->sizeof_sym;
}
for (idx = 0; idx < symcount; idx++)
@@ -2423,7 +2423,7 @@ swap_out_syms (abfd, sttp)
}
sym.st_other = 0;
bed->s->swap_symbol_out (abfd, &sym, outbound_syms);
bed->s->swap_symbol_out (abfd, &sym, (PTR) outbound_syms);
outbound_syms += bed->s->sizeof_sym;
}