* elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
authorAlan Modra <amodra@gmail.com>
Fri, 10 May 2002 02:03:47 +0000 (02:03 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 10 May 2002 02:03:47 +0000 (02:03 +0000)
don't look for stubs on all undefined syms.

bfd/ChangeLog
bfd/elf32-hppa.c

index d486aa0375edb7655df9de1a4d71b570664e4043..20f8a2355c9ea2bc09a4cddb376a18f99afd1a3b 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-10  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
+       don't look for stubs on all undefined syms.
+
 2002-05-09  Alan Modra  <amodra@bigpond.net.au>
 
        * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
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);