aboutsummaryrefslogtreecommitdiff
path: root/ld/ldsym.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/ldsym.c')
-rw-r--r--ld/ldsym.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/ldsym.c b/ld/ldsym.c
index 24689ed..a452921 100644
--- a/ld/ldsym.c
+++ b/ld/ldsym.c
@@ -275,7 +275,7 @@ process_keepsyms (table, size)
{
asymbol *s = *sym;
if (s->section == &bfd_und_section
- || s->section == &bfd_com_section
+ || bfd_is_com_section (s->section)
|| s->flags & BSF_KEEP_G)
KEEP (sym);
}
@@ -483,7 +483,7 @@ asymbol **output_buffer;
}
}
else if (p->section == &bfd_und_section
- || p->section == &bfd_com_section)
+ || bfd_is_com_section (p->section))
{
/* These must be global. */
}