projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gas: run the hwcaps-bump tests with 64-bit sparc objects only.
[deliverable/binutils-gdb.git]
/
binutils
/
addr2line.c
diff --git
a/binutils/addr2line.c
b/binutils/addr2line.c
index f88e7458cdbbea0fd61415d0d33a0937134e71d4..bf396e3f9b93db95e3fe6134306592fa6ba280f5 100644
(file)
--- a/
binutils/addr2line.c
+++ b/
binutils/addr2line.c
@@
-1,5
+1,5
@@
/* addr2line.c -- convert addresses to line number and function name
/* addr2line.c -- convert addresses to line number and function name
- Copyright (C) 1997-201
4
Free Software Foundation, Inc.
+ Copyright (C) 1997-201
6
Free Software Foundation, Inc.
Contributed by Ulrich Lauther <Ulrich.Lauther@mchp.siemens.de>
This file is part of GNU Binutils.
Contributed by Ulrich Lauther <Ulrich.Lauther@mchp.siemens.de>
This file is part of GNU Binutils.
@@
-140,6
+140,14
@@
slurp_symtab (bfd *abfd)
syms = xmalloc (storage);
symcount = bfd_canonicalize_dynamic_symtab (abfd, syms);
}
syms = xmalloc (storage);
symcount = bfd_canonicalize_dynamic_symtab (abfd, syms);
}
+
+ /* PR 17512: file: 2a1d3b5b.
+ Do not pretend that we have some symbols when we don't. */
+ if (symcount <= 0)
+ {
+ free (syms);
+ syms = NULL;
+ }
}
\f
/* These global variables are used to pass information between
}
\f
/* These global variables are used to pass information between
@@
-423,6
+431,7
@@
main (int argc, char **argv)
program_name = *argv;
xmalloc_set_program_name (program_name);
program_name = *argv;
xmalloc_set_program_name (program_name);
+ bfd_set_error_program_name (program_name);
expandargv (&argc, &argv);
expandargv (&argc, &argv);
This page took
0.023169 seconds
and
4
git commands to generate.