summaryrefslogtreecommitdiff
path: root/ld/pdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/pdb.c')
-rw-r--r--ld/pdb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/pdb.c b/ld/pdb.c
index 44ba21f2b46..45c933e080a 100644
--- 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];