* elf64-ppc.c (ppc_type_of_stub): Disallow stubs other than
[deliverable/binutils-gdb.git] / bfd / elf64-ppc.c
index 96e1d230fc9584302b97255dbddb1f82700ffd4d..7e7e5ba7bfddad58e930c417b127833a11926d64 100644 (file)
@@ -6070,8 +6070,9 @@ ppc_type_of_stub (asection *input_sec,
              }
        }
 
-      if (h->elf.root.type != bfd_link_hash_defined
-         && h->elf.root.type != bfd_link_hash_defweak)
+      if (!(h->elf.root.type == bfd_link_hash_defined
+           || h->elf.root.type == bfd_link_hash_defweak)
+         || h->elf.root.u.def.section->output_section == NULL)
        return ppc_stub_none;
     }
 
This page took 0.025798 seconds and 4 git commands to generate.