mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +08:00
* addr2line.c (slurp_symtab): If canonicalization reveals that
there were no ordinary symbols, try loading the dynamic symbols instead.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2013-03-15 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* addr2line.c (slurp_symtab): If canonicalization reveals that
|
||||||
|
there were no ordinary symbols, try loading the dynamic symbols
|
||||||
|
instead.
|
||||||
|
|
||||||
2013-03-14 Markos Chandras <markos.chandras@imgtec.com>
|
2013-03-14 Markos Chandras <markos.chandras@imgtec.com>
|
||||||
|
|
||||||
* MAINTAINERS: Add myself as Meta maintainer.
|
* MAINTAINERS: Add myself as Meta maintainer.
|
||||||
|
@ -130,6 +130,17 @@ slurp_symtab (bfd *abfd)
|
|||||||
symcount = bfd_canonicalize_symtab (abfd, syms);
|
symcount = bfd_canonicalize_symtab (abfd, syms);
|
||||||
if (symcount < 0)
|
if (symcount < 0)
|
||||||
bfd_fatal (bfd_get_filename (abfd));
|
bfd_fatal (bfd_get_filename (abfd));
|
||||||
|
|
||||||
|
/* If there are no symbols left after canonicalization and
|
||||||
|
we have not tried the dynamic symbols then give them a go. */
|
||||||
|
if (symcount == 0
|
||||||
|
&& ! dynamic
|
||||||
|
&& (storage = bfd_get_dynamic_symtab_upper_bound (abfd)) > 0)
|
||||||
|
{
|
||||||
|
free (syms);
|
||||||
|
syms = xmalloc (storage);
|
||||||
|
symcount = bfd_canonicalize_dynamic_symtab (abfd, syms);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* These global variables are used to pass information between
|
/* These global variables are used to pass information between
|
||||||
|
Reference in New Issue
Block a user