aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 2c38793..79595be 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -5682,7 +5682,8 @@ elf_gc_sections (abfd, info)
struct elf_link_hash_entry *h, Elf_Internal_Sym *));
if (!get_elf_backend_data (abfd)->can_gc_sections
- || info->relocateable)
+ || info->relocateable
+ || elf_hash_table (info)->dynamic_sections_created)
return true;
/* Apply transitive closure to the vtable entry usage info. */