* elf64-ppc.c (ppc64_elf_relocate_section): Don't use a plt stub
authorAlan Modra <amodra@gmail.com>
Tue, 12 Jul 2005 12:03:57 +0000 (12:03 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 12 Jul 2005 12:03:57 +0000 (12:03 +0000)
when !can_plt_call.

bfd/ChangeLog
bfd/elf64-ppc.c

index fdfc2e1..862540c 100644 (file)
@@ -1,5 +1,10 @@
 2005-07-12  Alan Modra  <amodra@bigpond.net.au>
 
+       * elf64-ppc.c (ppc64_elf_relocate_section): Don't use a plt stub
+       when !can_plt_call.
+
+2005-07-12  Alan Modra  <amodra@bigpond.net.au>
+
        * elf32-xtensa.c (bfd_elf_xtensa_reloc): Warning fix.
 
 2005-07-12  Alan Modra  <amodra@bigpond.net.au>
index 402e859..545fae8 100644 (file)
@@ -9998,6 +9998,8 @@ ppc64_elf_relocate_section (bfd *output_bfd,
                      br = bfd_get_32 (input_bfd, contents + rel->r_offset);
                      if ((br & 1) == 0)
                        can_plt_call = TRUE;
+                     else
+                       stub_entry = NULL;
                    }
                  else if (h != NULL
                           && strcmp (h->elf.root.root.string,