aboutsummaryrefslogtreecommitdiff
path: root/bfd/merge.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/merge.c')
-rw-r--r--bfd/merge.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/merge.c b/bfd/merge.c
index 7b06c10..e175efd 100644
--- a/bfd/merge.c
+++ b/bfd/merge.c
@@ -804,6 +804,9 @@ _bfd_merge_sections (abfd, xsinfo, remove_hook)
if (secinfo)
continue;
+ if (sinfo->htab->first == NULL)
+ continue;
+
if (sinfo->htab->strings)
merge_strings (sinfo);
else