projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
803561c
)
ld: Fix segfault in populate_publics_stream
author
Mark Harmstone
<mark@harmstone.com>
Fri, 9 Dec 2022 01:52:33 +0000
(
01:52
+0000)
committer
Alan Modra
<amodra@gmail.com>
Fri, 23 Dec 2022 09:19:47 +0000
(19:49 +1030)
ld/pdb.c
patch
|
blob
|
history
diff --git
a/ld/pdb.c
b/ld/pdb.c
index 44ba21f2b46d9f0070617e020fa9926b0d8aeb8f..45c933e080a379fac1e6d83fdb18818d49c080ef 100644
(file)
--- a/
ld/pdb.c
+++ b/
ld/pdb.c
@@
-1411,6
+1411,9
@@
populate_publics_stream (bfd *stream, bfd *abfd, bfd *sym_rec_stream)
for (bfd *in = coff_data (abfd)->link_info->input_bfds; in;
in = in->link.next)
{
+ if (!in->outsymbols)
+ continue;
+
for (unsigned int i = 0; i < in->symcount; i++)
{
struct bfd_symbol *sym = in->outsymbols[i];