* elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
[deliverable/binutils-gdb.git] / bfd / elf32-hppa.c
index f0fd549ed9dd35a743d584950d630d2497b562c1..4dc7e9b16d989339ddb5aa96fe42453a751386ef 100644 (file)
@@ -3128,9 +3128,19 @@ elf32_hppa_size_stubs (output_bfd, stub_bfd, info, multi_subspace, group_size,
                                           + sym_sec->output_section->vma);
                        }
                      else if (hash->elf.root.type == bfd_link_hash_undefweak)
-                       ;
+                       {
+                         if (! info->shared)
+                           continue;
+                       }
                      else if (hash->elf.root.type == bfd_link_hash_undefined)
-                       ;
+                       {
+                         if (! (info->shared
+                                && !info->no_undefined
+                                && (ELF_ST_VISIBILITY (hash->elf.other)
+                                    == STV_DEFAULT)
+                                && hash->elf.type != STT_PARISC_MILLI))
+                           continue;
+                       }
                      else
                        {
                          bfd_set_error (bfd_error_bad_value);
This page took 0.023816 seconds and 4 git commands to generate.