mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* 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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user