bfd: xtensa: fix PR ld/25630
[deliverable/binutils-gdb.git] / bfd / elf32-xtensa.c
index 5e31e73a6fcccb32487a4ec02821b2e6d4eadf1b..473a9d76f289e077ff317540584fa0da190e699f 100644 (file)
@@ -10148,10 +10148,9 @@ shrink_dynamic_reloc_sections (struct bfd_link_info *info,
 
   if ((r_type == R_XTENSA_32 || r_type == R_XTENSA_PLT)
       && (input_section->flags & SEC_ALLOC) != 0
-      && (dynamic_symbol || bfd_link_pic (info))
-      && (!h || h->root.type != bfd_link_hash_undefweak
-         || (dynamic_symbol
-             && (bfd_link_dll (info) || info->export_dynamic))))
+      && (dynamic_symbol
+         || (bfd_link_pic (info)
+             && (!h || h->root.type != bfd_link_hash_undefweak))))
     {
       asection *srel;
       bfd_boolean is_plt = FALSE;
This page took 0.037142 seconds and 4 git commands to generate.