bfd/
* bfd.c (bfd_get_synthetic_symtab): Pass counts and both symbol tables. * elf-bfd.h (_bfd_elf_get_synthetic_symtab): Adjust. * elf.c (_bfd_elf_get_synthetic_symtab): Adjust. * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Adjust. * targets.c (struct bfd_target <_bfd_get_synthetic_symtab>): Adjust. * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't read symbols. Use both symbol tables on non-relocatable objects. Use a common error exit. Fix "mid" warning. * libbfd.h: Regenerate. * bfd-in2.h: Regenerate. binutils/ * objdump.c (dump_bfd): Pass both symbol tables to bfd_get_synthetic_symtab.
This commit is contained in:
parent
0756fc5506
commit
c9727e01b5
11 changed files with 98 additions and 96 deletions
|
@ -2566,18 +2566,10 @@ dump_bfd (bfd *abfd)
|
|||
dynsyms = slurp_dynamic_symtab (abfd);
|
||||
if (disassemble)
|
||||
{
|
||||
synthcount = 0;
|
||||
if (bfd_get_file_flags (abfd) & (DYNAMIC | EXEC_P))
|
||||
{
|
||||
if (dynsymcount > 0)
|
||||
synthcount = bfd_get_synthetic_symtab (abfd, dynsyms, &synthsyms);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (symcount > 0)
|
||||
synthcount = bfd_get_synthetic_symtab (abfd, syms, &synthsyms);
|
||||
}
|
||||
if (synthcount < 0) synthcount = 0;
|
||||
synthcount = bfd_get_synthetic_symtab (abfd, symcount, syms,
|
||||
dynsymcount, dynsyms, &synthsyms);
|
||||
if (synthcount < 0)
|
||||
synthcount = 0;
|
||||
}
|
||||
|
||||
if (dump_symtab)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue