* elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
authorAlan Modra <amodra@gmail.com>
Tue, 5 Jun 2001 04:39:31 +0000 (04:39 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 5 Jun 2001 04:39:31 +0000 (04:39 +0000)
bfd/ChangeLog
bfd/elf32-hppa.c

index 9e52c50026575241123894edf846a68866594390..4dfc95d442871f4b34648561db439f893b1b9fef 100644 (file)
@@ -1,3 +1,7 @@
+2001-06-05  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
+
 2001-06-02  H.J. Lu  <hjl@gnu.org>
 
        * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
index c10df6bc811ac8432ecf0643fba2428454555e7b..caff906f201fe62aa16217a54d1bbe4047d434e8 100644 (file)
@@ -2077,6 +2077,10 @@ allocate_plt_and_got (h, inf)
   struct elf32_hppa_link_hash_table *hplink;
   asection *s;
 
+  if (h->root.type == bfd_link_hash_indirect
+      || h->root.type == bfd_link_hash_warning)
+    return true;
+
   info = (struct bfd_link_info *) inf;
   hplink = hppa_link_hash_table (info);
   if ((hplink->root.dynamic_sections_created